欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

IDEA unable to find valid certification path to requested target。PKIX path building failed

程序员文章站 2022-05-01 14:49:17
...

转自: https://www.cnblogs.com/shwang/p/12090894.html


1 报错

Could not transfer artifact org.apache.maven.plugins:maven-install-plugin:pom:2.4 from/to alimaven (https://maven.aliyun.com/repository/central): 
sun.security.validator.ValidatorException: 
PKIX path building failed: 
sun.security.provider.certpath.SunCertPathBuilderException: 
unable to find valid certification path to requested target

2 解决

添加参数
-Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true
IDEA unable to find valid certification path to requested target。PKIX path building failed