Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Checking out a maven project from a git repository

I have installed m2eclipse and EGit, I can checkout a project from a git repository and I can build a maven project, but I cannot checkout a maven project from the git repository. The problem is, that the SCM URL field is empty (apart from EGit I have SVN team providers as well...) and when I paste the url I just get SCM provider is not available in the maven console. I tried searching for this issue and I found I have to install m2eclipse SCM integration and SCM handler for git, however those aren't on the update sites. Any ideas?

like image 259
Gabriel Ščerbák Avatar asked Feb 27 '11 20:02

Gabriel Ščerbák


2 Answers

Maven SCM integration in Eclipse used to be good. It used to be that you could do Import > Check out Maven projects from SCM and put in a URL like scm:git:ssh://git@git:project.git but in Helios or the new version of m2eclipse + extras you can't do that anymore. It always gives the error that the original post is talking about. Disappointing that you have to check out in EGit and then add dependency management. This isn't a great solution because it isn't smooth with parent / children POMs.

like image 102
mrtidy Avatar answered Sep 19 '22 08:09

mrtidy


Ok, so now it works. First clone the repository with EGit, then create generic project, then add dependency management and everything installs just fine and works.

like image 29
Gabriel Ščerbák Avatar answered Sep 21 '22 08:09

Gabriel Ščerbák