maven shade and bundle don't work together so i dropped bundle for main complete jar.

This commit is contained in:
parrt 2016-12-10 17:31:03 -08:00
parent c0e7c49a9e
commit 731603b489
2 changed files with 18 additions and 28 deletions

View File

@ -46,10 +46,6 @@
<configuration>
<instructions>
<Bundle-SymbolicName>org.antlr.antlr4-runtime-osgi</Bundle-SymbolicName>
<Implementation-Title>ANTLR 4 Runtime</Implementation-Title>
<Implementation-Vendor>ANTLR</Implementation-Vendor>
<Implementation-Vendor-Id>org.antlr</Implementation-Vendor-Id>
<Implementation-Version>${project.version}</Implementation-Version>
</instructions>
</configuration>
<goals>

View File

@ -52,13 +52,30 @@
</testResource>
</testResources>
<plugins>
<plugin>
<plugin> <!-- this makes a fat jar with all dependencies -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>2.3</version>
<executions>
<execution>
<phase>package</phase>
<configuration>
<dependencyReducedPomLocation>${project.build.directory}/dependency-reduced-pom.xml</dependencyReducedPomLocation>
</configuration>
<goals>
<goal>shade</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin> <!-- this just jars up tool stuff and sets main class -->
<artifactId>maven-jar-plugin</artifactId>
<version>3.0.0</version>
<configuration>
<archive>
<manifest>
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
<mainClass>org.antlr.v4.Tool</mainClass>
</manifest>
</archive>
</configuration>
@ -79,29 +96,6 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>2.3</version>
<executions>
<execution>
<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>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>