使用 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>
上一篇: 监听器Listener