1、案例:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.4.1:clean (default-clean) on project : Failed to clean project: Failed to delete D:\project\target\m2e-wtp\overlays -> [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]
2、解决:
第一步:关闭软件,删除target目录下所有文件,保留target文件夹
第二步:update project
第三步:run ->maven build
博客给出一个Maven项目清理失败的案例,报错信息显示无法删除指定目录。解决方法为:先关闭软件,删除target目录下所有文件但保留文件夹,接着更新项目,最后运行Maven构建。
671

被折叠的 条评论
为什么被折叠?



