胖包输出
作者:
后知不觉1 | 来源:发表于
2023-08-13 14:25 被阅读0次
配置入下,只通过maven-assembly-plugin插件即可
<build>
<plugins>
<!-- clean lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#clean_Lifecycle -->
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
<configuration>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
<archive>
<manifest>
<mainClass>org.example.App</mainClass>
</manifest>
</archive>
</configuration>
</plugin>
</plugins>
</build>
本文标题:胖包输出
本文链接:https://www.haomeiwen.com/subject/yenfmdtx.html
网友评论