Prerequisites
JDK
Versions used
Maven 3.0.4
JDK 1.6.0_39
Steps
- Download the maven binary zip package from http://maven.apache.org
- Extract the zip file to some folder e.g. C:\. A folder structure like C:\apache-maven-3.0.4 will be created
- Add the environment variable MAVEN_HOME with the value of the maven home directory e.g. C:\apache-maven-3.0.4\
- Add the %MAVEN_HOME%\bin location to the PATH environment variable
- The setup is complete. Open a command prompt window and type the command mvn -version to confirm.
- The local maven repository is located in <USER_HOME_DIR>
\.m2\repository e.g. C:\Users\TOM\.m2\repository - Note that maven requires internet access to download dependencies and may do so from time to time depending on the command and project given. Once a dependency is downloaded once, it is put in the local repository and will not be downloaded again.
No comments:
Post a Comment