Add descriptor for creating all-in-one-jar.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 15 Oct 2014 18:48:10 +0000 (20:48 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 15 Oct 2014 18:48:10 +0000 (20:48 +0200)
pom.xml

diff --git a/pom.xml b/pom.xml
index 248c704..509b611 100644 (file)
--- a/pom.xml
+++ b/pom.xml
                                        </execution>
                                </executions>
                        </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>
+                                               <manifestEntries>
+                                                       <Plugin-Main-Class>net.pterodactylus.sone.main.SonePlugin</Plugin-Main-Class>
+                                               </manifestEntries>
+                                       </archive>
+                               </configuration>
+                               <executions>
+                                       <execution>
+                                               <id>make-assembly</id>
+                                               <phase>package</phase>
+                                               <goals>
+                                                       <goal>single</goal>
+                                               </goals>
+                                       </execution>
+                               </executions>
+                       </plugin>
                </plugins>
        </build>