java - Checksum validation failed while downloading maven dependency -
i have maven project these dependencies -
<dependency> <groupid>org.apache.hbase</groupid> <artifactid>hbase-server</artifactid> <version>1.2.2</version> <exclusions> <exclusion> <groupid>org.slf4j</groupid> <artifactid>slf4j-api</artifactid> </exclusion> </exclusions> </dependency> <dependency> <groupid>org.apache.hbase</groupid> <artifactid>hbase-server</artifactid> <version>1.2.2</version> <classifier>tests</classifier> <scope>test</scope> </dependency>
i did fresh (deleted repository
directory under .m2
) mvn clean install
.
one machine 1 (mvn version - 3.3.3), under .m2/repository/org/apache/hbase/hbase-server/1.2.2
it downloaded
-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
on machine 2 (mvn version - 3.0.4), under same directory
-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
you see hbase-server-1.2.2-tests.jar.sha1
missing , hbase-server-1.2.2-tests.jar
corrupted (40 kb)
jenkins logs:
downloading: http://repo.jenkins-ci.org/public/org/apache/hbase/hbase-server/1.2.2/hbase-server-1.2.2-tests.jar
[warning] checksum validation failed, expected b40b13063ee56ba3b783645444545d520ca40764 cd3be44d9c4c4b20a12f70acc17a58e8141d7bed http://repo.jenkins-ci.org/public/org/apache/hbase/hbase-server/1.2.2/hbase-server-1.2.2-tests.jar
[error] failed execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:testcompile (default-testcompile) on project kundera-hbase-v2: compilation failure
[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
also tried http://repo1.maven.org/maven2
repository. result same.
i've manually downloaded jar file , checksum correct one. there problem internet connection. broken cable, interface, router, etc., or firewall/anti-virus software going bananas.
Comments
Post a Comment