1. Download And install Java Development Kit

 

2  Set Environment Variable JAVA_HOME

open   Control Panel\All Control Panel Items\System  and select Advance System Settings
click on Environment variables

 

 

3. Download Apache Maven

  Visit Maven official website  
 http://maven.apache.org/ 
 download the Maven zip file
 example :     apache-maven-3.3.9-bin.zip.

 

4. Unzip it to the folder you want to install Maven  

e.g:        C:\Program Files\maven

 

5.  Add M2_HOME  Environment variable

open         Control Panel\All Control Panel Items\System  and select Advance System Settings
click on Environment variables 


6. Update PATH variable, append Maven bin folder – %M2_HOME%\bin,

Update PATH variable, append Maven bin folder – %M2_HOME%\bin,
so that you can run the Maven’s command everywhere.

 

7. Done, to verify it, run mvn –version in the command prompt.

c:\> mvn –version


No comments:

| Designed by Harhiktech