changeset 5052:fa600417a335 dami

Use maven jar and maven assemply plugins to create a single jar
author Andre Heinecke <aheinecke@intevation.de>
date Wed, 20 Feb 2013 12:17:35 +0100
parents 57a845da72bd
children 61be4813eb13
files flys-backend/pom.xml
diffstat 1 files changed, 25 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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>
 

http://dive4elements.wald.intevation.org