Created
January 7, 2016 10:35
-
-
Save khajavi/b3b53462ff5dad726a01 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-shade-plugin</artifactId> | |
<version>2.2</version> | |
<executions> | |
<execution> | |
<phase>package</phase> | |
<goals> | |
<goal>shade</goal> | |
</goals> | |
<configuration> | |
<createSourcesJar> | |
true | |
</createSourcesJar> | |
<shadeSourcesContent>true</shadeSourcesContent> | |
<transformers> | |
<transformer | |
implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/> | |
<transformer | |
implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer"> | |
<resource>reference.conf</resource> | |
</transformer> | |
<transformer | |
implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> | |
<mainClass>com.github.App</mainClass> | |
</transformer> | |
</transformers> | |
<filters> | |
<!-- filter to address "Invalid signature file" issue - see http://stackoverflow.com/a/6743609/589215 --> | |
<filter> | |
<artifact>*:*</artifact> | |
<excludes> | |
<exclude>META-INF/*.SF</exclude> | |
<exclude>META-INF/*.DSA</exclude> | |
<exclude>META-INF/*.RSA</exclude> | |
</excludes> | |
</filter> | |
</filters> | |
</configuration> | |
</execution> | |
</executions> | |
</plugin> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment