IDEA unable to find valid certification path to requested target

一、报错

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

 

二、解决

添加参数

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

IDEA unable to find valid certification path to requested target

上一篇:Unable to connect to Command Metric Stream 'api/turbine/stream?cluster=REPORTS' Error: {&q


下一篇:idea2019版与maven3.6.2版本不兼容引发的血案