當設定 Jenkins 時發現沒有JAVA_HOME, 正奇怪明明已經安裝了Open JDK 7. 原來未安裝devel packages.
yum install java-1.7.0-openjdk-devel -y然後加上java.sh 到 /etc/profile.d
1 2 |
[ -z "$JAVA_HOME" ] && JAVA_HOME="/usr/lib/jvm/java" export JAVA_HOME |
Maven:
link from https://maven.apache.org/download.cgi
1 2 3 4 5 6 7 8 |
wget http://apache.mirror.digitalpacific.com.au/maven/maven-3/3.3.3/binaries/apache-maven-3.3.3-bin.tar.gz tar zxvf apache-maven-3.3.3-bin.tar.gz -C /usr/local ln -s /usr/local/apache-maven-3.3.3 /usr/local/maven vim /etc/profile.d/maven.sh #add following lines to maven.sh export M2_HOME=/usr/local/maven export M2=$M2_HOME/bin PATH=$M2:$PATH |
Ant:
links from https://ant.apache.org/bindownload.cgi
1 2 3 4 5 6 7 |
wget http://mirror.ventraip.net.au/apache//ant/binaries/apache-ant-1.9.5-bin.tar.gz tar zxvf apache-ant-1.9.5-bin.tar.gz -C /usr/local ln -s /usr/local/apache-ant-1.9.5 /usr/local/ant vim /etc/profile.d/ant.sh # add following line to ant.sh ANT_HOME=/usr/local/ant PATH=$PATH:$ANT_HOME/bin |