其他分享
首页 > 其他分享> > mvn build报错:unable to find valid certification path to requested target

mvn build报错:unable to find valid certification path to requested target

作者:互联网

由于公司运维调整了网络安全策略,导致使用maven编译的时候报

Could not transfer artifact xxx from/to xxx
sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

大致是因为证书原因导致下载jar包的时候失败

通过添加参数解决:

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

标签:requested,http,certification,unable,报错,path,find
来源: https://blog.csdn.net/li281037846/article/details/121670657