报错: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/

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。