`
lgsd123456
  • 浏览: 1016 次
  • 性别: Icon_minigender_1
  • 来自: 武汉
社区版块
存档分类
最新评论

Spring-framework源码编译

阅读更多
1、前置条件
prerequisites

Git and OpenJDK 8 early access build 100 or later

Be sure that your JAVA_HOME environment variable points to the jdk1.8.0 folder extracted from the JDK download.

2、下载源码
check out sources

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

3、导入源码进入Eclipse Kepler

import sources into your IDE

Run ./import-into-eclipse.sh or read import-into-idea.md as appropriate.

-----------------------------------------------------------------------
Spring Framework Eclipse/STS project import guide

This script will guide you through the process of importing the
Spring Framework sources into Eclipse/STS. It is recommended that you
have a recent version of the SpringSource Tool Suite (this script has
been tested against STS '2.9.2.RELEASE'), but at the minimum you will
need Eclipse + AJDT.

If you need to download and install STS, please do that now by
visiting http://spring.io/tools/sts/all

Otherwise, press enter and we'll begin.
请按任意键继续. . .


-----------------------------------------------------------------------
STEP 1: Generate subproject Eclipse metadata

The first step will be to generate Eclipse project metadata for each
of the spring-* subprojects. This happens via the built-in
"Gradle wrapper" script (./gradlew in this directory). If this is your
first time using the Gradle wrapper, this step may take a few minutes
while a Gradle distribution is downloaded for you.

The command run will be:

    gradlew cleanEclipse :spring-oxm:compileTestJava eclipse -x :eclipse

Press enter when ready.
请按任意键继续. . .

这之间,要中断很多次,请保持耐心重复执行上述步骤,直至下面的成功出现:

BUILD SUCCESSFUL

Total time: 2 mins 37.013 secs

-----------------------------------------------------------------------
STEP 2: Import subprojects into Eclipse/STS

Within Eclipse/STS, do the following:

File > Import... > Existing Projects into Workspace
     > When prompted for the 'root directory', provide D:\Java\githubcode\spring
-framework\
     > Press enter. You will see the modules show up under "Projects"
     > All projects should be selected/checked. Click Finish.
     > When the project import is complete, you should have no errors.

When the above is complete, return here and press the enter key.
请按任意键继续. . .

-----------------------------------------------------------------------
STEP 3: generate root project Eclipse metadata

Unfortunately, Eclipse does not allow for importing project
hierarchies, so we had to skip root project metadata generation in the
during step 1. In this step we simply generate root project metadata
so you can import it in the next step.

The command run will be:

    gradlew :eclipse

Press the enter key when ready.
请按任意键继续. . .
:buildSrc:compileJava UP-TO-DATE
:buildSrc:compileGroovy UP-TO-DATE
:buildSrc:processResources UP-TO-DATE
:buildSrc:classes UP-TO-DATE
:buildSrc:jar UP-TO-DATE
:buildSrc:assemble UP-TO-DATE
:buildSrc:compileTestJava UP-TO-DATE
:buildSrc:compileTestGroovy UP-TO-DATE
:buildSrc:processTestResources UP-TO-DATE
:buildSrc:testClasses UP-TO-DATE
:buildSrc:test UP-TO-DATE
:buildSrc:check UP-TO-DATE
:buildSrc:build UP-TO-DATE
:eclipseClasspath
:eclipseJdtPrepare
:eclipseJdt
:eclipseProject
:eclipseSettings
:eclipseWstComponent
:eclipse

BUILD SUCCESSFUL

Total time: 10.384 secs

-----------------------------------------------------------------------
STEP 4: Import root project into Eclipse/STS

Follow the project import steps listed in step 2 above to import the
root project.

Press enter when complete, and move on to the final step.
请按任意键继续. . .


-----------------------------------------------------------------------
STEP 5: Enable Git support for all projects

- In the Eclipse/STS Package Explorer, select all spring* projects.
- Right-click to open the context menu and select Team > Share Project...
- In the Share Project dialog that appears, select Git and press Next
- Check "Use or create repository in parent folder of project"
- Click Finish

When complete, you'll have Git support enabled for all projects.

You're ready to code! Goodbye!
分享到:
评论

相关推荐

    最新版源码 spring-framework-5.3.10.zip

    最新版源码 spring-framework-5.3.10.zip最新版源码 spring-framework-5.3.10.zip

    spring-framework-3.2.18 编译无误源码

    SpringFramework是Java开发领域最流行的框架,是事实上的企业级应用开发标准。Spring框架是由于软件开发的复杂性而创建的。Spring使用的是基本的JavaBean来完成以前只可能由EJB完成的事情。然而,Spring的用途不仅仅...

    Spring-Framework-5.2.x Maven版本

    在IDEA中导入此项目后,可以直接设置源码路径,方便地查看和调试Spring Framework的内部实现,这对于深入理解Spring的工作原理、排查问题或进行二次开发非常有帮助。 **4. 学习资源与实践** 要充分利用这个源码,...

    官方原版源码spring-framework-5.1.9.RELEASE.zip

    《Spring Framework 5.1.9.RELEASE源码解析》 Spring Framework作为Java开发领域中的核心框架,一直以来都是开发者们关注的焦点。这次我们聚焦于官方原版源码spring-framework-5.1.9.RELEASE,这个版本包含了完整的...

    spring-framework-5.0.8.RELEASE官方完整包加官方文档

    在这个官方完整包中,`spring-framework-5.0.8.RELEASE-dist.zip` 文件包含了Spring框架的源码、编译后的库文件以及相关的配置文件。开发者可以通过这些文件直接在项目中引入Spring框架,或者进行源码级别的学习和...

    spring-framework-4.3.0.RELEASE(源码已经成功编译)

    《Spring Framework 4.3.0.RELEASE源码解析与深度探索》 Spring Framework作为Java领域最广泛应用的轻量级框架之一,其4.3.0.RELEASE版本的发布为开发者提供了更稳定、高效的服务。这个版本的成功编译,意味着我们...

    spring-framework-5.2.0源码编译

    基于spring5.2.0源码编译,需要阅读源码的同学可以下载后直接导入idea使用。 idea版本为2019.2 。 已经完成了编译,只需要添加自己的模块即可运行。

    编译好的spring-framework-3.2.8.RELEASE源码

    通过查看`org.springframework.beans.factory`和`org.springframework.context`包下的源码,可以深入理解这两个关键组件的工作原理。 4. **AOP实现** Spring的AOP模块实现了面向切面编程,允许开发者定义“切面”...

    通过Gradle下载Spring-framework4.0编译后的源码

    2、url输入https://github.com/spring-projects/spring-framework.git 3、选择自己需要的版本下载 4、下载文件中自带了Gradle ,直接运行import-into-eclipse.bat。 5、编译后导入源码到Excipse中 最后:分享的源码...

    spring-framework-5.0.2.RELEASE-中文注释版-终极完美版.rar

    `org.springframework.context.ApplicationContext`扩展了BeanFactory,提供了更多的企业级服务,如消息传递、事件发布等。在AOP部分,`org.springframework.aop.framework.ProxyFactoryBean`用于创建代理对象,实现...

    spring-framework-源码已编译-可直接导入eclipse

    本资源“spring-framework-源码已编译-可直接导入eclipse”是一个包含 Spring 框架源码的压缩包,经过编译后可以直接在 Eclipse IDE 中进行学习和分析。以下是对 Spring 框架源码的一些关键知识点的详细说明: 1. *...

    spring-framework源码

    《深入剖析Spring Framework源码》 Spring Framework是Java开发领域中的一个里程碑,它以其模块化、松耦合和强大的依赖注入特性,极大地推动了企业级应用的开发效率。本篇文章将深入探讨Spring Framework的源码,...

    spring-framework4.3源码(下载可直接导入)

    spring-framework4.3源码(下载可直接导入eclipse),不需要再重新编译 spring-framework4.3源码(下载可直接导入eclipse),不需要再重新编译

    spring-framework-4.3.5.RELEASE官方完整包加官方文档

    1. 改进的类型安全的依赖注入:Spring 4.3引入了对构造函数和工厂方法的类型安全依赖注入,使得在编译阶段就能发现配置错误,提高了代码质量。 2. 对Java 8的进一步支持:Spring 4.3.5.RELEASE增强了对Java 8新特性...

    官方原版源码spring-framework-5.2.1.RELEASE.zip

    《Spring Framework 5.2.1源码深度解析》 Spring Framework是Java开发中的核心框架,它为构建高质量的企业级应用程序提供了全面的平台。5.2.1版本是Spring的一个重要里程碑,带来了许多新特性、优化和改进。本文将...

    spring-framework-4.3.12.RELEASE--编译好的源码.rar

    可以重点关注`org.springframework`包下的类,如`BeanFactory`、`ApplicationContext`、`AopProxy`等,它们是Spring的核心组件。 7. **源码分析** - `BeanFactory`是Spring的核心接口,它负责管理Bean的生命周期和...

    spring-framework-3.2.x .zip----源码

    本篇文章将围绕 Spring Framework 3.2.x 的源码进行深入探讨,帮助读者理解其核心概念,提升对 Java 应用开发的理解。 1. **依赖注入(Dependency Injection, DI)** - Spring 的核心特性之一是依赖注入,它允许...

    spring-framework 使用gradle编译后源码

    在本压缩包中,使用Gradle 2.14.1编译的Spring Framework 4.3.18源码,为开发者提供了深入理解框架内部工作原理的机会。 源码分析是提升编程技能和解决问题的有效途径,特别是对于像Spring这样的复杂框架。以下是...

    spring-framework-4.2.2.RELEASE-dist.zip

    本文将深入探讨Spring Framework 4.2.2.RELEASE这一稳定版本,涵盖其主要模块、关键特性、使用方法以及源码分析。 1. **模块介绍** Spring框架由多个模块组成,包括Core Container(核心容器)、Data Access/...

    spring-3.1.1源码和架包

    标题中的"spring-3.1.1源码"指的是Spring框架3.1.1版本的源代码,这是理解Spring工作原理、学习其设计模式以及进行定制化开发的重要资源。源码分析可以帮助开发者深入理解IoC(Inversion of Control,控制反转)和...

Global site tag (gtag.js) - Google Analytics