Project

General

Profile

Actions

Install Maven

For Windows only

  1. download the Maven 2 from:
     http://maven.apache.org/download.html 
  2. unzip the file to a folder of your choice
  3. open the system properties (WinKey + Pause), select the "Advanced" tab, and the "Environment Variables" button, add the value:
     
    Variable name: M2_HOME
    Variable value: <<location of the extracted file>>
    
  4. in the same dialog, edit the environment variable, Path and prepend the M2_HOME\bin:
    • e.g.
      Variable name: Path
      Variable value: ..\bin;%M2_HOME%\bin
      
  5. open command prompt and execute the following command to verify if the maven is installed properly:
    mvn -version

Updated by chin-yeh over 13 years ago · 2 revisions