title: Maven clean install COMPILATION ERROR cannot access jar, zip END header not found
body: <p>When building my application on Jenkins using maven I am seeing the following error after running:</p>
  
  <p><code>mvn clean install -q -U -T 1.5C -DskipTests -Dsvn.info.skip=true</code></p>
  
  <p><strong>Error:</strong></p>
  
  <blockquote>
    <p>** [ERROR] COMPILATION ERROR : 
    [ERROR] error reading /apps/jenkins/workspace/some_branch/.m2/com.some_company/any_random.jar; zip file is empty <br/>
    [ERROR] cannot access com.some_company.some_class
    cannot access cannot access com.some_company.some_class zip END header not found
    cannot access jar</p>
  </blockquote>
  
  <p><br/>
  I tried excluding the dependency that was causing the issue as it was transitive but now it happens for other dependencies.</p>
  
  <p>The dependencies are stored in nexus.</p>
  
  <p>I have looked at the JDK being used to build the JARS and considered Network issues but nothing explains this.</p>
  
  <p>Clearing Jenkins and the .m2 folder works sometime for one or two builds but I would like to find a better solution.</p>
  
  <p>Any ideas?</p>