Installation of the M2eclipse plugin in eclipse
Help>install New Software
Click ADD
Name:m2e
Location:http://download.eclipse.org/technology/m2e/releases
Click OK
It seems that the plug-in have already been installed in this version of Eclipse. If not, just click Next until the last and restart Eclipse.
Configuration:
1. Installing the Maven-bound installation directory
Window>preferences
Click Add and add the installation home of Maven
Click Finish Choose the item
Click Apply and OK
2. Setting up a custom local warehouse
Open settings.xml
Modify the default local warehouse location
< localrepository > F:/m3/repository</localrepository>
Modify the default central warehouse image
<Mirrors> <!--Mirror | Specifies a repository mirror site to use instead of a given repository. The Repository that | This mirror serves have an ID, that matches, the mirrorof element of this mirror. IDs is used | For inheritance and direct lookup purposes, and must is unique across the set of mirrors. | <mirror> <id>mirrorId</id> <mirrorOf>repositoryId</mirrorOf> <name>huma N Readable Name for this mirror.</name> <url>http://my.repository.com/repo/path</url> </mirro R> - <Mirror> <ID>Ibiblio</ID> <mirrorof>Central</mirrorof> <name>Human readable Name for this Mirror.</name> <URL>http://mirrors.ibiblio.org/maven2/</URL> </Mirror> </Mirrors>
Save the changes, and also need to copy this settings.xml file to the "f:/m3" directory
Window>preferences
Create a new MAVEN project
Choose Maven-archetype-webapp
If this step is wrong, please refer to http://jingyan.baidu.com/article/63acb44ad96e4b61fcc17ecf.html
Group Id: Basic Package Name
Artifact Id: Project name
Click Finish
Build a Maven project with eclipse