Categories
AI & Tech

How to install MAVEN on your system?

The following article will help you understand the use and step by step installation guide (Maven in 5 minutes)

To set-up MAVEN 3.3.9 on Windows 7 64-bit machine, you could follow the below steps. This should be a piece of cake, if you are doing it all right in the first go itself. To install you would firstly require the MAVEN’s zip file from here, the official MAVEN downloads page

https://maven.apache.org/download.cgi )

  • Once you are able to download MAVEN successfully, you need to set-up the following variables
    • JAVA_HOME
    • M2_HOME
    • MAVEN_HOME
  • To do that, right-click on My Computer –> Properties –> Advanced System Properties –> Environment Variables –> System Variables
  • Click New and then click on Add
  • Considering that you would’ve already set-up your JAVA_HOME environment variable, go ahead and set the following variables:

JAVA_HOME=”YOUR JAVA HOME PATH”

  • M2_HOME and MAVEN_HOME=”YOUR MAVEN HOME PATH”

This should be the folder location where you would’ve unzipped the Maven from the downloaded zip file

The official documentation refers to M2_HOME, but there are programs that refer to MAVEN from MAVEN_HOME environment variable. So to be on a safer side, it is recommended to set these two variables with the same path.

Edit the Path environment Variable and add %M2_HOME%\bin; at the end of the existing path

  • Apply and Close the System Properties
  • Open a new command prompt and type
    • mvn –version

Following will be the message to confirm that MAVEN is successfully installed on your local system:

Exit mobile version