Skip to content

Instantly share code, notes, and snippets.

@ross-humphrey
Created February 11, 2020 22:38
Show Gist options
  • Save ross-humphrey/bbf676588def6e2f7fd692ac859e0067 to your computer and use it in GitHub Desktop.
Save ross-humphrey/bbf676588def6e2f7fd692ac859e0067 to your computer and use it in GitHub Desktop.
🦜 Install Maven Mac OSX
# 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