3
0
mirror of https://github.com/Qortal/altcoinj.git synced 2025-01-31 07:12:17 +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>
<shadedArtifactAttached>true</shadedArtifactAttached>
<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>
</execution>
</executions>