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 ma...@apache.org on 2015/11/03 17:51:06 UTC
svn commit: r1712341 -
/james/project/trunk/server/container/cassandra-guice/pom.xml
Author: matthieu
Date: Tue Nov 3 16:51:06 2015
New Revision: 1712341
URL: http://svn.apache.org/viewvc?rev=1712341&view=rev
Log:
JAMES-1626 Implement a packaging policy for the cassandra-guice application
Modified:
james/project/trunk/server/container/cassandra-guice/pom.xml
Modified: james/project/trunk/server/container/cassandra-guice/pom.xml
URL: http://svn.apache.org/viewvc/james/project/trunk/server/container/cassandra-guice/pom.xml?rev=1712341&r1=1712340&r2=1712341&view=diff
==============================================================================
--- james/project/trunk/server/container/cassandra-guice/pom.xml (original)
+++ james/project/trunk/server/container/cassandra-guice/pom.xml Tue Nov 3 16:51:06 2015
@@ -30,7 +30,7 @@
</parent>
<artifactId>james-server-cassandra-guice</artifactId>
- <packaging>bundle</packaging>
+ <packaging>jar</packaging>
<name>Apache James :: Server :: Cassandra - guice injection</name>
<description>An advanced email server - Cassandra backend with guice injection</description>
@@ -45,7 +45,6 @@
</plugins>
</build>
-
<profiles>
<profile>
<id>disable-build-for-older-jdk</id>
@@ -144,17 +143,34 @@
<build>
<plugins>
<plugin>
- <artifactId>maven-assembly-plugin</artifactId>
- <configuration>
- <archive>
- <manifest>
- <mainClass>fully.qualified.MainClass</mainClass>
- </manifest>
- </archive>
- <descriptorRefs>
- <descriptorRef>jar-with-dependencies</descriptorRef>
- </descriptorRefs>
- </configuration>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-dependency-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>copy-dependencies</id>
+ <phase>package</phase>
+ <goals>
+ <goal>copy-dependencies</goal>
+ </goals>
+ <configuration>
+ <outputDirectory>${project.build.directory}/${project.build.finalName}.lib</outputDirectory>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-jar-plugin</artifactId>
+ <configuration>
+ <archive>
+ <manifest>
+ <addClasspath>true</addClasspath>
+ <classpathPrefix>${project.build.finalName}.lib/</classpathPrefix>
+ <mainClass>org.apache.james.CassandraJamesServerMain</mainClass>
+ <useUniqueVersions>false</useUniqueVersions>
+ </manifest>
+ </archive>
+ </configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org