How to Install Maven on Mac OS

 Installing Maven on MacOS

  1. Go to https://maven.apache.org/download.cgi and search for the right version.

  2. Download the tar file using command below


$ wget https://dlcdn.apache.org/maven/maven-3/3.9.0/binaries/apache-maven-3.9.0-bin.tar.gz 


  1. Untar the file and move the folder to Mac OS Java location

$ tar -xvf apache-maven-3.9.0-bin.tar.gz


  1. Set environment variable to be able to use java from any location by adding the following to .bash_profile

$ vi $HOME/.bash_profile


M2_HOME="/Users/xxx/Downloads/apache-maven-3.9.0"

PATH="${M2_HOME}/bin:${PATH}"

export PATH


  1. Restart the shell or source the bash_profile



Comments

Popular posts from this blog

How to mount a WD Book Live as NFS in OEL6U3

ORA-44412: XE edition memory parameter invalid or not specified

Oracle SQL Developer 19.4 font too small