Intellij Maven Repository自签名证书,ssl错误

时间:2016-06-08 09:14:03

标签: maven ssl repository intellij-15

在intellij(15.0.4)的settings-> Maven->存储库中,单击公司存储库上的更新时出现错误。

org.apache.maven.wagon.TransferFailedException:sun.security.validator.ValidatorException:PKIX路径构建失败:sun.security.provider.certpath.SunCertPathBuilderException:无法找到所请求目标的有效证书路径

我可以理解,因为它是一个自签名的不受信任的证书,但我已将此证书添加到 settings-> Tools-> Server Certificates-> Accepted Certificates。

我还添加了settings-> Maven-> Runner-> VM选项 -Dmaven.wagon.http.ssl.allowall = true -Dmaven.wagon.http.ssl.insecure = true

我仍然遇到这个问题。

非常适合解决方案。

1 个答案:

答案 0 :(得分:0)

在设置中同时更新Maven Importer和Runner,以允许所有操作。

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

enter image description here

进口商

enter image description here