export M2_HOME=/opt/apache-maven-3.3.9
export GRADLE_HOME=/opt/gradle/gradle-3.3
export GRADLE_HOME=/opt/gradle/gradle-4.1
export HADOOP_HOME=/opt/hadoop2.6.5
export JAVA_HOME=/usr/lib/jvm/jdk1.8.0_141
export JRE_HOME=${JAVA_HOME}/jre
export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib
export SPRING_BOOT_HOME=/opt/spring-1.3.3.RELEASE
export PATH="$PATH:${JAVA_HOME}/bin:${M2_HOME}/bin:${GRADLE_HOME}/bin:${SPRING_BOOT_HOME}/bin:${HADOOP_HOME}/bin"
Spring
Spring Source code
- 从github下载源码
sudo apt-get install git
git clone git://github.com/SpringSource/Spring-framework.git
- 从本地库中检出一个版本
#检出4.2.x版本
git checkout 4.2.x
# 查看所在分支
git banch -a
Result:
* 4.2.x
master
remotes/origin/3.0.x
remotes/origin/3.1.x
remotes/origin/3.2.x
remotes/origin/4.0.x
remotes/origin/4.1.x
remotes/origin/4.2.x
remotes/origin/4.3.x
remotes/origin/HEAD -> origin/master
remotes/origin/beanbuilder
remotes/origin/conversation
remotes/origin/gh-pages
remotes/origin/master
remotes/origin/update-stomp-reactor-netty
运行gradlew构建
- gradlew vs gradle
Gradlew是包装器(The Gradle Wrapper),自动下载包装里定义好的gradle 版本,保证编译环境统一,gradle 是用本地的gradle
1. 到网站 http://idea.lanyus.com/ 获取注册码。
2.填入下面的license server:
http://intellij.mandroid.cn/
http://idea.imsxm.com/
http://idea.iteblog.com/key.php
以上方法验证均可以