IDEA unable to find valid certification path to requested target

Posted shwang

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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的主要内容,如果未能解决你的问题,请参考以下文章

IDEA中使用Maven下载依赖时报错:unable to find valid certification path to requested target

Android Studio出现:Cause: unable to find valid certification path to requested target问题解决

azure iothub create-device-identity样例报错: unable to find valid certification path

unable to find valid certification path to requested target

unable to find valid certification path to requested target

已解决Https请求报错:unable to find valid certification path to requested target