How To Install Maven In Windows 7 8 10

How To Install Maven In Windows 7 8 10

maven build automation tool for java projects it manages build it manages dependencies and its provide documentation. Maven is a project management tool that is based on POM (project object model). with maven We can build our java project. We can add jars and other dependencies of the project. in this recipe i am going to explain how to install maven in windows 7 8 10 or how to configure maven in windows 7 8 10.

Install java in your windows system

to set up Maven in windows , we should have java in our system. so if you have not installed java yet, install java in your system and configure java path variables in your windows machine. if you have not installed java yet you can refer here how to install java in windows.

Download Maven

Go to official maven website and download maven.  https://maven.apache.org/download.cgi. it will be in zip format.
Here i downloaded maven apache-maven-3.6.0 and extracted in my downloads directory. And the location of my extracted maven is C:\Users\DELL\Downloads\apache-maven-3.6.0. This path is maven home directory path.

install maven in windows

How To Configure Maven In Windows 7 8 10

To configure maven in windows you have to setup two environment variables those are MAVEN_HOME  variable and Path variable.

MAVEN_HOME variable

Right click on computer==>click on properties==>click on advanced system settings==>click on environment variables. Here you can see two types of variables
like user variables for dell and system variables. In system variables click on new enter variable name as MAVEN_HOME and variable value is up to your downloaded maven directory i,e. C:\Users\DELL\Downloads\apache-maven-3.6.0

maven home

Add Maven Bin Path To Path Variable

Right click on computer==>click on properties==>click on advanced system settings==>click on environment variables. Here you can see two types of variables
like user variables for dell and system variables. In system variables you can see Path variable, select Path variable and click on edit

how to install maven in windows 7 10

Here variable name is Path and variable value path of your maven up to bin directory that is C:\Users\DELL\Downloads\apache-maven-3.6.0\bin

How To Add This Path Value

In path values previously you may have different values like java jdk path,git path….
Now we are going to add one more new value to existed Path values.
at end of previous values add like below
;C:\Users\DELL\Downloads\apache-maven-3.6.0\bin
Here this path value is, the path up to your maven bin directory.
when ever you are adding new values to path variable you have start with ; then add your path of your maven up to bin directory. since these path values are separated with colon symbol.

configure maven in windows

in the image i am unable to show entire path you can see in below lines how the path values are added

%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;
%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files\Git\cmd;C:\Program Files\Git\mingw64\bin;C:\Program Files\Git\usr\bin;C:\Users\DELL\Downloads\sonar-scanner-3.3.0.1492-windows\bin;C:\Program Files\Java\jdk-11.0.2\bin;C:\Users\DELL\Downloads\apache-maven-3.6.0\bin

all path values are separated with ; colon symbol.

that’s all we have successfully configured maven in windows
Now lets test it Type mvn -version in command prompt and hit enter. you can see your installed maven version.

PS C:\Users\DELL> mvn -verision
Apache Maven 3.6.0 (97c98ec64a1fdfee7767ce5ffb20918da4f719f3; 2018-10-25T
Maven home: C:\Users\DELL\Downloads\apache-maven-3.6.0\bin\..
Java version: 11.0.2, vendor: Oracle Corporation, runtime: C:\Program Fil
Default locale: en_IN, platform encoding: Cp1252
OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"

 

  • how to install maven in windows 10 8 7
  • install maven windows 7 10 8
  • download maven install windows 8 10 7
  • configure maven windows 7 8 10
  • how to configure maven in windows 10 8 7

Leave a Reply

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