使用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.
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。