maven 编译出错 Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.5:clean

Posted 君丨莫丨笑

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了maven 编译出错 Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.5:clean相关的知识,希望对你有一定的参考价值。

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.5:clean (default-clean) on project study-search: Failed to clean project: Failed to delete D:Pxxtarget	omcatlogsaccess_log.2017-3-24
[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.

出现这种错误,通常是由于您已启动了另一个tomcat 进程或者运行的javaw.exe进程,导致报错。

解决方法:

1. 鼠标点击 X 进行关闭运行失败的 Console页,(如果运行多次,程序的console都只会放在这里)

 

关闭后,应该可以看到,红色小正方形。点击,使tomcat进程或运行的javaw.exe进程停止。

再重新编译即可。

以上是关于maven 编译出错 Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.5:clean的主要内容,如果未能解决你的问题,请参考以下文章

maven 编译出错 Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.5:clean

maven打包出错: Failed to clean project: Failed to delete

docker maven 出错:Failed to execute goal com.spotify:docker-maven-plugin:...: Request error: POST http

thingsboard 2.4.3 编译报错Failed to execute goal org.xolstice.maven.plugins:protobuf-maven-plugin:0.5.0:

thingsboard 2.4.3 编译报错Failed to execute goal org.xolstice.maven.plugins:protobuf-maven-plugin:0.5.0:

Maven多模块项目单独编译子模块项目时报错:Failed to execute goal on project