Install Maven » History » Version 2
chin-yeh, 04/22/2011 11:20 AM
1 | 1 | chin-yeh | h1. Install Maven |
---|---|---|---|
2 | 2 | chin-yeh | |
3 | *For Windows only* |
||
4 | |||
5 | # download the Maven 2 from: |
||
6 | <pre> http://maven.apache.org/download.html </pre> |
||
7 | # unzip the file to a folder of your choice |
||
8 | # open the system properties (WinKey + Pause), select the "Advanced" tab, and the "Environment Variables" button, add the value: |
||
9 | <pre> |
||
10 | Variable name: M2_HOME |
||
11 | Variable value: <<location of the extracted file>> |
||
12 | </pre> |
||
13 | # in the same dialog, edit the environment variable, *Path* and prepend the *M2_HOME\bin*: |
||
14 | ** e.g. |
||
15 | <pre> |
||
16 | Variable name: Path |
||
17 | Variable value: ..\bin;%M2_HOME%\bin |
||
18 | </pre> |
||
19 | # open command prompt and execute the following command to verify if the maven is installed properly: |
||
20 | <pre>mvn -version</pre> |