Saturday, December 15, 2012

Install maven in windows 7


Install maven in windows 7.

Actually Apache Maven is not need to install on windows.It can be downloaded as a .zip file and extract it as a local directory and configure it to windows.

  • To this task java development kit(JDK) should be installed in your windows PC.First check JDK is installed and JAVA_HOME variable is set in the windows environmental variables.



          Right-click on my computer and select properties.
         Then select Advance system settings.
              After that select  Environmental variables button from System properties window.

              Then make sure your JAVA_HOME variable set to the JDK folder.If not set it to the JDK folder.


  • Then download Apache Maven and extract it.

                    Download Apache Maven from the http://maven.apache.org/download.html. Select a version and click on it. Then Extract it to some where in your PC. I have renamed the folder as maven.


  • Add MAVEN_HOME 

    Add MAVEN_HOME to the environmental variables,set it to your maven root folder. 



  • Update PATH

   update your PATH variable in the environmental variables with maven bin folder. After this you can use maven command any where in your file system. 

then click OK on all the widows and you are done...:-)


  • Check

    To check you install maven successfully type mvn -version on your command line.
If you see this kind of message congratulation you have successfully installed maven... :-)

1 comment: