Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.5:clean (default-clean) on project aaa: Failed to clean project: Failed to delete D:\IdeaProjects\aaa\target -> [Help 1]
通过maven 打包时在clean 时提示 target 文件被占用
解决方法:
在开始搜索框中,输入“资源监视器”,打开资源监视器:,如下图所示:
在该窗口中,切换到cpu 页签,然后在 关联的句柄中,输入 文件名(target),按下回车键,即可查找到被占用的进程
右键结束进程。ok
转载自:https://blog.csdn.net/qq_25384945/article/details/86003803