首页 / APACHE / Maven Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.5:clean Failed to delete access_log
Maven Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.5:clean Failed to delete access_log
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了Maven Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.5:clean Failed to delete access_log,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含1565字,纯文字阅读大概需要3分钟。
内容图文
When I‘m trying to exucute next goals:clean install tomcat7:run ,there is an error :
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.5:clean
(default-clean) on project myproject: Failed to clean project: Failed to delete
D:\EclipseWorkspace\myproject\target\tomcat\logs\access_log.2015-02-21
-> [Help 1]
I‘ve googled and understand that tomcat uses this access_log file, where he logs user requests. And by the time when I want to execute goals listed above, as I‘m using Eclipse IDE, the JVM denies for deleting this file.
solution1:
Have you stopped Tomcat before clean? If not this is a typical problem on Windows, cause if the file is being used windows will lock that file and you can‘t delete it.
solution2:
I‘ve seen this sort of error whenever there‘s a process that‘s holding a lock on a file in some subfolder that‘s Maven is trying to clean. Check that your Tomcat instance is really stopped (look for java processes in Task Manager that shouldn‘t be there).
关闭这个进程就可以了,因为再次build时tomcat并没有真正关闭。
I‘ve also created this issue for myself by opening the access log in a text editor, and then forgetting to close the editor after shutting down the Tomcat and trying to run a new build.
similar:
kill the java (TM) process from processes in you computer. re-run mvn cmd . It should work now.
Maven Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.5:clean Failed to delete access_log
标签:
本文系统来源:http://www.cnblogs.com/winner-0715/p/5467390.html
内容总结
以上是互联网集市为您收集整理的Maven Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.5:clean Failed to delete access_log全部内容,希望文章能够帮你解决Maven Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.5:clean Failed to delete access_log所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。