title: Maven Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.5:clean Failed to delete access_log
body: <p>I'm trying to run simple struts project using maven and tomcat.</p>
  
  <p>When I'm trying to exucute next goals: <code>clean install tomcat7:run</code> I'm getting <code>MojoExecutionException</code> :</p>
  
  <pre><code>[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
  -&gt; [Help 1]
  </code></pre>
  
  <p>I've googled and understand that tomcat uses this <code>access_log</code> 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.</p>
  
  <p>I saw same questions: <a href="https://stackoverflow.com/questions/11806786/failed-to-execute-goal-org-apache-maven-pluginsmaven-clean-plugin2-4-1">Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.4.1</a>, <a href="https://stackoverflow.com/questions/20442862/maven-failed-to-execute-goal-org-apache-maven-pluginsmaven-clean-plugin2-4-1">Maven - Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.4.1:clean</a>.</p>
  
  <p>But don't understand the proposed solutions to such problem.</p>