Skip to content

Instantly share code, notes, and snippets.

@r-winkler
Created January 27, 2017 10:27
Show Gist options
  • Save r-winkler/ec3fdb8cfc8d964f5f7f4bd8cc07472d to your computer and use it in GitHub Desktop.
Save r-winkler/ec3fdb8cfc8d964f5f7f4bd8cc07472d to your computer and use it in GitHub Desktop.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
<archive>
<manifest>
<mainClass>{your.package.main.class}</mainClass>
</manifest>
</archive>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment