Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you get git integration working with m2eclipse?

Tags:

git

m2eclipse

I'm trying out m2eclipse, and I see it has some functionality to checkout a maven project directly from SCM. According to this page, it supports a whole bunch of different SCM tools including git. However, when I get to that "Checkout as Maven project from SCM" dialog, the drop-down that lets you choose the type of repository is devoid of choices. There must be some additional component or something I haven't installed. As a shot in the dark, I tried installing EGit, but that didn't do it. Help?

like image 217
Brian Gruber Avatar asked Dec 27 '10 21:12

Brian Gruber


1 Answers

As of Eclipse Indigo, there is a link at the bottom of the "Checkout as Maven project from SCM" dialog to "Find more SCM connectors in the M2E Marketplace." So the steps are now:

  1. File->New->Project...
  2. Choose "Maven/Checkout Maven Projects from SCM" from the list. This type of project should be available if you installed the Eclipse for Java Developers package.
  3. On the bottom right of the dialog that pops up, click "M2E Marketplace." Checkout as Maven project from SCM dialog
  4. Search the m2e marketplace for "egit". Note that searching for "git" doesn't work.
  5. Go through the installation steps, which involve restarting eclipse.
  6. Do steps 1 and 2 again. Now you should be able to choose "git" in the checkout dialog.
  7. Profit.
like image 116
Brian Gruber Avatar answered Oct 14 '22 04:10

Brian Gruber