Skip to content

Instantly share code, notes, and snippets.

@bchetty
Created May 24, 2013 20:35
Show Gist options
  • Select an option

  • Save bchetty/5646343 to your computer and use it in GitHub Desktop.

Select an option

Save bchetty/5646343 to your computer and use it in GitHub Desktop.
Maven-Shade plugin usage
<build>
<plugins>
<plugin>
<groupid>org.apache.maven.plugins</groupId>
<artifactid>maven-shade-plugin</artifactId>
<version>1.4</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<mainclass>Main Class of the jar file</mainClass>
</transformer>
</transformers>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment