记录一次Spring5源码编译过程

1.环境配置

传送门:https://blog.csdn.net/baomw/article/details/83956300

2.按照上面配置好后,我运行项目出来的内存不够的问题:

Error:Unable to start the daemon process.
This problem might be caused by incorrect configuration of the daemon.
For example, an unrecognized jvm option is used.
Please refer to the user guide chapter on the daemon at https://docs.gradle.org/4.1/userguide/gradle_daemon.html
Please read the following process output to find out more:
-----------------------

解决的办法是:

GRADLE_USER_HOME路径下面配置gradle.properties文件,没有的话可以手动添加,内容是:

org.gradle.daemon=true
org.gradle.jvmargs=-Xmx512m -XX:MaxHeapSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
#并行编译
org.gradle.parallel=true
#开启孵化模式
org.gradle.configureondemand=true

同时修改下面的文件,将1536m改成512m ,也可以设置成你自己想要的,博主在这里浪费了好久才弄清楚,哎。

记录一次Spring5源码编译过程_第1张图片

如下面这样就算导入成功了

记录一次Spring5源码编译过程_第2张图片

关于无法连接 repo.maven.apache资源的问题请参考这里

https://blog.csdn.net/umbrellalalalala/article/details/88325437

你可能感兴趣的:(记录一次Spring5源码编译过程)