Go to the [*Apache Maven Project download*|http://maven.apache.org/download.html] site. Scroll down until you reach the *Maven 2.2.1* section and select either *Maven 2.2.1 (Binary tar.gz)* or *Maven 2.2.1 (Binary zip)*. Select a Mirror and save the downloaded file on your workstation.
Install and Configure for Windows
Unzip/untar the binaries to a new folder (i.e. c:\maven\2.2.1). Add the path to the Maven bin directory to the system PATH environment variable. For example: add c:\maven\2.2.1\bin to the PATH environment variable.
To download Maven artifacts from the remote MIT maven repository (https://maven.mit.edu), an SSL connection is required. For Maven to acquire an SSL connection, you must create a system environment variable MAVEN_OPTS and set it as below:
In the above, replace the /path/to with the actual path to the serverTrustStore.jks and replace XXXXXXXX with the actual serverTrustStore password.
Verify the Maven installation by opening a CMD window and typying the command line: mvn --version. If everything is correct, something similar to the following should be displayed:
If the Maven installation has been verified in the above step, then initialize Maven by typing the command line: mvn plugin::help. Maven download will start and if everything download's correctly, something similar to the following should be displayed at the end of the download:
indent
2
2
\[INFO] ------------------------------------------------------------------------
\[INFO] BUILD SUCCESSFUL
\[INFO] ------------------------------------------------------------------------
\[INFO] Total time: 58 seconds
\[INFO] Finished at: Thu May 31 10:23:25 EDT 2012
\[INFO] Final Memory: 11M/981M
\[INFO] ------------------------------------------------------------------------