unable to find valid certificati

2020-05-31  本文已影响0人  久伴_不离

[WARNING] Could not transfer metadata org.sonarsource.sonar-packaging-maven-plugin:sonar-packaging-maven-plugin/maven-metadata.xml from/to central (https://repo.maven.apache.org/maven2): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

使用技术:maven   仓库:阿里云

如果报上边那个错误,有多种情况,最直接的方法就是换仓库,可以换国内的或国外的,

国内的下载快,但第三方可能存在验证问题;国外的下载较慢,其实也不是很慢,推荐国外使用maven官方的。

解决方法。

打开idea---》setting---》runnner

在vm options中添加:-Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true     中间用空格隔开

上一篇下一篇

猜你喜欢

热点阅读