gradle构建spring-framework源码

5.3.22版本构建

通过启动的jvm参数配置代理下载

image-20240121204701337

Could not download jruby-stdlib-9.2.20.1.jar (org.jruby:jruby-stdlib:9.2.20.1)
Could not get resource 'https://repo.maven.apache.org/maven2/org/jruby/jruby-stdlib/9.2.20.1/jruby-stdlib-9.2.20.1.jar'.
Could not GET 'https://repo.maven.apache.org/maven2/org/jruby/jruby-stdlib/9.2.20.1/jruby-stdlib-9.2.20.1.jar'.
Read timed out

Possible solution:
 - Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html
 
 再刷新一次,下载成功了
D:\environment\gradle\gredleRepository\caches\modules-2\files-2.1\org.jruby\jruby-stdlib\9.2.20.1\ab3f211235b19cac3eaa7eefe2f4217d6de444ad

6.x版本构建-代理

image-20240121212039992

image-20240121211920039

image-20240121213301380

spring高版本必须要高版本的JDK才支持,部分java自带方法只有高版本才支持。

这样配置代理之后,使用jinfo -sysprops查询启动的系统参数,发现里面没有这几项代理配置(可能是没有加载进配置文件,代理确实被使用了)。

下面的报错像是下载Java相关编译报错,应该是不能直接下,从main分支切换为6.x分支,等着下载就好了

image-20240121215134414
https://docs.gradle.org/8.5/userguide/command_line_interface.html#sec:command_line_warnings

image-20240121214821142

构建成功

image-20240122140131827

相关推荐

  1. spring分析之上下文构建

    2024-01-23 06:44:02       29 阅读
  2. IDEA Gradle 下载

    2024-01-23 06:44:02       59 阅读
  3. 构建:深入解析Gradle的settings.gradle文件

    2024-01-23 06:44:02       26 阅读
  4. 【Android Framewrok】Handler解析

    2024-01-23 06:44:02       18 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-01-23 06:44:02       94 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-01-23 06:44:02       100 阅读
  3. 在Django里面运行非项目文件

    2024-01-23 06:44:02       82 阅读
  4. Python语言-面向对象

    2024-01-23 06:44:02       91 阅读

热门阅读

  1. Docker安装mysql

    2024-01-23 06:44:02       57 阅读
  2. PyTorch ,TensorFlow和Caffe之间的区别

    2024-01-23 06:44:02       58 阅读
  3. python 面经

    2024-01-23 06:44:02       58 阅读
  4. cocoapods 常用命令

    2024-01-23 06:44:02       51 阅读
  5. yarn的安装及使用教程

    2024-01-23 06:44:02       64 阅读
  6. WEB前端IDE的使用以及CSS的应用

    2024-01-23 06:44:02       48 阅读
  7. 如何使用Pycharm社区免费版创建Django项目

    2024-01-23 06:44:02       51 阅读
  8. npm install vue3-print-nb --legacy-peer-deps npm ERR!

    2024-01-23 06:44:02       49 阅读
  9. bash 5.2中文修订2

    2024-01-23 06:44:02       51 阅读