--Dependency Relationship:
JDK, assuming JDK1.7 and installed under directory D:\Java\jdk1.7.0_75, and the java_home:d:\java\jdk1.7.0_75 value is configured in the environment variable; path+=%java_home%\bin value
--Installation:
1. Download Maven3 bin file: Http://www.apache.org/dyn/closer.cgi/maven/binaries/apache-maven-3.0-bin.zip
2, after pressure placed in the specified directory (can be defined by the user), assuming that C:\Program Files (Green) \apache-maven-3.2.5 under
3. Configure Environment variables:
M2_home=c:\program Files (Green) \apache-maven-3.2.5
M2=%m2_home%\bin
path+=%m2%
4. After restarting the computer, execute the mvn in cmd;
5, if can carry out the installation success;
--Configuration:
1. Using local repository
Default local repository in C:\Users\username\.m2\repository, you can modify C:\Program Files (Green) \apache-maven-3.2.5\conf\ The localrepository parameter in the settings.xml file, such as <localRepository>d:\</localRepository>.
2. Using Remote repository
When using remote repository as follows, edit the Localrepository parameter in the C:\Program files (Green) \apache-maven-3.2.5\conf\settings.xml file,
<localRepository>\\192.168.1.111\Users\username\.m2\repository</localRepository>
--run:
Go to the command line and execute the following command on the path where the project Pom.xml
1. Using the locally configured repository
MVN clean Install
2, the use of temporary repository
mvn Clean install-dmaven.repo.local=\\192.168.1.111\users\username\.m2\repositorymvn Clean Install-dmaven.repo.local=d:\.m2\repository
WIN7 MAVEN3 Environment Construction and use instructions