Maven 项目clean时报这个错误怎么破?
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building open Maven Webapp 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ open ---
[INFO] Deleting F:workspaceopenopentarget
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.238 s
[INFO] Finished at: 2016-03-24T15:07:06+08:00
[INFO] Final Memory: 3M/120M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.4.1:clean (default-clean) on project open: Failed to clean project: Failed to delete F:workspaceopenopentargettomcatlogsaccess_log.2016-03-24 -> [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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
这个需要把myeclipse关闭,然后去文件夹里面删掉这个日志文件,在重启myeclipse,clean tomcat7:run ,这样可以。不知道有没有什么别的好办法。
果然是,有没有资料介绍一下为什么被占用之类的……
回复
windows只会告诉你该文件被其他程序占用,但不会告诉是哪个!我也不知道为什么,虽然有一些软件可以检查是哪个文件打开了,但是这也改变不了windows这么“傻”