First, the version:
eclipse:3.6
maven:3.0.4, if you don't know how to install maven locally, see my other article: Installing MAVEN under Windows
Talk less, direct steps are good:
1. Open Eclipse, click Help on the menu bar, select installnew softwore, such as:
2. Click Add
3. Add content to the dialog box:
LOCATION:HTTP://M2ECLIPSE.SONATYPE.ORG/SITES/M2E This is maven 's installation address.
Because my eclipse has maven installed , it will prompt for duplicate addresses. Let's not bother. If you don't have maven, you won't get this hint, then click OK
4. The following will start downloading on the website: after downloading, the contents of the red box will be selected.
5. To this step, just click Next
6. Select Accept License and select Finish
7. Restart Eclipse.
8. See If MAVEN is installed successfully: Click window-preferences, and you will find a more maven option. Click the plus sign to expand the maven tree.
9. Configure the appropriate node for the MAVEN plugin
Installations: This node uses the built-in MAVEN by default, we need to use our installed maven, point "Add", add a maven that we externally install, note that after adding it, tick on , and finally select Apply.
User Settings: The default is the . m2/settings.xml file in the C-drive user directory , where you configure the externally installed maven-used configuration file, as I am using the maven directory (which can be Maven installation directory, or not) under the conf/settings.xml file, select Do not forget to click on the "updatesettings" button below.
With the above steps, theeclipse configuration maven plugin is complete.
You can then import the MAVEN project.
Eclipse Online integration Maven M2eclipse plugin