Skip to content

Source code build error #25719

@wangke6194

Description

@wangke6194

构建环境: idea 2020 ,gradle 6.6 ,jdk 11
问题: unable to find valid certification path to requested target
过程: 试过很多种方法,问题一直没有解决(jdk从8升级到11,gradle从5.6.4升级到6.6,也向jdk中导入过ssl证书,一直无法解决)
idea构建异常信息:
Could not resolve me.champeau.gradle:japicmp-gradle-plugin:0.2.8.
Required by:
project :buildSrc
> Could not resolve me.champeau.gradle:japicmp-gradle-plugin:0.2.8.
> Could not get resource 'https://plugins.gradle.org/m2/me/champeau/gradle/japicmp-gradle-plugin/0.2.8/japicmp-gradle-plugin-0.2.8.pom'.
> Could not GET 'https://plugins.gradle.org/m2/me/champeau/gradle/japicmp-gradle-plugin/0.2.8/japicmp-gradle-plugin-0.2.8.pom'.
> PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
> Could not resolve me.champeau.gradle:japicmp-gradle-plugin:0.2.8.
> Could not get resource 'https://repo.maven.apache.org/maven2/me/champeau/gradle/japicmp-gradle-plugin/0.2.8/japicmp-gradle-plugin-0.2.8.pom'.
> Could not GET 'https://repo.maven.apache.org/maven2/me/champeau/gradle/japicmp-gradle-plugin/0.2.8/japicmp-gradle-plugin-0.2.8.pom'.
> PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

cmd构建异常信息:
Downloading https://services.gradle.org/distributions/gradle-5.6.4-bin.zip

Exception in thread "main" javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: invalidAn issue that we don't feel is valid

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions