Maven编译出现错误Checksum validation failed,error in opening zip file

问题:mvn编译的时候报错

 1)Checksum validation failed, expected but is c53aeb6e9e798502f6e4d9283b4747c24ceba6f5
 2)读取/Users/.m2/repository/com/alibaba/druid/1.0.20/druid-1.0.20.jar时出错; error in opening zip file

[INFO] --------------------------------[ jar ]---------------------------------
Downloading from codelds: https://code.lds.org/nexus/content/groups/main-repo/org/springframework/spring-core/4.2.6.RELEASE/spring-core-4.2.6.RELEASE.pom
Downloaded from codelds: https://code.lds.org/nexus/content/groups/main-repo/org/springframework/spring-core/4.2.6.RELEASE/spring-core-4.2.6.RELEASE.pom (0 B at 0 B/s)
[WARNING] The POM for org.springframework:spring-core:jar:4.2.6.RELEASE is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
Downloading from codelds: https://code.lds.org/nexus/content/groups/main-repo/org/springframework/spring-core/4.2.6.RELEASE/spring-core-4.2.6.RELEASE.jar
[WARNING] Checksum validation failed, expected 

分析:

问了下度娘,说jar包下载问题,可能是权限什么的问题,巴拉巴拉。。。

解决:

看了项目的pom,引用了远程仓库https://code.lds.org/nexus/content/groups/main-repo,

浏览器查看发现该网站正在维护,于是修改了远程仓库的地址,用中央仓库下载编译就可以了;

Maven编译出现错误Checksum validation failed,error in opening zip file_第1张图片

 

你可能感兴趣的:(关于技术)