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:54:27 UTC

svn commit: r1712349 - /james/project/trunk/server/container/cli/pom.xml

Author: matthieu
Date: Tue Nov  3 16:54:27 2015
New Revision: 1712349

URL: http://svn.apache.org/viewvc?rev=1712349&view=rev
Log:
JAMES-1626 bundle cli into a runnable jar

Modified:
    james/project/trunk/server/container/cli/pom.xml

Modified: james/project/trunk/server/container/cli/pom.xml
URL: http://svn.apache.org/viewvc/james/project/trunk/server/container/cli/pom.xml?rev=1712349&r1=1712348&r2=1712349&view=diff
==============================================================================
--- james/project/trunk/server/container/cli/pom.xml (original)
+++ james/project/trunk/server/container/cli/pom.xml Tue Nov  3 16:54:27 2015
@@ -93,6 +93,36 @@
                 <artifactId>maven-bundle-plugin</artifactId>
                 <extensions>true</extensions>
             </plugin>
+            <plugin>
+                <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.cli.ServerCmd</mainClass>
+                            <useUniqueVersions>false</useUniqueVersions>
+                        </manifest>
+                    </archive>
+                </configuration>
+            </plugin>
         </plugins>
     </build>
 



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