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

Ben*_*nno 7 ssl repository maven intellij-15

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

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

我可以理解,因为它是一个自签名的不受信任的证书,但我已将此证书添加到设置 - >工具 - >服务器证书 - >接受的证书.

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

我仍然遇到这个问题.

非常适合解决方案.

Bur*_*man 23

在设置中更新 Maven Importer 和 Runner 以允许所有。

-Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true
Run Code Online (Sandbox Code Playgroud) 赛跑者

在此处输入图片说明

进口商

在此处输入图片说明