You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by ad...@apache.org on 2016/01/18 11:53:40 UTC

svn commit: r1725223 - /james/project/trunk/server/app/pom.xml

Author: aduprat
Date: Mon Jan 18 10:53:39 2016
New Revision: 1725223

URL: http://svn.apache.org/viewvc?rev=1725223&view=rev
Log:
JAMES-1653 We should not depend on cassandra jars if the cassandra profile is not used. Contributed by Tellier <bt...@apache.org>

Modified:
    james/project/trunk/server/app/pom.xml

Modified: james/project/trunk/server/app/pom.xml
URL: http://svn.apache.org/viewvc/james/project/trunk/server/app/pom.xml?rev=1725223&r1=1725222&r2=1725223&view=diff
==============================================================================
--- james/project/trunk/server/app/pom.xml (original)
+++ james/project/trunk/server/app/pom.xml Mon Jan 18 10:53:39 2016
@@ -387,10 +387,6 @@
                 </exclusion>
             </exclusions>
         </dependency>
-        <dependency>
-            <groupId>org.apache.james</groupId>
-            <artifactId>apache-james-backends-cassandra</artifactId>
-        </dependency>
         <!-- Comment jackrabbit dependency to avoid lucene version clash with mailbox-lucene (JAMES-1297)
             <dependency>
             <groupId>org.apache.jackrabbit</groupId>
@@ -422,10 +418,6 @@
         </dependency>
         <dependency>
             <groupId>org.apache.james</groupId>
-            <artifactId>apache-james-mailbox-kafka</artifactId>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.james</groupId>
             <artifactId>apache-james-mailbox-spring</artifactId>
             <scope>runtime</scope>
             <exclusions>
@@ -465,22 +457,7 @@
                 </exclusion>
             </exclusions>
         </dependency>
-        <dependency>
-            <groupId>org.apache.james</groupId>
-            <artifactId>apache-james-mailbox-cassandra</artifactId>
-            <scope>runtime</scope>
-            <exclusions>
-                <exclusion>
-                    <artifactId>mail</artifactId>
-                    <groupId>javax.mail</groupId>
-                </exclusion>
-            </exclusions>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.james</groupId>
-            <artifactId>james-server-data-cassandra</artifactId>
-            <scope>runtime</scope>
-        </dependency>
+
         <dependency>
             <groupId>org.apache.james</groupId>
             <artifactId>james-server-data-file</artifactId>
@@ -601,6 +578,39 @@
                 <james.system-property2>-Dspring.profiles.active=cassandra</james.system-property2>
                 <james.system-properties>${james.system-property1} ${james.system-property2}</james.system-properties>
             </properties>
+            <dependencies>
+                <dependency>
+                    <groupId>org.apache.james</groupId>
+                    <artifactId>apache-james-mailbox-cassandra</artifactId>
+                    <scope>runtime</scope>
+                    <exclusions>
+                        <exclusion>
+                            <artifactId>mail</artifactId>
+                            <groupId>javax.mail</groupId>
+                        </exclusion>
+                    </exclusions>
+                </dependency>
+                <dependency>
+                    <groupId>org.apache.james</groupId>
+                    <artifactId>james-server-data-cassandra</artifactId>
+                    <scope>runtime</scope>
+                </dependency>
+                <dependency>
+                    <groupId>org.apache.james</groupId>
+                    <artifactId>apache-james-backends-cassandra</artifactId>
+                    <scope>runtime</scope>
+                </dependency>
+            </dependencies>
+        </profile>
+        <profile>
+            <id>kafka</id>
+            <dependencies>
+                <dependency>
+                    <groupId>org.apache.james</groupId>
+                    <artifactId>apache-james-mailbox-kafka</artifactId>
+                    <scope>runtime</scope>
+                </dependency>
+            </dependencies>
         </profile>
         <profile>
             <id>lucene</id>



---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org