Friday, April 10, 2015

Installation of Maven on Windows

Steps to Install Maven on Windows:
************************************

Step.1: Install and Run Java (JDK+JRE) on Your Windows System
Step.2: Download Maven from the below location:
              http://maven.apache.org/download.cgi


Step.3: Extract the Zip folder to C directory (not mandatory) in the System:


Step.4: Check the files under the extracted folder:


Step.5: Setting up the Path for Maven in Environment Variable:
--> Desktop
--> My Computer (Perform Right Click on My Computer)
--> Click on "Advanced  System Setting"
--> Click on "Environment Variables"
--> Click on "New" button under "System Variable"
        Variable Name= M2
        Variable Value = C:\apache-maven-3.0.5\bin
--> Click on "OK" button

Now we can see "M2" varibale is visible under System Varibale:


Similarly Add "M2_HOME" variable in the same "System Variable":
Variable Name= M2_HOME
Variable Value = C:\apache-maven-3.0.5


Note: We added two new variables "M2" and "M2_HOME" under "System Variable"
-Now Edit "Path" variable under "System Variable" in order to add path for maven directory:
-Add %M2_HOME%\bin under "Path" vaiable and click on "OK" to save the changes :

Note: Save all changes by clicking on "OK" button and come back to Desktop
Note: Re-Start the System (In my system , just a F5 (Refresh) worked)

Step.6: Open a new cmd prompt :
Type "mvn -version" as shown below


Result: The result shows maven is installed on Windows7 successfully :)




Thanks Much,
** Bin **      

2 comments:

  1. Thank you bin for taking time and posting here. :)

    ReplyDelete
  2. @Saleem: Thank You Much for the Kind Words. All the best for your Career!

    ReplyDelete