Last active
August 29, 2015 14:08
-
-
Save JCotton1123/870bbd816f4a61db6231 to your computer and use it in GitHub Desktop.
Get maven setup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
yum install -y java-1.7.0-openjdk-devel | |
wget http://apache.spinellicreations.com/maven/maven-3/3.2.3/binaries/apache-maven-3.2.3-bin.tar.gz | |
sudo tar xzf apache-maven-3.2.3-bin.tar.gz -C /usr/local | |
cd /usr/local | |
sudo ln -s apache-maven-3.2.3 maven | |
cat <<VARS > /etc/profile.d/maven.sh | |
export M2_HOME=/usr/local/maven | |
export PATH=${M2_HOME}/bin:${PATH} | |
VARS | |
export M2_HOME=/usr/local/maven | |
export PATH=${M2_HOME}/bin:${PATH} | |
export JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk.x86_64 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment