Pages

Sunday, November 12, 2017

Apache Maven installation in Window 7

Apache maven is a package manager and building tools for Java. In this tutorial, we are going to install maven in window 7. 

Tested With:
Apache maven 3.5.2
JDK 1.7
Windows 7

Note: You need to have JAVA_HOME environment setting to run maven.

If you have windows 10 and JDK 1.8,  you don’t need to anything extra, just follow the steps of configurations below as we are going to do with Windows 7 and JDK 1.7




1. Download Apache Maven:

First download Apache Maven from this link   https://maven.apache.org/download.cgi


Unzip the file and save at any drive. I saved in C:

C:\
apache-maven-3.5.2-bin







2. Set System Environment Variable:

Now go to search window and type advance system settings



Now click on environment variables


Add two new System variables – M2_HOME & MAVEN_HOME

Set value C:\ apache-maven-3.5.2-bin for the both.



3. Configure path variable:


Now click on the path inside System variable and click edit.
Append %M2_HOME%\bin at the end.


Now press OK.
Close the remaining windows by pressing OK.

4. Testing

Now go to command prompt and type mvn –version. If everything is OK, then you can see the following result.




No comments:

Post a Comment