idea打包maven项目报错Failed to execute goal org.apache.maven.plugins***
情景在线
springboot项目打jar包报错
报错信息
Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.1.0:resources (default-resources) on project springboot-demo: Cannot create resource output directory: C:\Users\Admin\Desktop\gitclonesomeproject\my_study\springcloud-study\springboot-demo\target\classes
报错原因
我在target目录下打开了命令行窗口,导致目录程序被占用
解决方案
1.关闭所有和该项目目录相关的命令行窗口
2.关闭该项目已经启动的jar包
个人csdn博客网址:https://blog.csdn.net/shaoming314
![jam](https://i-blog.csdnimg.cn/blog_migrate/902f9ea4e6285ceba0d18af8e9857bb2.jpeg)
个人博客网址:www.shaoming.club
![halo](https://i-blog.csdnimg.cn/blog_migrate/c2c1dd5b4b71e544d16229a48274dce9.jpeg)
勇敢牛牛,不怕困难
![img](https://i-blog.csdnimg.cn/blog_migrate/54e9eca74795660a3cac4b42388b9e4d.jpeg)