Last active
January 5, 2020 01:47
-
-
Save kloudsamurai/2f8cbcc71dea523f1e652af9e154bc5e to your computer and use it in GitHub Desktop.
Install Maven3 on Amazon Linux Cloud9
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
#!/usr/bin/env bash | |
cd /tmp | |
MVN_VERSION="3.6.3" | |
wget https://www-eu.apache.org/dist/maven/maven-3/$MVN_VERSION/binaries/apache-maven-$MVN_VERSION-bin.tar.gz | |
sudo mkdir /usr/local/apache-maven | |
tar -xzf apache-maven-$MVN_VERSION-bin.tar.gz | |
sudo cp -r apache-maven-$MVN_VERSION /usr/local/apache-maven | |
echo "export M2_HOME=/usr/local/apache-maven/apache-maven-$MVN_VERSION/" >> ~/.bash_profile | |
echo 'export M2=$M2_HOME/bin' >> ~/.bash_profile | |
echo 'export PATH=$M2:$PATH' >> ~/.bash_profile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment