记录一次Spring5源码编译过程

mac2024-10-01  45

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 ,也可以设置成你自己想要的,博主在这里浪费了好久才弄清楚,哎。

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

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

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

最新回复(0)