Sunday, November 14, 2010

How to install Maven on windows

Go to Start-->Run and type "cmd"
Command prompt window will open, then type "mvn"

If you see " mvn is not recognized as an internal or external command" message, then you need to install Maven.

Download ant binary file from http://maven.apache.org/download.html
unzip the downloaded file and copy into the C:\Program Files..
Copy the bin directory path.
We need to add Maven bin directory path to system environment variables path.

right click on My computer and select properties-->Advanced-->environment variables-->System variable--> select path and click on edit.
Add Maven bin path to as shown in below image.
Click "Ok".
Now, Restart the machine and open command prompt and enter "mvn -version".
You should see similar message as below.

1 comment:

  1. Its Not working.
    i am getting the same message in cmd
    mvn is not recognized as an internal or external command

    ReplyDelete