前提:项目编译正常

idea命令行:输入 mvn clean package  

待build success  工程目录 target下查看:

springBoot maven工程打包 使用spring-boot-maven-plugin打jar包

如果报mvn不是内部或者外部命令,

1,可先在电脑本身的cmd窗口,输入mvn -version 看是否可以识别

2,重新更改idea软件的cmd的访问路径:

 

springBoot maven工程打包 使用spring-boot-maven-plugin打jar包

3,设置cmd的命令行的版本为旧版本:

springBoot maven工程打包 使用spring-boot-maven-plugin打jar包

 

运行jar包:

springBoot maven工程打包 使用spring-boot-maven-plugin打jar包

 

以上!

相关文章: