-
-
Save kjavier/21d7268bab130f45995c to your computer and use it in GitHub Desktop.
Install Maven 3.3.3 on Ubuntu 14.04
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
#!/bin/sh | |
sudo apt-get purge -y maven | |
if ! [ -e .semaphore-cache/apache-maven-3.3.3-bin.tar.gz ]; then (cd .semaphore-cache; curl -OL http://mirror.olnevhost.net/pub/apache/maven/maven-3/3.3.3/binaries/apache-maven-3.3.3-bin.tar.gz); fi | |
sudo tar -zxf .semaphore-cache/apache-maven-3.3.3-bin.tar.gz -C /usr/local/ | |
sudo ln -s /usr/local/apache-maven-3.3.3/bin/mvn /usr/bin/mvn | |
echo "export M2_HOME=/usr/local/apache-maven-3.3.3" >> ~/.profile | |
. ~/.profile | |
echo "Maven is on version `mvn -v`" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment