从git仓库签出一个maven项目(Checking out a maven project from a git repository)

编程入门 行业动态 更新时间:2024-10-15 20:22:19
从git仓库签出一个maven项目(Checking out a maven project from a git repository)

我已经安装了m2eclipse和EGit,我可以从git仓库签出一个项目,并且可以构建一个maven项目,但是我无法从git仓库签出一个maven项目。 问题是,SCM URL字段是空的(除了EGit我也有SVN团队提供者以及...),并且当我粘贴URL时,我只是得到SCM provider is not available在maven控制台中SCM provider is not available 。 我试图寻找这个问题,我发现我必须为git安装m2eclipse SCM集成和SCM处理程序,但是那些不在更新站点上。 有任何想法吗?

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?

最满意答案

Eclipse中的Maven SCM集成曾经很好。 它曾经是你可以进行导入>从SCM中检出Maven项目并放入一个像scm:git:ssh:// git @ git:project.git这样的URL,但是在Helios或新版本的m2eclipse + extras中你可以不再那样了。 它总是会给出原始文章正在讨论的错误。 令人失望的是,你必须在EGit签出,然后添加依赖管理。 这不是一个很好的解决方案,因为它对于家长/孩子POM来说并不顺利。

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.

更多推荐

本文发布于:2023-08-02 07:45:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1373062.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:仓库   项目   maven   git   project

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!