maven clean 失败

错误信息:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.5:clean (default-clean) on project SearchSwatPortal: Failed to clean project: Failed to delete F:\gitMast555\55-web\target -> [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

解决:

:target不能删除,原因是有其他程序正在占用target。

关闭别的占用程序就可以了。搜索一下可以看到被winSCP占用。maven clean 失败_第1张图片

你可能感兴趣的:(#,maven)