Because the original HTTP://M2ECLIPSE.SONATYPE.ORG/SITES/M2E address is invalid or the Eclipse IDE online installation speed is used
The degree is too slow, so unbearable, finally found an offline installation method, I have been validated, successfully integrated MAVEN. But the original
Too short, so I write a detailed, but also for the convenience of themselves. (I use the Eclipse INDIGO,WINDOW7 environment)
1. Download maven
Apache Official download address is http://maven.apache.org/download.html, select Apache-maven-3.0.5-bin
(The version I use).
2. Install Maven
Extract maven to the directory to be installed, the author is using D:\java. Before installing, make sure you have installed the JDK, the author is
Add an environment variable m2_home to the system, and the value of the variable is the MAVEN installation path, as the author's
D:\java\apache-maven-3.0 is the author's maven installation path. Check to see if the installation and configuration succeeded
Installs the MAVEN local library. Local library file storage can be set up via Setting.xml under the Conf folder under the MAVEN installation path
Position. If you add <localrepository>d:/java/mlib</localrepository> to the inside, then the local library file
Put it under the D:/java/mlib folder. The author uses the default folder C:\users\xxx\.m2,xxx represents the local user name
In the DOS interface, run the MVN help:system command, which downloads the local library file. Appears as follows to indicate success
4. Download maven plugin
The author uses the plugin that others upload, download address: http://download.csdn.net/detail/defonds/4487410.
5. Integrated Plug-in
Create a new folder links and Plugins_dir under the Eclipse installation path (author is D:\java\eclipse\eclipse-JavaEE)
。 Extract the Maven plugin and copy the m2e-0.12.0.20101115-1102 folder and contents inside to the Plugins_dir folder
In Create a M2e-0.12.0.20101115-1102.link under the Links folder with the same file name as the Maven plug-in. (Different
No, no, not at all. Add content to the M2e-0.12.0.20101115-1102.link file as follows
Path = plugins_dir/m2e-0.12.0.20101115-1102
6. Restart Eclipse
Under Window->preference, a MAVEN entry appears in the left menu, indicating that the installation was successful
7.Eclipse maven Configuration
Eclipse->window->preferences->maven->installations->add, configure the Maven that you installed
Click the user Settings under Maven, which points to the settings.xml file in the Conf folder of your installed maven.
The local library of Maven pointed above. The author's default path, so as follows, has not changed. If I pass in the Setttings.xml
File to specify its own local library path through the localrepository element, instead of the
Through the above process, complete the integration of the MAVEN plug-in