Issue while trying to open a Maven project via Git in Eclipse Luna

I have a maven project in Github and I want to work with that in Eclipse. In eclipse, there is an option for File>New>Other>Maven>Check out Maven Projects from SCM. But the dropdown select option near SCM URL is inactive. On clicking “m2e Marketplace”, I cannot find git in the list. Though I did find egit, so I tried to install it. But I got the below error message.

An error occurred while collecting items to be installed
session context was:(profile=epp.package.jee, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
No repository found containing: osgi.bundle,org.eclipse.egit,
No repository found containing: osgi.bundle,org.eclipse.egit.core,
No repository found containing: osgi.bundle,org.eclipse.egit.doc,
No repository found containing: osgi.bundle,org.eclipse.egit.ui,
No repository found containing: osgi.bundle,org.eclipse.jgit,
No repository found containing: osgi.bundle,org.eclipse.jgit.archive,
No repository found containing: org.eclipse.update.feature,org.eclipse.egit,
No repository found containing: org.eclipse.update.feature,org.eclipse.jgit,

What went wrong? Can I use egit instead of Git? Why did I get the error message? Sorry to diviate, is “m4e” the next generation of “m2e”?

  • maven-release-plugin deploying SNAPSHOT
  • How to list the slowest JUnit tests in a multi-module Maven build
  • Best Practices for Versioning Maven Multimodule Projects in Git
  • spring-core dependency version error with a Jenkins Plugin
  • Sonar analysing Maven 3 and multi language project using JENKINS
  • Android support library setup with maven
  • Maven deploy file error on Jenkins
  • IntelliJ not automatically re-syncing maven between git branches if IntelliJ iml files are not checked in
  • One Solution collect form web for “Issue while trying to open a Maven project via Git in Eclipse Luna”

    Which version of Eclipse did you use ?

    I guess you use Java packaging or Java EE packaging. By default Egit is already present in these two packages.

    If you want to use the option “Check out Maven Projects from SCM”, you need to install m2e connector. You can do this with : Windows > Preferences > Maven > Discovery > Open Catalog. And install m2e-egit. The main problem is that m2e-egit is not always up to date. It can be impossible to install it in your Eclipse.

    Personnally, I don’t use this functionnality. I prefer checkout my sources through Egit and after I import my maven project.

    To checkout sources
    – Open Git perspective
    – Clone your Github repository (see tutorial made by Lars Vogel

    ** To import maven project **
    – Go to File > Import > Existing Maven Project
    – Select the folder where there is your Git repository
    – Follow the wizard

    Your project will be imported in Eclipse.

    Git Baby is a git and github fan, let's start git clone.