Install the m2eclipse plug-in:
Help --> Install New Software...
Click the Add button and enter:
m2e
http://m2eclipse.sonatype.org/sites/m2e
and then continue to the next step to complete the download and install
m2eclipse also provides a set of additional components , mainly to facilitate integration with other tools and Subversion,
the installation address of these components is:
http://m2eclipse.sonatype.org/sites/m2e-extras
Installation verification:
restart eclipse, Help --> About Eclipse --> Installation Details
In the Installed Software tab, check whether the module you just selected is in this list.
Check whether eclipse already supports the creation of Maven projects:
File --> New --> Other , find the Maven item, if everything is normal, it means that m2eclipse is correct installed.
Reminder 1:
Eclipse will report the following error
Eclipse is running in a JRE , but a JDK is required Some Maven plugings may not work when importing projects or updating source folders
to solve:
This is because Eclipse runs on JRE by default, and some functions of m2eclipse require the use of JDK. The solution is to configure the eclipse.ini file and add the vm configuration to point to the JDK Java
code
. 3.-vm 4.D:\jdk1.6.0_26\bin\javaw.exe 5.-vmargs 6.-Dosgi.requiredJavaVersion=1.5 7.-Xms128m 8.-Xmx256m Reminder 2: Eclipse will report the following error Unable to update index for central| http://repo1.maven.org/maven2 solution: Window (window)-->Preferences (preference)-->Myeclipse Enterprise Workbench-->Maven4Myeclipseà Maven-->
Remove the tick in front of the "Offline" and "Download Artifact Sources" checkboxes in the right window --> click the OK button --> restart MyEclipse 7.5. Unable to update index for central http://repo1.maven.org/maven2 and the annoying progress bar no longer appear in the progress window after startup.
Maven--install m2eclipse plugin
Guess you like
Origin http://43.154.161.224:23101/article/api/json?id=326358842&siteId=291194637
Ranking