top of page

Maven Tutorial

Installation Of Maven On Windows

How To Install 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.
So, download .zip file for JDK from https://www.oracle.com/java/technologies/downloads/#jdk18-windows and extract the .zip file at your preferred location.


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 to the 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 in 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
bottom of page