Skip to content

Instantly share code, notes, and snippets.

@noidi
Created August 2, 2010 14:33
Show Gist options
  • Save noidi/504728 to your computer and use it in GitHub Desktop.
Save noidi/504728 to your computer and use it in GitHub Desktop.
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<id>jar-with-dependencies</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
<archive>
<manifest>
<mainClass>your.main.class</mainClass> <!-- EDIT THIS -->
</manifest>
</archive>
</configuration>
</execution>
</plugin>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment