How to install Maven in Windows machine.

In this article I will show, how to install Maven in windows machine. 

Maven is the tool mainly used to build the project Java projects. You can get more information about maven from

JDK needs to be installed before Maven installed. Also make sure that JAVA_HOME environment variable is pointing to JDK.

Once its done, download Maven from its official site 

download Binary Zip file and extract it on local folder (ex. c:/maven)

Set MAVEN_HOME to installed location (c:/maven in our case) same as we have done for JAVA_HOME

Now double click on PATH variable and add  %MAVEN_HOME%bin at the end. Don’t forget to put semicolon (‘;’) before putting %MAVEN_HOME%bin

For example is PATH is set as D:softSSH then first put semicolon (‘;’) and then put %MAVEN_HOME%bin so that it will be looks like D:softSSH;%MAVEN_HOME%bin

Once this done, just open command prompt and type mvn -version. Maven successfully get installed If you are able to get following things on command prompt.

About the Author: Nilang

Nilang Patel is a technology evangelist who loves to spread knowledge and helping people in all possible ways. He is an author of two technical books - Java 9 Dependency and Spring 5.0 Projects.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.