Skip to content

Commit 351549c

Browse files
committed
Shade the dependencies
1 parent 7791919 commit 351549c

1 file changed

Lines changed: 32 additions & 1 deletion

File tree

pom.xml

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,37 @@
324324
</sourceDirectories>
325325
</configuration>
326326
</plugin>
327+
<plugin>
328+
<groupId>org.apache.maven.plugins</groupId>
329+
<artifactId>maven-shade-plugin</artifactId>
330+
<version>1.7.1</version>
331+
<executions>
332+
<execution>
333+
<phase>package</phase>
334+
<goals>
335+
<goal>shade</goal>
336+
</goals>
337+
<configuration>
338+
<minimizeJar>true</minimizeJar>
339+
<filters>
340+
<filter>
341+
<artifact>*:*</artifact>
342+
<excludes>
343+
<exclude>META-INF/maven/commons-cli/**</exclude>
344+
<exclude>META-INF/LICENSE.txt</exclude>
345+
</excludes>
346+
</filter>
347+
</filters>
348+
<relocations>
349+
<relocation>
350+
<pattern>org.apache.commons.cli</pattern>
351+
<shadedPattern>javancss.cli</shadedPattern>
352+
</relocation>
353+
</relocations>
354+
</configuration>
355+
</execution>
356+
</executions>
357+
</plugin>
327358
</plugins>
328359
</build>
329360

@@ -337,7 +368,7 @@
337368
<groupId>org.apache.ant</groupId>
338369
<artifactId>ant</artifactId>
339370
<version>1.9.7</version>
340-
<optional>true</optional>
371+
<scope>provided</scope>
341372
</dependency>
342373
<dependency>
343374
<groupId>junit</groupId>

0 commit comments

Comments
 (0)