Browse files

maven optional dependencies

  • Loading branch information...
1 parent c42f301 commit 32dd392e9e5a25c0463ddd1ccb27a0b671296cc7 @mdogan mdogan committed Jun 4, 2012
Showing with 14 additions and 1 deletion.
  1. +1 −0 hazelcast-hibernate/pom.xml
  2. +7 −1 hazelcast-spring/pom.xml
  3. +2 −0 hazelcast-wm/pom.xml
  4. +2 −0 hazelcast/pom.xml
  5. +2 −0 pom.xml
View
1 hazelcast-hibernate/pom.xml
@@ -137,6 +137,7 @@
<groupId>com.hazelcast</groupId>
<artifactId>hazelcast-client</artifactId>
<version>${project.parent.version}</version>
+ <optional>true</optional>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
View
8 hazelcast-spring/pom.xml
@@ -143,7 +143,7 @@
<groupId>org.springframework</groupId>
<artifactId>spring-test</artifactId>
<version>${org.springframework.version}</version>
- <scope>provided</scope>
+ <scope>test</scope>
</dependency>
<dependency>
<groupId>javax.annotation</groupId>
@@ -160,24 +160,29 @@
<groupId>com.hazelcast</groupId>
<artifactId>hazelcast-client</artifactId>
<version>${project.parent.version}</version>
+ <scope>provided</scope>
+ <optional>true</optional>
</dependency>
<dependency>
<groupId>com.hazelcast</groupId>
<artifactId>hazelcast-hibernate</artifactId>
<version>${project.parent.version}</version>
<scope>provided</scope>
+ <optional>true</optional>
</dependency>
<dependency>
<groupId>org.mongodb</groupId>
<artifactId>mongo-java-driver</artifactId>
<version>${org.mongodb.version}</version>
<scope>provided</scope>
+ <optional>true</optional>
</dependency>
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-mongodb</artifactId>
<version>${org.springframework.data.mongodb}</version>
<scope>provided</scope>
+ <optional>true</optional>
<exclusions>
<exclusion>
<artifactId>spring-tx</artifactId>
@@ -194,6 +199,7 @@
<artifactId>hibernate-core</artifactId>
<version>${hibernate.core.version}</version>
<scope>test</scope>
+ <optional>true</optional>
</dependency>
<!-- Spring 2.5.x is not compatible with junit versions after 4.4 -->
<!--<dependency>-->
View
2 hazelcast-wm/pom.xml
@@ -158,6 +158,8 @@
<groupId>com.hazelcast</groupId>
<artifactId>hazelcast-client</artifactId>
<version>${project.parent.version}</version>
+ <scope>provided</scope>
+ <optional>true</optional>
</dependency>
<dependency>
<groupId>org.eclipse.jetty</groupId>
View
2 hazelcast/pom.xml
@@ -255,12 +255,14 @@
<artifactId>log4j</artifactId>
<version>${log4j.version}</version>
<scope>provided</scope>
+ <optional>true</optional>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>${slf4j.api.version}</version>
<scope>provided</scope>
+ <optional>true</optional>
</dependency>
</dependencies>
</project>
View
2 pom.xml
@@ -223,12 +223,14 @@
<artifactId>junit</artifactId>
<version>${junit.version}</version>
<scope>provided</scope>
+ <optional>true</optional>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-all</artifactId>
<version>${mockito.all.version}</version>
<scope>provided</scope>
+ <optional>true</optional>
</dependency>
</dependencies>

0 comments on commit 32dd392

Please sign in to comment.