Skip to main content

HOW TO INSTALL MAVEN ON YOUR SYSTEM (WINDOWS OPERATING SYSTEM)

In this tutorial, I want to believe you have downloaded maven on your system if not then visit https://maven.apache.org/download.cgi to download maven. Please ensure that JDK have been installed and configured on your system environment variable.

STEP 1:
Extract maven to your program file


STEP 2:

You have to create a system variable for this in your Environment Variable form.
To get to this point, 
  • Right click on "computer" 
  • Click "Properties"
  • Click on "Advanced System settings"
  • Click on "Environment Variables" under "Advanced" category
  • Finally , you are there.
To Create a new system variables. 
  • Click "New..."
  • Enter M2_HOME as variable name
  • Enter the path to maven folder extracted to the program files folder as the variable value
  • Click Ok.
Please do the same for the variable name MAVEN_HOME and M2 as seen in the image above.

STEP 3:
       we have to include these variable names to the variable path 's variable value


Please follow the numbering on the image above.
At number 4: include ;%MAVEN_HOME%\bin;\%M2_HOME%\bin;%M2%.

NOTE THAT SOME APPLICATION LOOK OUT FOR M2 INSTEAD OF M2_HOME WHILE OTHERS VICE VERSA.

FINALLY
 you have have to test if it has been properly installed.
Type "mvn -version" on a command prompt and press enter.
The image below will be displayed.


Please feel free to comment.



Comments

Popular posts from this blog

Life in Color: Brown, Brown Pictures -- National Geographic

Kara Boys, Ethiopia Photograph by Randy Olson, National Geographic In Ethiopia’s Omo Valley, two boys of the Kara tribe stand on the mud-caked shore of the Omo River. Replenished by seasonal floods, the river supports the Kara and other tribal communities that inhabit the valley.