Spring源码阅读之路一:源码构建错误解决

这篇博客详细记录了在阅读Spring源码过程中遇到的构建错误,问题主要集中在Gradle无法解析特定版本的guava、istack-commons-runtime和FastInfoset依赖。错误日志显示下载这些依赖时发生超时。解决方法是在build.gradle文件中手动添加缺失的依赖项,以确保构建成功。
摘要由CSDN通过智能技术生成

源码构建错误日志如下:
Generating JAR file ‘gradle-api-4.4.jar’
Generating JAR file ‘gradle-test-kit-4.4.jar’
Download https://plugins.gradle.org/m2/me/champeau/gradle/japicmp-gradle-plugin/0.2.8/japicmp-gradle-plugin-0.2.8.pom
Download https://repo.maven.apache.org/maven2/com/github/siom79/japicmp/japicmp/0.13.1/japicmp-0.13.1.pom
Download https://repo.maven.apache.org/maven2/com/github/siom79/japicmp/japicmp-base/0.13.1/japicmp-base-0.13.1.pom
Download https://repo.maven.apache.org/maven2/org/sonatype/oss/oss-parent/9/oss-parent-9.pom
Download https://repo.maven.apache.org/maven2/com/sun/xml/bind/jaxb-impl/2.2.7/jaxb-impl-2.2.7.pom
Download https://repo.maven.apache.org/maven2/com/sun/xml/bind/jaxb-core/2.2.7/jaxb-core-2.2.7.pom
Download https://repo.maven.apache.org/maven2/org/javassist/javassist/3.23.1-GA/javassist-3.23.1-GA.pom
Download https://repo.maven.apache.org/maven2/javax/xml/bind/jaxb-api/2.2.7/jaxb-api-2.2.7.pom
Download https://repo.maven.apache.org/maven2/net/java/jvnet-parent/1/jvnet-parent-1.pom
Download https://repo.maven.apache.org/maven2/javax/activation/activation/1.1/activation-1.1.pom
Download https://repo.maven.apache.org/maven2/com/google/guava/guava/18.0/guava-18.0.pom

FAILURE: Build failed with an exception.

  • What went wrong:
    Could not resolve all files for configuration ‘:buildSrc:runtimeClasspath’.

Could not resolve com.google.guava:guava:18.0.
Required by:
project :buildSrc > me.champeau.gradle:japicmp-gradle-plugin:0.2.8 > com.github.siom79.japicmp:japicmp:0.13.1
Could not resolve com.google.guava:guava:18.0.
Could not parse POM https://repo.maven.apache.org/maven2/com/google/guava/guava/18.0/guava-18.0.pom
Could not resolve com.google.guava:guava-parent:18.0.
Could not resolve com.google.guava:guava-parent:18.0.
Could not get resource ‘https://repo.maven.apache.org/maven2/com/google/guava/guava-parent/18.0/guava-parent-18.0.pom’.
Could not GET ‘https://repo.maven.apache.org/maven2/com/google/guava/guava-parent/1

评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值