Quantcast

Failing to check out a maven project from github

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Failing to check out a maven project from github

Ian Dickinson-3
I'm currently trying to create a new maven project from a git
repository at github. The git: URL I'm using works fine if I issue a
'git clone' in the shell. But when I try to do New > Other > Maven >
Checkout Maven project from SCM, and select 'git' as the SCM URL and
enter my "git://github.com/..." location, I get an exception:

org.apache.maven.scm.repository.ScmRepositoryException: The scm url is invalid.
at org.apache.maven.scm.provider.git.AbstractGitScmProvider.makeProviderScmRepository(AbstractGitScmProvider.java:89)
at org.apache.maven.scm.manager.AbstractScmManager.makeScmRepository(AbstractScmManager.java:187)
at org.maven.ide.eclipse.scm.MavenScmHandler.checkoutProject(MavenScmHandler.java:89)
at org.maven.ide.eclipse.scm.MavenCheckoutOperation.run(MavenCheckoutOperation.java:90)
at org.maven.ide.eclipse.wizards.MavenProjectCheckoutJob.runInWorkspace(MavenProjectCheckoutJob.java:99)
at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

So far, I've not been able to find a permutation that would allow me
to check out a mavenized project from github, other than via the shell
(which is OK, but I'd like to understand what I'm doing wrong).

Any suggestions?

Thanks,
Ian

PS JDK 1.6.0_20, Eclipse 20100218-1602, m2eclipse
0.10.0.20100209-0800, egit 0.7.1

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Failing to check out a maven project from github

Igor Fedorenko-3
There is currently no integration between m2e and egit and, generally,
m2e git integration is rather outdated (it uses some ancient maven-scm
git provider, afaik). I usually clone from cli and then use "Import
Existing Maven Project" wizard. Clone with egit may also work, but I
have not tried it myself.

--
Regards,
Igor

Ian Dickinson wrote:

> I'm currently trying to create a new maven project from a git
> repository at github. The git: URL I'm using works fine if I issue a
> 'git clone' in the shell. But when I try to do New > Other > Maven >
> Checkout Maven project from SCM, and select 'git' as the SCM URL and
> enter my "git://github.com/..." location, I get an exception:
>
> org.apache.maven.scm.repository.ScmRepositoryException: The scm url is invalid.
> at org.apache.maven.scm.provider.git.AbstractGitScmProvider.makeProviderScmRepository(AbstractGitScmProvider.java:89)
> at org.apache.maven.scm.manager.AbstractScmManager.makeScmRepository(AbstractScmManager.java:187)
> at org.maven.ide.eclipse.scm.MavenScmHandler.checkoutProject(MavenScmHandler.java:89)
> at org.maven.ide.eclipse.scm.MavenCheckoutOperation.run(MavenCheckoutOperation.java:90)
> at org.maven.ide.eclipse.wizards.MavenProjectCheckoutJob.runInWorkspace(MavenProjectCheckoutJob.java:99)
> at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>
> So far, I've not been able to find a permutation that would allow me
> to check out a mavenized project from github, other than via the shell
> (which is OK, but I'd like to understand what I'm doing wrong).
>
> Any suggestions?
>
> Thanks,
> Ian
>
> PS JDK 1.6.0_20, Eclipse 20100218-1602, m2eclipse
> 0.10.0.20100209-0800, egit 0.7.1
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>     http://xircles.codehaus.org/manage_email
>
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Loading...