Springboot项目后端源码打war包报错To see the full stack trace of the errors, re-run Maven with the -e switch

  • 问题描述
    java后端源码打包发布,执行打包命令:
    mvn clean package -f pom-war.xml报错
    Springboot项目后端源码打war包报错To see the full stack trace of the errors, re-run Maven with the -e switch_第1张图片
  • 解决方法
    网上找了一些资料,都说是jar包的问题,也尝试了一下,没有解决我的问题。
    其实原因很简单,就是执行mvn clean把target删除的时候,target文件在其他地方打开(其实就是文件被占用,不能clean。关闭打开target的目录即可)。

你可能感兴趣的:(java,java)