Error while installing Maven Integration for Eclipse

我只是一个虾纸丫 提交于 2019-11-27 17:20:11

问题


I'm trying to install Maven integration for Eclipse (Galileo) through Install New Software menu nad using the sonatype link

http://m2eclipse.sonatype.org/sites/m2e

And getting following error:

Cannot complete the install because one or more required items could not be found.
Software being installed: Maven Integration for Eclipse (Required) 0.12.0.20101115-1102 (org.maven.ide.eclipse.feature.feature.group 0.12.0.20101115-1102)
Missing requirement: Maven Integration for Eclipse (Required) 0.12.0.20101115-1102
(org.maven.ide.eclipse.feature.feature.group 0.12.0.20101115-1102) requires 'org.eclipse.emf.ecore.edit 0.0.0' but it could not be found

Tried to search for the missing bundle. But no success. :(

Any help?


回答1:


In your install manager, check "Contact all updates sites..." and try again. Since EMF comes from a different update site than M2Eclipse, M2Eclipse cannot be installed without the ability to check all update sites for required components.


UPDATE!

Since Eclipse 3.7 (Indigo), m2e is now hosted at eclipse.org. To install it, you just need to use the default Eclipse update site:

  • http://download.eclipse.org/releases/kepler
  • http://download.eclipse.org/releases/juno
  • http://download.eclipse.org/releases/indigo
  • etc.



回答2:


Are you using Eclipse CDT? If so, you need to make sure you have the Java Development Tools installed as well. Assuming you're using Helios, use http://download.eclipse.org/releases/helios/ as an update site and install the JDT tools from the list of features under "Programming Languages". I had the same problem and that solved it for me.




回答3:


Since Eclipse 3.7 (Indigo), m2e is now hosted at eclipse.org. To install it, you just need to use the default Eclipse update site:

http://download.eclipse.org/releases/kepler
http://download.eclipse.org/releases/juno
http://download.eclipse.org/releases/indigo
etc.

Hence, for getting maven in eclipse indigo please refer the answer highlighted in yellow color alongwith screenshot at below link

eclipse indigo marketplace Maven Integration install error




回答4:


I have the same issue (btw, "contact all update sites" is default). I found this bugreport in eclipse bugzilla which kind of indicates that we are having an issue in the plugin itself.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=330896

A workaround for me is to fall back to older versions of m2eclipse / m2eclipse extras / subversive integration. I used the following URLs:

  • http://m2eclipse.sonatype.org/sites/archives/m2e-0.10.2.20100623-1649/
  • http://m2eclipse.sonatype.org/sites/archives/m2e-extras-20101029/
  • http://community.polarion.com/projects/subversive/download/integrations/helios-site/



回答5:


the majority of eclipse does not suport maven 3.5 iven 1.8. to install maven you must go to halp--install new software Name:M2Eclipse location: http://download.eclipse.org/technology/m2e/releases/1.4

for helios: http://download.eclipse.org/technology/m2e/releases/1.3




回答6:


In order to install the new m2e (1.4) on helios, i had to uninstall all maven elements in eclipse and then, i could install m2e from http://download.eclipse.org/technology/m2e/releases".

Steps to uninstall existing maven elements ( from org.maven.ide.*) :

  1. Click in Help in eclipse
  2. Install New Software...
  3. Click on What is already installed
  4. Select all item from org.maven.ide.* (even if it's Required)
  5. uninstall them all



回答7:


Another way of installing the Maven plug-in for Eclipse:

  • Open Eclipse
  • Go to Help -> Eclipse Marketplace
  • Search by Maven
  • Click "Install" button at "Maven Integration for Eclipse" section
  • Follow the instruction step by step
  • After successful installation do the followings in Eclipse:
    • Go to Window -> Preferences
    • Observe, Maven is enlisted at left panel
    • Click on an existing project
    • Select Configure -> Convert to Maven Project



回答8:


Make sure that you checkmark contact all update sites during install to find request software before click to next of the installation of Maven Integration for Eclipse & m2e-slf4j over logback logging (Optional).

i was facing same problem, right now it has solve by doing the above. Hope this will helpful.



来源:https://stackoverflow.com/questions/4297533/error-while-installing-maven-integration-for-eclipse

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!