I. Configuring the MAVEN Environment
1. Download the Apache-maven file, select the version you need, address: Apache official is http://maven.apache.org/download.cgi
2. Download and file, I extract to: D:\xxmp\apache-maven-3.2.2
3. Configure MAVEN Environment variables
A. maven_home:d:\xxmp\apache-maven-3.2.2
B.path:%maven_home%\bin;
4. Enter Mvn-v in CMD, if the following information appears, indicating that the configuration was successful.
It shows the Java configuration environment and the MAVEN configuration environment
Two. Modifying the Maven warehouse path
To open the settings.xml in the Conf file in the Maven 3 installation directory of step 2nd, add the localrepository tag under the Settings tab as follows:
<localRepository> d:/xxmp/apache-maven-3.2.2/libtools</localrepository>
Note: The d:/xxmp/apache-maven-3.2.2/libtools here is the absolute path to your local library.
Three. Finally eclipse maven configuration
The latest version of Eclipse has built-in MAVEN support, and we just need to point it to the MAVEN 3 we just installed. Eclipse->window->preferences->maven->installations->add ... Specifies the Maven directory that is installed. The User settings-> then specifies the Maven configuration file settings.xml.
At this point, the Eclipse built-in Maven plugin points to our self-installing MAVEN has been configured, you can right-click the new MAVEN 3 project in the package Explorer view
Excerpt from: http://blog.csdn.net/userrefister/article/details/47701775
Eclipse Java EE IDE for WEB developers integrated maven 3 points to your own installed Maven