欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

使用 maven-shade-plugin打可执行jar包

程序员文章站 2022-05-01 12:40:41
...

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>1.2.1</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<mainClass>com.taobao.wireless.test.tools.wf.WirelessDemandReport</mainClass>
</transformer>
</transformers>
</configuration>
</execution>
</executions>
</plugin>