exclude icu4j from the final jar

This commit is contained in:
Tom Everett 2017-03-09 18:36:25 -07:00
parent 2c0ef5529d
commit cf422bb107
2 changed files with 245 additions and 271 deletions

View File

@ -1,8 +1,4 @@
<!--
~ Copyright (c) 2012-2016 The ANTLR Project. All rights reserved.
~ Use of this file is governed by the BSD 3-clause license that
~ can be found in the LICENSE.txt file in the project root.
-->
<!-- ~ Copyright (c) 2012-2016 The ANTLR Project. All rights reserved. ~ Use of this file is governed by the BSD 3-clause license that ~ can be found in the LICENSE.txt file in the project root. -->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>

View File

@ -1,8 +1,4 @@
<!--
~ Copyright (c) 2012-2016 The ANTLR Project. All rights reserved.
~ Use of this file is governed by the BSD 3-clause license that
~ can be found in the LICENSE.txt file in the project root.
-->
<!-- ~ Copyright (c) 2012-2016 The ANTLR Project. All rights reserved. ~ Use of this file is governed by the BSD 3-clause license that ~ can be found in the LICENSE.txt file in the project root. -->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
@ -15,7 +11,6 @@
<name>ANTLR 4 Tool</name>
<url>http://www.antlr.org</url>
<description>The ANTLR 4 grammar compiler.</description>
<dependencies>
<dependency>
<groupId>org.antlr</groupId>
@ -48,7 +43,6 @@
<version>58.2</version>
</dependency>
</dependencies>
<build>
<sourceDirectory>src</sourceDirectory>
<testResources>
@ -114,6 +108,11 @@
<createDependencyReducedPom>false</createDependencyReducedPom>
<shadedArtifactAttached>true</shadedArtifactAttached>
<shadedClassifierName>complete</shadedClassifierName>
<artifactSet>
<excludes>
<exclude>com.ibm.icu:*</exclude>
</excludes>
</artifactSet>
</configuration>
<goals>
<goal>shade</goal>
@ -121,27 +120,7 @@
</execution>
</executions>
</plugin>
<!-- can't get this to add bundle items
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>2.5.4</version>
<executions>
<execution>
<id>bundle-manifest</id>
<phase>process-classes</phase>
<configuration>
<instructions>
<Bundle-SymbolicName>org.antlr.antlr4-tool</Bundle-SymbolicName>
</instructions>
</configuration>
<goals>
<goal>manifest</goal>
</goals>
</execution>
</executions>
</plugin>
-->
<!-- can't get this to add bundle items <plugin> <groupId>org.apache.felix</groupId> <artifactId>maven-bundle-plugin</artifactId> <version>2.5.4</version> <executions> <execution> <id>bundle-manifest</id> <phase>process-classes</phase> <configuration> <instructions> <Bundle-SymbolicName>org.antlr.antlr4-tool</Bundle-SymbolicName> </instructions> </configuration> <goals> <goal>manifest</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>
@ -174,8 +153,7 @@
<groupId>com.webguys</groupId>
<artifactId>string-template-maven-plugin</artifactId>
<version>1.1</version>
<!-- this nonsense is for some reason needed to make this plugin
work with maven 3 -->
<!-- this nonsense is for some reason needed to make this plugin work with maven 3 -->
<dependencies>
<dependency>
<groupId>org.twdata.maven</groupId>