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| ThisMirror serves has a ID that matches the mirrorof element of ThisMirror. IDs is used| forinheritance and direct lookup purposes, and must be unique across the set of mirrors. | <mirror> <id>mirrorId</id> <mirrorOf>repositoryId</mirrorOf> <name>huma N Readable Name for ThisMirror.</name> <url>http://my.repository.com/repo/path</url></mirror> <mirror> <id>ibiblio</id> <MIRROROF>CENTRAL</MIRROROF&G T <name>human Readable name for ThisMirror.</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
Build a Maven project with eclipse