Add assembly plugin to build JAR file with dependencies.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 12 Sep 2013 17:09:26 +0000 (19:09 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 12 Sep 2013 17:09:26 +0000 (19:09 +0200)
pom.xml

diff --git a/pom.xml b/pom.xml
index cb2404b..71a053a 100644 (file)
--- a/pom.xml
+++ b/pom.xml
                                </configuration>
                        </plugin>
                        <plugin>
+                               <groupId>org.apache.maven.plugins</groupId>
+                               <artifactId>maven-assembly-plugin</artifactId>
+                               <version>2.2-beta-5</version>
+                               <configuration>
+                                       <descriptorRefs>
+                                               <descriptorRef>jar-with-dependencies</descriptorRef>
+                                       </descriptorRefs>
+                                       <archiverConfig>
+                                               <duplicateBehavior>skip</duplicateBehavior>
+                                       </archiverConfig>
+                                       <archive>
+                                               <manifest>
+                                                       <mainClass>net.pterodactylus.rhynodge.engine.Starter</mainClass>
+                                               </manifest>
+                                       </archive>
+                               </configuration>
+                               <executions>
+                                       <execution>
+                                               <id>make-assembly</id>
+                                               <phase>package</phase>
+                                               <goals>
+                                                       <goal>single</goal>
+                                               </goals>
+                                       </execution>
+                               </executions>
+                       </plugin>
+                       <plugin>
                                <groupId>org.codehaus.mojo</groupId>
                                <artifactId>exec-maven-plugin</artifactId>
                                <version>1.2.1</version>