- 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
tar zxvf apache-maven-<version>-bin.tar.gz
- Add maven bin directory to the PATH environment variable
export PATH=<maven-location>/bin:$PATH
- Set M2_HOME environment variable
export M2_HOME=<maven-location>
Try the following command from any location to confirm Maven is working properly.
mvn –version
No comments:
Post a Comment