在要打包的pom.xml中加入下面这些,然后打包即可
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<classifier>exec</classifier>
</configuration>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
Spring Boot 打包教程
本文介绍如何通过修改pom.xml文件配置spring-boot-maven-plugin插件来实现Spring Boot项目的打包。具体步骤包括添加插件及其配置,使用repackage目标进行打包。
366

被折叠的 条评论
为什么被折叠?



