Skip to content

Instantly share code, notes, and snippets.

@aaalaniz
Created October 13, 2014 18:09
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save aaalaniz/50ae3c0eb9f5ffb0eb91 to your computer and use it in GitHub Desktop.
Save aaalaniz/50ae3c0eb9f5ffb0eb91 to your computer and use it in GitHub Desktop.
Install Maven 3.1.1
# 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