Skip to content

Instantly share code, notes, and snippets.

@cugni
Last active August 29, 2015 13:56
Show Gist options
  • Save cugni/8866893 to your computer and use it in GitHub Desktop.
Save cugni/8866893 to your computer and use it in GitHub Desktop.
create a jar with Maven with all dependencies and main class
<build>
<plugins>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<archive>
<manifest>
<mainClass>com.mydomain.myentrypoint</mainClass>
<packageName>com.mydomain.</packageName>
</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