Add attribute “Plugin-Main-Class” to manifest of generated JAR file.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 12 Oct 2010 04:48:26 +0000 (06:48 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 12 Oct 2010 04:48:26 +0000 (06:48 +0200)
pom.xml

diff --git a/pom.xml b/pom.xml
index bf2759e..0979936 100644 (file)
--- a/pom.xml
+++ b/pom.xml
                                        <target>1.6</target>
                                </configuration>
                        </plugin>
+                       <plugin>
+                               <groupId>org.apache.maven.plugins</groupId>
+                               <artifactId>maven-jar-plugin</artifactId>
+                               <configuration>
+                                       <archive>
+                                               <manifestEntries>
+                                                       <mode>Plugin-Main-Class</mode>
+                                                       <url>net.pterodactylus.sone.main.SonePlugin</url>
+                                               </manifestEntries>
+                                       </archive>
+                               </configuration>
+                       </plugin>
                </plugins>
        </build>
 </project>