3
0
mirror of https://github.com/Qortal/altcoinj.git synced 2025-02-12 02:05:53 +00:00

Creating a useful shaded jar, that can be run with java -jar.

This appeared to be in the video for building a simple wallet, but not in the pom itself.
This commit is contained in:
Tyler Houlihan 2014-12-19 15:13:27 -05:00 committed by Andreas Schildbach
parent f82f160c2c
commit 3d7d649827

View File

@ -40,6 +40,12 @@
</filters> </filters>
<shadedArtifactAttached>true</shadedArtifactAttached> <shadedArtifactAttached>true</shadedArtifactAttached>
<shadedClassifierName>bundled</shadedClassifierName> <shadedClassifierName>bundled</shadedClassifierName>
<transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<mainClass>${artifactId}.Main</mainClass>
</transformer>
</transformers>
<outputFile>target/${artifactId}-shaded.jar</outputFile>
</configuration> </configuration>
</execution> </execution>
</executions> </executions>