Pages

Tuesday, March 11, 2014

How to install maven on Windows




  • For installing maven we don`t have to run any exe(executable) file.All we need is to download the zip file , unzip and edit the PATH in environment variables.
  • Before you start the installation make sure java is installed in the system and JAVA_HOME system variable is set in System variables as below.

  • Download the zip file from Official Maven website.Depending on whether your system is 32 bit or  64bit you can download the zip file.for Ex:(apache-maven-3.2.1-bin.zip ).I have unzipped at c:\apache-maven-3.0.5 and set the system variable  as  shown  in the screen shot below.


  • Also edit  the system variable Path/PATH  so that it has your maven location as the below screenshot so that you can execute maven from any directory.







  • Test the installed maven by issuing the command mvn -version.The output should be as follows.That means Maven has been successfully  installed on your computer.



While testing sometimes you may encounter error :Unable to install Maven: “JAVA_HOME is set to an invalid directory.To solve this,you can go to following link .





No comments:

Post a Comment