Maven项目clean报错:Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.5:clean (default

Maven项目clean报错:Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.5:clean (default-clean) on project xxx

Maven项目clean报错:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.5:clean (default-clean) on project xxx: Failed to clean project: Failed to delete E:\2018_1_ideaProject\xxx\xxx\target\tomcat\logs\access_log.2019-02-20 -> [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

原本执行Tomcat:run命令,然后执行clean报错,无法删除log。
原因:log被某个程序占用,无法删除。
解决方式:先终止terminate,再clean。

你可能感兴趣的:(Java)