Created
October 13, 2014 18:09
-
-
Save aaalaniz/50ae3c0eb9f5ffb0eb91 to your computer and use it in GitHub Desktop.
Install Maven 3.1.1
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
# Install to home directory | |
cd ~ | |
# Extract the package | |
wget http://mirror.metrocast.net/apache/maven/maven-3/3.1.1/binaries/apache-maven-3.1.1-bin.tar.gz | |
tar -xf apache-maven-3.1.1-bin.tar.gz | |
# Install mvn to path | |
M2_HOME=$HOME/apache-maven-3.1.1 | |
echo -e "\n# Maven 3.1.1 Setup" >> ~/.bashrc | |
echo -e "export M2_HOME=$M2_HOME" >> ~/.bashrc | |
echo -e "export PATH=$M2_HOME/bin:$PATH" >> ~/.bashrc | |
source ~/.bashrc | |
rm apache-maven-3.1.1-bin.tar.gz | |
# Navigate back to director you were in | |
cd - |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment