使用 Git 下载 Spring 源码 编译 for Eclipse
1、安装gradle,下载 http://www.gradle.org/downloads
配置环境变量GRADLE_HOME,配置PATH %GRADLE_HOME%/bin,cmd,gradle -v
2、spring4 用jdk8 下载 https://jdk8.java.net/download.html 配置环境变量
3、github 下载 https://windows.github.com/
4、groovy 下载 http://groovy-lang.org/download.html 配置环境变量
5、打开git shell,切换工作目录(跟linux命令基本一致)
输入:git clone https://github.com/SpringSource/Spring-framework.git
等着吧!
6、进入下载的Spring-framework的目录找import-into-eclipse.bat,运行,导入eclipse
7、进入Spring-framework的目录 运行: gradlew :eclipse (注意冒号前面的空格),生成.classpath和.project
8、安装groovy插件,在eclipse的 Help -> Install New Software 中,添加groovy
下载: http://dist.springsource.org/milestone/GRECLIPSE/e4.4/
9、eclipse重启后,进入Spring-framework的目录 运行: gradlew :clean
10、如果需要编译,运行gradlew :build
等着吧,一个个编译还是要点时间的。
编译有点问题
* What went wrong:
Could not resolve all dependencies for configuration ':spring-tx:compile'.
> Could not find com.ibm.websphere:uow:6.0.2.17.
Searched in the following locations:
https://repo1.maven.org/maven2/com/ibm/websphere/uow/6.0.2.17/uow-6.0.2.17
.pom
https://repo1.maven.org/maven2/com/ibm/websphere/uow/6.0.2.17/uow-6.0.2.17
.jar
Required by:
org.springframework:spring-tx:4.2.0.BUILD-SNAPSHOT
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug
option to get more log output.
BUILD FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Could not resolve all dependencies for configuration ':spring-test:compile'.
> Could not find testng.jar (org.testng:testng:6.9.4).
Searched in the following locations:
https://repo.spring.io/libs-release/org/testng/testng/6.9.4/testng-6.9.4.j
ar
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug
option to get more log output.
BUILD FAILED
http://stackoverflow.com/questions/23564525/com-ibm-websphereuow6-0-2-17-not-found
相关推荐
1、window--show view -- git -- Git Repositories 2、url输入https://github.com/spring-projects/spring-framework.git 3、选择自己需要的版本下载 ...最后:分享的源码式编译后的可直接导入Eclipse中。
从Spring官方源码库git下载的最新源码,Spring Framework源码在本地编译之后,已生成eclipse所需的.project和.class工程文件,可直接导入到eclipse中
Eclipse Xml编译错误引用的文件包含错误 - spring-beans-4.0.xsd 6年前 Git_语言_显示 修改GitHub上项目语言显示的问题 6年前 Gradle_依赖项_排除 Gradle 依赖排除 6年前 Gradle_依赖_管理 Gradle依赖管理 6年前 ...
SpringMVC | MVC框架 | [http://docs.spring.io/spring/docs/current/spring-framework-reference/htmlsingle/#mvc](http://docs.spring.io/spring/docs/current/spring-framework-reference/htmlsingle/#mvc) ...
包括编译器、构建工具(如Make、Gradle、Maven)等,用于将源代码转换为可执行文件或库,并进行资源打包、优化等处理。 调试与测试: 集成调试器允许开发者逐行执行代码,设置断点、查看变量值、跟踪调用堆栈等...
包括编译器、构建工具(如Make、Gradle、Maven)等,用于将源代码转换为可执行文件或库,并进行资源打包、优化等处理。 调试与测试: 集成调试器允许开发者逐行执行代码,设置断点、查看变量值、跟踪调用堆栈等...
包括编译器、构建工具(如Make、Gradle、Maven)等,用于将源代码转换为可执行文件或库,并进行资源打包、优化等处理。 调试与测试: 集成调试器允许开发者逐行执行代码,设置断点、查看变量值、跟踪调用堆栈等...
包括编译器、构建工具(如Make、Gradle、Maven)等,用于将源代码转换为可执行文件或库,并进行资源打包、优化等处理。 调试与测试: 集成调试器允许开发者逐行执行代码,设置断点、查看变量值、跟踪调用堆栈等...
包括编译器、构建工具(如Make、Gradle、Maven)等,用于将源代码转换为可执行文件或库,并进行资源打包、优化等处理。 调试与测试: 集成调试器允许开发者逐行执行代码,设置断点、查看变量值、跟踪调用堆栈等...
包括编译器、构建工具(如Make、Gradle、Maven)等,用于将源代码转换为可执行文件或库,并进行资源打包、优化等处理。 调试与测试: 集成调试器允许开发者逐行执行代码,设置断点、查看变量值、跟踪调用堆栈等...
包括编译器、构建工具(如Make、Gradle、Maven)等,用于将源代码转换为可执行文件或库,并进行资源打包、优化等处理。 调试与测试: 集成调试器允许开发者逐行执行代码,设置断点、查看变量值、跟踪调用堆栈等...
2、下载源码git clone https://gitee.com/zhouhuanOGP/J2EEFAST.git。 3、编译代码找到根目录下pom.xml,执行mvn clean install命令编译一键打包。一般来说不会有什么问题,如果还是编译不成功,可以按照优先级逐个...
2、下载源码git clone https://gitee.com/zhouhuanOGP/J2EEFAST.git。3、编译代码找到根目录下pom.xml,执行mvn clean install命令编译一键打包。一般来说不会有什么问题,如果还是编译不成功,可以按照优先级逐个...