Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.6.1:clean (default-clean)
阿新 • • 發佈:2019-01-04
今天碰到這樣一個問題,編譯打包的時候報以下錯誤
[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了!