- You can download the latest Maven distribution from the following link http://maven.apache.org/download.cgi
- Then extract the downloaded tar ball. You can do this by the following command
- Add maven bin directory to the PATH environment variable
- Set M2_HOME environment variable
Try the following command from any location to confirm Maven is working properly.