开发者社区> 问答> 正文

阿里云Maven仓库证书问题 PKIX path building failed

使用gradle编译的,配置的阿里云的镜像。 阿里云网站的证书也导入到$JAVA_HOME/jre/lib/security/cacerts里了 但是还是报如下错误:

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':core'.
> Could not resolve all files for configuration ':core:scoverage'.
   > Could not download scalac-scoverage-plugin_2.11.jar (org.scoverage:scalac-scoverage-plugin_2.11:1.3.1)
      > Could not get resource 'https://maven.aliyun.com/repository/public/org/scoverage/scalac-scoverage-plugin_2.11/1.3.1/scalac-scoverage-plugin_2.11-1.3.1.jar'.
         > Could not GET 'https://maven.aliyun.com/repository/public/org/scoverage/scalac-scoverage-plugin_2.11/1.3.1/scalac-scoverage-plugin_2.11-1.3.1.jar'.
            > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
   > Could not download scalac-scoverage-runtime_2.11.jar (org.scoverage:scalac-scoverage-runtime_2.11:1.3.1)
      > Could not get resource 'https://maven.aliyun.com/repository/public/org/scoverage/scalac-scoverage-runtime_2.11/1.3.1/scalac-scoverage-runtime_2.11-1.3.1.jar'.
         > Could not GET 'https://maven.aliyun.com/repository/public/org/scoverage/scalac-scoverage-runtime_2.11/1.3.1/scalac-scoverage-runtime_2.11-1.3.1.jar'.
            > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

* Try:
Run with --info or --debug option to get more log output. Run with --scan to get full insights.

展开
收起
香山上的麻雀 2020-12-10 10:47:02 1667 0
0 条回答
写回答
取消 提交回答
问答排行榜
最热
最新

相关电子书

更多
(in)security in building autom 立即下载
Automated-Testing-Of-Crypto-Software-Using-Differential-Fuzzing 立即下载
Automated Testing of Crypto 立即下载

相关镜像