Skip to content
This repository was archived by the owner on Aug 1, 2025. It is now read-only.

Commit 576f834

Browse files
committed
add maven-shade-plugin
1 parent 4c9e3a1 commit 576f834

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

pom.xml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,40 @@
4747
</configuration>
4848
</plugin>
4949

50+
<plugin>
51+
<groupId>org.apache.maven.plugins</groupId>
52+
<artifactId>maven-shade-plugin</artifactId>
53+
<version>3.1.0</version>
54+
<executions>
55+
<execution>
56+
<phase>package</phase>
57+
<goals>
58+
<goal>shade</goal>
59+
</goals>
60+
<configuration>
61+
<createDependencyReducedPom>false</createDependencyReducedPom>
62+
<transformers>
63+
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
64+
<manifestEntries>
65+
<Main-Class>${exec.mainClass}</Main-Class>
66+
</manifestEntries>
67+
</transformer>
68+
</transformers>
69+
<filters>
70+
<filter>
71+
<artifact>*:*</artifact>
72+
<excludes>
73+
<exclude>META-INF/*.SF</exclude>
74+
<exclude>META-INF/*.DSA</exclude>
75+
<exclude>META-INF/*.RSA</exclude>
76+
</excludes>
77+
</filter>
78+
</filters>
79+
</configuration>
80+
</execution>
81+
</executions>
82+
</plugin>
83+
5084
<plugin>
5185
<groupId>org.codehaus.mojo</groupId>
5286
<artifactId>exec-maven-plugin</artifactId>

0 commit comments

Comments
 (0)