1、下载spring源码方式:
方式一、通过Git客户端下载:
C:\Users\libingshen>git clone https://github.com/spring-projects/spring-framework.git
方式二、通过eclipse的svn检出:
2、spring源码转换成eclipse工程
方式一:转换通过Git客户端下载的spring源码
进入到指定目录,转换时报错:
C:\workspace\Users\libingsen\spring\spring-framework\spring-tx>gradle cleanidea eclipse
FAILURE: Build failed with an exception.
* What went wrong:
Could not open cp_settings remapped class cache for 5qgxdz1e0puslw9ybclj2z10a (C:\Users\libingshen\.gradle\caches\4.5.1\scripts-remapped\settings_cxfogugc33xy6ydqdwuf9jgao\5qgxdz1e0puslw9ybclj2z10a\cp_settings563fc8ebfcf8c58ce3cd23759d4841f4).
> Could not open cp_settings generic class cache for settings file 'C:\workspace\Users\libingsen\spring\spring-framework\settings.gradle' (C:\Users\libingshen\.gradle\caches\4.5.1\scripts\5qgxdz1e0puslw9ybclj2z10a\cp_settings\cp_settings563fc8ebfcf8c58ce3cd23759d4841f4).
> java.io.FileNotFoundException: C:\Users\libingshen\.gradle\caches\4.5.1\scripts\5qgxdz1e0puslw9ybclj2z10a\cp_settings\cp_settings563fc8ebfcf8c58ce3cd23759d4841f4\cache.properties (系统找不到指定的文件。)
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 6s
方式二:转换通过eclipse的svn检出的spring源码
进入到指定目录,转换时报错:
C:\workspace\Users\libingsen\spring2\4.3.x\spring-tx>gradle cleanidea eclipse
Starting a Gradle Daemon, 2 incompatible and 2 stopped Daemons could not be reused, use --status for details
FAILURE: Build failed with an exception.
* What went wrong:
org/gradle/listener/ActionBroadcast
> org.gradle.listener.ActionBroadcast
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 7s