Skip to content

Instantly share code, notes, and snippets.

@tranminhan
Created August 7, 2011 14:21
Show Gist options
  • Save tranminhan/1130408 to your computer and use it in GitHub Desktop.
Save tranminhan/1130408 to your computer and use it in GitHub Desktop.
Add Main-Class to manifest
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifest>
<mainClass>com.someclass.Main</mainClass>
<packageName>com.someclass</packageName>
</manifest>
<manifestEntries>
<mode>development</mode>
<url>${pom.url}</url>
</manifestEntries>
</archive>
</configuration>
</plugin>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment