title: Checksum validation failed while downloading maven dependency
body: <p>I have a maven project with these dependencies -</p>
  <pre><code>    &lt;dependency&gt;
          &lt;groupId&gt;org.apache.hbase&lt;/groupId&gt;
          &lt;artifactId&gt;hbase-server&lt;/artifactId&gt;
          &lt;version&gt;1.2.2&lt;/version&gt;
          &lt;exclusions&gt;
              &lt;exclusion&gt;
                  &lt;groupId&gt;org.slf4j&lt;/groupId&gt;
                  &lt;artifactId&gt;slf4j-api&lt;/artifactId&gt;
              &lt;/exclusion&gt;
          &lt;/exclusions&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.apache.hbase&lt;/groupId&gt;
          &lt;artifactId&gt;hbase-server&lt;/artifactId&gt;
          &lt;version&gt;1.2.2&lt;/version&gt;
          &lt;classifier&gt;tests&lt;/classifier&gt;
          &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
  </code></pre>
  <p>I did a fresh (<em>deleted <code>repository</code> directory under <code>.m2</code></em>)  <strong><code>mvn clean install</code></strong>.</p>
  <p>One machine 1 (<em>mvn version - 3.3.3</em>), under <code>.m2/repository/org/apache/hbase/hbase-server/1.2.2</code></p>
  <p>It successfully downloaded</p>
  <pre><code>-rw-rw-r-- 1 impadmin impadmin   32265 Sep  6 19:51 hbase-server-1.2.2.pom
  -rw-rw-r-- 1 impadmin impadmin      40 Sep  6 19:51 hbase-server-1.2.2.pom.sha1
  -rw-rw-r-- 1 impadmin impadmin 4147025 Sep  6 19:52 hbase-server-1.2.2.jar
  -rw-rw-r-- 1 impadmin impadmin      40 Sep  6 19:52 hbase-server-1.2.2.jar.sha1
  -rw-rw-r-- 1 impadmin impadmin 7492332 Sep  6 19:53 hbase-server-1.2.2-tests.jar
  -rw-rw-r-- 1 impadmin impadmin      40 Sep  6 19:53 hbase-server-1.2.2-tests.jar.sha1
  -rw-rw-r-- 1 impadmin impadmin     291 Sep  7 12:07 _remote.repositories
  </code></pre>
  <p>On machine 2 (<em>mvn version - 3.0.4</em>), under same directory</p>
  <pre><code>-rw-r--r-- 1 root root   32265 Sep  7 14:02 hbase-server-1.2.2.pom
  -rw-r--r-- 1 root root      40 Sep  7 14:02 hbase-server-1.2.2.pom.sha1
  -rw-r--r-- 1 root root 4147025 Sep  7 14:05 hbase-server-1.2.2.jar
  -rw-r--r-- 1 root root      40 Sep  7 14:05 hbase-server-1.2.2.jar.sha1
  -rw-r--r-- 1 root root   26400 Sep  7 14:26 hbase-server-1.2.2-tests.jar
  -rw-r--r-- 1 root root     393 Sep  7 14:26 _maven.repositories
  </code></pre>
  <p><strong>You see <code>hbase-server-1.2.2-tests.jar.sha1</code> is missing and <code> hbase-server-1.2.2-tests.jar</code> is corrupted (40 KB)</strong></p>
  <p>Jenkins logs:</p>
  <blockquote>
  <p>Downloading: <a href="http://repo.jenkins-ci.org/public/org/apache/hbase/hbase-server/1.2.2/hbase-server-1.2.2-tests.jar" rel="nofollow noreferrer">http://repo.jenkins-ci.org/public/org/apache/hbase/hbase-server/1.2.2/hbase-server-1.2.2-tests.jar</a></p>
  <p>[WARNING] Checksum validation failed, expected b40b13063ee56ba3b783645444545d520ca40764 but is cd3be44d9c4c4b20a12f70acc17a58e8141d7bed for <a href="http://repo.jenkins-ci.org/public/org/apache/hbase/hbase-server/1.2.2/hbase-server-1.2.2-tests.jar" rel="nofollow noreferrer">http://repo.jenkins-ci.org/public/org/apache/hbase/hbase-server/1.2.2/hbase-server-1.2.2-tests.jar</a></p>
  <p>[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:testCompile (default-testCompile) on project kundera-hbase-v2: Compilation failure</p>
  <p><strong>[ERROR] error: error reading /root/.m2/repository/org/apache/hbase/hbase-server/1.2.2/hbase-server-1.2.2-tests.jar; error in opening zip file</strong></p>
  </blockquote>
  <hr />
  <p>Also tried with <code>http://repo1.maven.org/maven2</code> repository. Result is same.</p>