[Dive4elements-commits] [PATCH 1 of 2] Use maven jar and maven assemply plugins to create a single jar

Wald Commits scm-commit at wald.intevation.org
Wed Feb 20 12:21:40 CET 2013


# HG changeset patch
# User Andre Heinecke <aheinecke at intevation.de>
# Date 1361359055 -3600
# Branch dami
# Node ID fa600417a335ceff6123f7e389471474eb313aa6
# Parent  57a845da72bdd0b67e6ba5a7ee506d21668fe3fa
Use maven jar and maven assemply plugins to create a single jar

diff -r 57a845da72bd -r fa600417a335 flys-backend/pom.xml
--- a/flys-backend/pom.xml	Wed Feb 20 10:44:04 2013 +0100
+++ b/flys-backend/pom.xml	Wed Feb 20 12:17:35 2013 +0100
@@ -37,6 +37,31 @@
           <target>1.6</target>
         </configuration>
       </plugin>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-jar-plugin</artifactId>
+        <configuration>
+          <archive>
+            <manifest>
+              <mainClass>de.intevation.flys.importer.Importer</mainClass>
+              <packageName>de.intevation.flys.importer</packageName>
+            </manifest>
+          </archive>
+        </configuration>
+      </plugin>
+      <plugin>
+        <artifactId>maven-assembly-plugin</artifactId>
+        <configuration>
+          <archive>
+            <manifest>
+              <mainClass>de.intevation.flys.importer.Importer</mainClass>
+            </manifest>
+          </archive>
+          <descriptorRefs>
+            <descriptorRef>jar-with-dependencies</descriptorRef>
+          </descriptorRefs>
+        </configuration>
+      </plugin>
     </plugins>
   </build>
 


More information about the Dive4elements-commits mailing list