报错:Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:2.0.5.RELE...

报错信息:

Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:2.0.5.RELEASE from/to jitpack.io (https://jitpack.io): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuil

问题:

从git上克隆下来的项目,导入idea中报红且不会自动导包。

解决方法:

一、确保要导入的包的版本,阿里云上有。
二、在执行maven命令时忽略证书检查。

-Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true



转载自:

http://fungnotl.cn/2020/02/24/%E7%9C%9F%E6%AD%A3%E8%A7%A3%E5%86%B3Could%20not%20transfer%20artifact%20org.springframework.boot_spring-boot-starter-parent_pom/

你可能感兴趣的:(报错:Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:2.0.5.RELE...)