top of page

Installation Of Maven On Windows

​

​

Steps To Install Maven On Windows

​

Download and install Java,if it is not installed on your system.

To check the java version installed on your system,run command 'java --version' in command prompt.

​

Setup Environment Variable for Java

In PC, search for System Environment and click on it.

Under Advanced Setting of System Properties go to the Environment Variables .

 

​

​

​

​

​

​

​

​

​

​

​

​

​

​

​

​

​

​

​

Now in System Variable click on New ,it pops a box in which provide variable name as 'JAVA_HOME' and in variable value pass the JDK path from directory and save the changes.

Now JAVA_HOME variable would be displayed in System Variable.

​

​

​

​

​

​

​

​

​

​

​

​

​

​

Edit the 'path'  variable and create a new path as '%JAVA_HOME%\bin'  then save the changes by clicking OK .

The path has been set.

​

​

​

​

​

​

​

​

​

​

​

​

​

​

​

​

​

Download and Setup Maven Environment Variable

Download maven zip file for windows from here.

Extract the zip file at some location.I have extracted it to 'C:\Users\softwares\maven\apache-maven-3.8.4' .

​

Setup Environment variable for Maven :

Setup the Maven Environment Variable the same way we setup Java Environment Variable above.

Pass the variable name as 'Maven_HOME' and enter the maven directory in its value then click OK.

​

​

​

​

​

​

​

​

​

Edit the 'path'  variable and create a new path as '%Maven_HOME%\bin then save the changes by clicking OK.

​

​

​

​

​

​

​

​

​

​

​

​

​

​

​

​

Maven has been setup successfully.

​

To Test If The Installation Has Been Done Properly :

Run command 'mvn --version' in command prompt.

​

​

​

​

Refer next page POM & Dependencies In Maven

systemproperties.png
environmentvariable.png
jdkpathpng.png
pathvariable.png
jdkbinpng.png
mavenhome.png
mavenbin.png
Setup Java
Setup Maven
bottom of page