编译报错
来源:2-2 Spring源码的下载和编译
![](http://img1.sycdn.imooc.com/user/545845c40001996c02200220-100-100.jpg)
master_D
2020-11-16
使用idea编译一直报Could not resolve me.champeau.gradle:japicmp-gradle-plugin:0.2.8
下载了相应的jar和pom文件并放在要求的路径下也还是一样
idea :2020.2
gradle : 6.7
jdk: 1.8.0_181
详细报错信息:
Execution failed for task ':buildSrc:compileJava'.
> Could not resolve all files for configuration ':buildSrc:compileClasspath'.
> 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 'http://maven.aliyun.com/nexus/content/groups/public/me/champeau/gradle/japicmp-gradle-plugin/0.2.8/japicmp-gradle-plugin-0.2.8.pom'.
> Could not GET 'https://maven.aliyun.com/nexus/content/groups/public/me/champeau/gradle/japicmp-gradle-plugin/0.2.8/japicmp-gradle-plugin-0.2.8.pom'.
> sun.security.validator.ValidatorException: 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://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'.
> 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.
写回答
1回答
-
翔仔
2020-11-17
同学好,出现这个问题,有可能是你的网络本身链接不上对应的地址
https://github.com/spring-projects/spring-framework/issues/25719
又或者是当前的idea版本和gradle-plugin不兼容,如果不是前者的原因,建议按照视频,去github.com下载5.2.0.Release进行编译,并尝试更换idea版本
00
相似问题