Add Main-Class attribute to shaded tool JAR

This commit is contained in:
Jason van Zyl 2015-08-20 13:06:37 -04:00
parent 88f0fdac7b
commit 9623d955a0
1 changed files with 7 additions and 0 deletions

View File

@ -98,6 +98,13 @@
<phase>package</phase>
<configuration>
<dependencyReducedPomLocation>${project.build.directory}/dependency-reduced-pom.xml</dependencyReducedPomLocation>
<transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<manifestEntries>
<Main-Class>org.antlr.v4.Tool</Main-Class>
</manifestEntries>
</transformer>
</transformers>
</configuration>
<goals>
<goal>shade</goal>