前提:项目编译正常

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包

 

以上!

相关文章:

  • 2021-08-07
  • 2022-12-23
  • 2021-04-05
  • 2022-01-01
  • 2022-12-23
  • 2022-01-13
  • 2021-12-23
  • 2021-12-16
猜你喜欢
  • 2021-05-25
  • 2021-07-09
  • 2021-12-11
  • 2021-11-02
  • 2021-12-10
  • 2021-08-31
  • 2021-08-26
相关资源
相似解决方案