originally intended to use spring3.0.5, the results from the github.com download the source code compiled always have a problem, the hint does not exist "Spring-build" folder, seriously to compare, found that the source is not complete, decisive re-select version. Since most of the application development has gradually switched from spring2.5.x to spring3.x, the last choice spring3.1.1 is https://github.com/spring-projects/ Spring-framework/archive/v3.1.1.release.zip.
To extract it to a local disk, you first need to make sure that the JDK and Ant are already installed on the machine, and that the authentication method is to run the following command at the command line and see the corresponding version.
To prevent memory overflow during compilation, you need to set the environment variable under the command line, which is only a temporary setting, as long as you do not reopen the command line interface to be effective.
Then go to the Build-spring-framework folder to extract the files, execute the ant-p command to see the supported targets:
Because there are some problems with performing some tests, you can skip test and execute the Ant Package command directly to complete the compilation and packaging task.
The next step is to import the source code into eclipse, the main import before the implementation of the ant clean, or import the old hint that a module has been imported, in fact, it is eclipse to the target directory is also imported, so can not continue to import the module should be the source code. Next you can see:
Also shows an exception, which is the need to set Ivy dependencies, as follows:
Project Right-click-propertis-java build Path-libraries-add variable-configure variables-new
Name Fill Ivy_cache
Path Select folder and choose Project/ivy-cache/repository
Spring3 Source Code Compilation Learning