Created
November 20, 2014 09:41
-
-
Save Antwnis/eb248ebf6d8812e902e6 to your computer and use it in GitHub Desktop.
install_maven_centos.sh
This file contains hidden or 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
## Maven ## | |
wget http://www.motorlogy.com/apache/maven/maven-3/3.2.1/binaries/apache-maven-3.2.1-bin.zip -O /usr/local/src/maven-3.2.1.zip | |
unzip /usr/local/src/maven-3.2.1.zip -d /opt | |
mv /opt/apache-maven-3.2.1 /opt/maven | |
ln -s /opt/maven/bin/mvn /usr/bin/mvn | |
bash -c "echo 'MAVEN_HOME=/opt/maven' > /etc/profile.d/maven.sh" | |
bash -c "echo 'MAVEN_OPTS=\"-Xmx2g -Xmx512m -XX:MaxPermSize=512m -XX:ReservedCodeCacheSize=512m\"' >> /etc/profile.d/maven.sh" | |
bash -c "echo 'export CLASSPATH=.' >> /etc/profile.d/maven.sh" | |
source /etc/profile.d/maven.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment