当前位置:   article > 正文

gradle 转换spring源码成eclipse工程

gradle 转换spring源码成eclipse工程

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
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15

方式二:转换通过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
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/从前慢现在也慢/article/detail/841779
推荐阅读
相关标签
  

闽ICP备14008679号