Skip to content

Instantly share code, notes, and snippets.

@maciejwalkowiak
Last active August 29, 2015 13:56
Show Gist options
  • Save maciejwalkowiak/9000062 to your computer and use it in GitHub Desktop.
Save maciejwalkowiak/9000062 to your computer and use it in GitHub Desktop.
Maven executable JAR file with dependencies using Assembly plugin. Run with mvn package assembly:single
<build>
<testSourceDirectory>src/main/java</testSourceDirectory>
<plugins>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<archive>
<manifest>
<mainClass>full.class.Name</mainClass>
</manifest>
</archive>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
</configuration>
</plugin>
</plugins>
</build>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment