读书人

spring 三 源码下载与eclipse导入

发布时间: 2012-06-29 15:48:47 作者: rapoo

spring 3 源码下载与eclipse导入
首先 下载git
http://code.google.com/p/msysgit/downloads/list?can=3&q=official+Git
安装(略...,网上都有呵)


然后cmd环境下执行如下操作
引用
1,check out sources

git clone git://github.com/SpringSource/spring-framework.git

2,compile and test, build all jars, distribution zips and docs

gradlew build

注:此处报错的话,请调整下java内存设置(环境变量下设置:JAVA_OPTS=-Xms512m -Xmx1024m )

3,install all spring-* jars into your local Maven cache

gradlew install


执行
引用
gradlew cleanEclipse :spring-oxm:compileTestJava eclipse -x :eclipse

后导入子目录
(注意此处需jdk6,本人使用的IDE为:eclipse-jee-indigo-SR2-win32.zip)
执行完,应该是不报错的

执行
引用
gradlew :eclipse

导入根目录


至此,源码下载,导入完毕




参考:https://github.com/SpringSource/spring-framework#building_from_source
http://code.google.com/p/msysgit/


效果图,见附件

读书人网 >Eclipse开发

热点推荐