Java异常处理001:Maven clean package时Failed to clean project: Failed to delete
生活随笔
收集整理的這篇文章主要介紹了
Java异常处理001:Maven clean package时Failed to clean project: Failed to delete
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
Java異常處理001:Maven打包時Failed to clean project: Failed to delete
異常日志:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.6.1:clean (default-clean) on project fmk-web: Failed to clean project: Failed to delete D:\WORK\INTELLIJ\xuegao\fmk-web\target\xuegao\WEB-INF\classes\com\hs\web\interceptor -> [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: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn <goals> -rf :fmk-web?
分析原因:
- 通過maven 打包時在clean 時提示 target 文件被占用;?
解決方案:
關閉占用即可;具體如下:
1-在開始搜索框中,輸入“資源監視器”,打開資源監視器:在該窗口中,切換到cpu 頁簽,然后在 關聯的句柄中,輸入 文件名(target),按下回車鍵,即可查找到被占用的進程 ;如下圖
?
2-選中搜索結果,右鍵結束進程;即可;
?
轉載于:https://www.cnblogs.com/wobuchifanqie/p/11007467.html
總結
以上是生活随笔為你收集整理的Java异常处理001:Maven clean package时Failed to clean project: Failed to delete的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: linux vim 高亮查找,vim技巧
- 下一篇: linux vi删除操作,vi删除操作