本文档探讨了如何修复PKIXpathbuildingfailed错误,即SunCertPathBuilderException,通过修改Maven配置参数-Dmaven.wagon.http.ssl.insecure=true-Dmaven.wagon.http.ssl.allowall=true来确保请求目标的有效证书路径。
异常信息:

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

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐