eclipse 下 SpringBoot 工程使用Maven打包
eclipse 下 SpringBoot 工程使用Maven打包
目录- eclipse 下 SpringBoot 工程使用Maven打包
- 1. pom.xml 添加打包配置
- 2. Run As Maven build
1. pom.xml 添加打包配置
点击查看代码
org.apache.maven.plugins
maven-compiler-plugin
3.8.1
1.8
1.8
compile
org.springframework.boot
spring-boot-maven-plugin
2.6.2
repackage
2. Run As Maven build
Goals 输入 "clean compile package" , 勾选 "Skip Tests",最后点击 run 按钮,即可.
默认 , jar包会放在工程的 target 文件夹下.