IntelliJ IDEA構建spring4.3.x源碼步驟

1. Github官網下載源碼,地址:https://github.com/spring-projects/spring-framework/tree/4.3.x

download zip包包

這裏寫圖片描述

下載好之後解壓,在Spring-framework文件夾下找到import-into-idea.md並打開,裏面有導入idea的詳細步驟和說明

2. 打開在你本地spring-framework工作目錄,命令行執行:./gradlew :spring-oxm:compileTestJava (Mac or Linux)

3. 構建完成後,Import into IntelliJ (File -> New -> Project from Existing Sources -> Navigate to directory -> Select build.gradle)
導入到IntelliJ(文件->新建->從已存在文件創建工程->選擇目錄->選擇build.gradle)

4. 比較坑的一步,打開file-project structure-modules, 移除模塊spring-aspects
5. 編譯代碼, 到spring-framework工作目錄,執行命令:../gradlew cleanIdea :spring-oxm:compileTestJava

等待編譯完成(注:編譯過程中會自動聯網下載依賴,沒網的話就杯具啦,編譯過程耗時比較長,需耐心等待,直到打印build successful,Ok,搞定)

 

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章