Skip to content

Instantly share code, notes, and snippets.

@rmetzger
Created February 13, 2014 13:49
Show Gist options
  • Save rmetzger/8975283 to your computer and use it in GitHub Desktop.
Save rmetzger/8975283 to your computer and use it in GitHub Desktop.
Jar with dependencies
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
</configuration>
<executions>
<execution>
<id>make-assembly</id> <!-- this is used for inheritance merges -->
<phase>package</phase> <!-- bind to the packaging 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