Skip to content

Instantly share code, notes, and snippets.

@gorkemozkaya
Created November 19, 2018 18:25
Show Gist options
  • Save gorkemozkaya/f5c352280bf33083a0d6b2d97e3767b9 to your computer and use it in GitHub Desktop.
Save gorkemozkaya/f5c352280bf33083a0d6b2d97e3767b9 to your computer and use it in GitHub Desktop.
How to get the shaded jar with all dependencies
<!--Build assembly jar-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<shadedArtifactAttached>true</shadedArtifactAttached>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment