证书错误PKIX路径构建因gradle-processors-2.1.0.pom而失败

时间:2019-01-24 19:57:17

标签: java spring spring-boot gradle

我是一个使用Gradle的SpringBoot项目,当Gradle下载一个依赖项时,我遇到了一个问题:

错误:

Caused by: org.gradle.internal.resolve.ModuleVersionResolveException: Could not resolve gradle.plugin.org.inferred:gradle-processors:2.1.0.


Caused by: org.gradle.api.resources.ResourceException: Could not get resource 'https://plugins.gradle.org/m2/gradle/plugin/org/inferred/gradle-processors/2.1.0/gradle-processors-2.1.0.pom'.

Caused by: org.gradle.internal.resource.transport.http.HttpRequestException: Could not GET 'https://plugins.gradle.org/m2/gradle/plugin/org/inferred/gradle-processors/2.1.0/gradle-processors-2.1.0.pom'.

Caused by: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

我已经尝试了本主题中的解决方案,但是没有用:Streamparse wordcount example

有人知道如何解决这个问题吗?

0 个答案:

没有答案