最近编写程序遇到了下面的异常,所以记录了下来。
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.5:clean (default-clean) on project taotao-rest: Failed to clean project: Failed to delete C:\Users\eclipsework-space\taotao-rest\target\tomcat\logs\access_log.2017-08-14 -> [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
原因是maven工程,第二次运行项目的时候记得一定要把前一次运行的状态关掉,再重新运行,不然就会报这个错误
解决方法:
1.点击下图红框的按钮,选择还未关闭的上一次运行的状态
2.出来如下的界面,关闭即可