Maven异常及解决方法
异常描述
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.662 s
[INFO] Finished at: 2019-11-27T19:28:35+08:00
[INFO] Final Memory: 9M/34M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:3.1.0:clean (default-clean) on project maven_demo2: Failed to clean project: Failed to delete F:\ideaUproject\maven_demo2\target\tomcat\logs\access_log.2019-11-27 -> [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
Process finished with exit code 1
上贴图:
解决方法:
出现这样的错误一般是因为由于自己之前的项目没有关闭,导致端口被占用。将之前的项目关闭然后重新启动即可。