Skip to content

Instantly share code, notes, and snippets.

@gogarufi
Created February 14, 2017 01:32
Show Gist options
  • Save gogarufi/8606892da5cf2ed1da6d43095bd6ff2b to your computer and use it in GitHub Desktop.
Save gogarufi/8606892da5cf2ed1da6d43095bd6ff2b to your computer and use it in GitHub Desktop.
Maven plugins section with "Shade" plugin which puts all project dependencies in a JAR while building it.
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>2.4.3</version>
<configuration>
<createDependencyReducedPom>false</createDependencyReducedPom>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment