First, download the MAVEN plugin and configure the MAVEN environment variables, refer to: http://jingyan.baidu.com/article/cb5d61050b8ee7005d2fe04e.html
Second, open eclipse->windows-->preferences--maven-->installations-->add---->directory Choose the location of your extracted Maven Finish--applay.
Third, a local folder to store the jar package resources;
Iv. find the Settings.xml file for the Maven plugin that you downloaded, and make a copy of the root node of the MAVEN download directory to modify it, because team collaboration is the key to maintaining a consistent definition relative to the team setup .
so conf the following settings.xml as a common configuration file for the team. Unified configuration to ensure that all team members have the same configuration. modify the copied file as a custom; Locate the <localrepository node to configure the path of the folder you have built to the text node, and note to change "\" to "/," My configuration is as follows:
<!--localrepository | The path to the local repository maven would use to store artifacts. Default: ${user.home}/.m2/repository <localRepository>/path/to/local/repo</localRepository> - <localRepository>D:/apache-maven-3.5.0/Maven_repository</localRepository>
Five, open Eclipse->windows-->preferences--maven-->user settings, such as, select the above modified Settings.xml file, apply can
end!
Configuration of the eclipse associated maven local warehouse