今天碰到这样一个问题,编译打包的时候报以下错误
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-clean-plugin:2.6.1:clean (default-clean) on
project smart-platform: Failed to clean project: Failed to delete
C:\Users\XieZhiXin\Desktop\coms-develop\smart-platform\target\classes\workAttendanceMessage.properties
-> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run
Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable
full debug logging. [ERROR] [ERROR] For more information about the errors and
possible solutions, please read the following articles:


通过第一行错误提示可得知:Failed to execute goal
org.apache.maven.plugins:maven-clean-plugin:2.6.1:clean (default-clean) on
project smart-platform: Failed to clean project: Failed to delete
C:\Users\XieZhiXin\Desktop\coms-develop\smart-platform\target\classes\workAttendanceMessage.properties
->


大概意思是清理文件发生错误,所以通过提示文件路径找到该报错文件删除即可,打开项目中的文件直接删除,可能会提示无法删除,原因是后台还在占用此文件,这时候把eclipse的后台服务全部关闭再删除那个文件即可。再次编译打包,就OK了!

友情链接
KaDraw流程图
API参考文档
OK工具箱
云服务器优惠
阿里云优惠券
腾讯云优惠券
华为云优惠券
站点信息
问题反馈
邮箱:ixiaoyang8@qq.com
QQ群:637538335
关注微信