Created
February 11, 2020 22:38
-
-
Save ross-humphrey/bbf676588def6e2f7fd692ac859e0067 to your computer and use it in GitHub Desktop.
π¦ Install Maven Mac OSX
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
# Download the Maven binary tar.gz file from the Maven website - for this gist I presume to downloads | |
# Add Maven to the Evnironment Path | |
# Fix permissions | |
cd /Users/<home_dir> | |
sudo chown -R root:wheel Downloads/apache-maven* | |
sudo mv Downloads/apache-maven* /opt/apache-maven | |
# Add Maven binaries to path and append - I do this for both zsh and bash for consistency | |
vi ~/.zshrc | |
# add the following | |
export PATH=$PATH:/opt/apache-maven/bin | |
vi $HOME/.profile | |
# add the following | |
export PATH=$PATH:/opt/apache-maven/bin | |
# Check installation | |
mvn -version | |
# Check installation on bash | |
bash | |
mvn -version |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment