美文网首页
unable to find valid certificati

unable to find valid certificati

作者: 久伴_不离 | 来源:发表于2020-05-31 23:00 被阅读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     中间用空格隔开

    相关文章

      网友评论

          本文标题:unable to find valid certificati

          本文链接:https://www.haomeiwen.com/subject/tgkwwhtx.html