title: Maven downloads corrupted Jars
body: <p>I am running into a maven problem that's killing all my hairs. </p>
  
  <p>So at the beginning all my maven project works fine. And then when I switched to a new computer today and trying to compile them all. </p>
  
  <p>The first error I see from Eclipse is IO error reading jar files from the local maven repository. Then I googled and someone suggested this is some corrupted files, simply delete them and let maven rebuild the repository. </p>
  
  <p>That solves the problem for a while. And then it keeps popping up again and again. </p>
  
  <p>I got tired and removed the whole local repository and did everything all over again. Then I found out the cause: </p>
  
  <blockquote>
    <p>The maven remote repository is BAD. </p>
  </blockquote>
  
  <p>So here is part of the console messages. </p>
  
  <pre>
  [INFO] Unable to find resource 'org.apache.ws.commons.axiom:axiom-dom:jar:1.2.8'
   in repository eclipse-repo (http://repo1.maven.org/eclipse)
  Downloading: https://maven-repository.dev.java.net/nonav/repository//org.apache.
  ws.commons.axiom/jars/axiom-dom-1.2.8.jar
  373b downloaded  (axiom-dom-1.2.8.jar)
  [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = '2c6102c2c3
  70e0b993e897e981618ed448651147'; remote = ' 
  
  <p>The file contains an http redirect. </p>
  
   
  
  
  301 Moved Permanently
  
  <h1>Moved Permanently</h1>
  <p>The document has moved <a href="http://download.java.net/maven/1/org.apache.ws.commons.axiom/poms/axiom-dom-1.2.8.pom" rel="noreferrer">here</a>.</p>
  <hr>
  Apache Server at maven-repository.dev.java.net Port 443
  
  </pre>
  
  <p>I am stuck. How can I get the real dependency jars? How can I tell maven to avoid this? This is really annoying. </p>