eclipse 如何从 svn 存储库检出 Maven 项目

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/11973783/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-10 21:16:23  来源:igfitidea点击:

How to checkout maven project from svn repository

eclipsesvnmavenm2e

提问by Curt

I am new to Maven and Eclipse, I need to check out an existing Maven project from a SVN repository. I have installed the M2E plugin and the subversion plugin and they seem to be working properly. Here are the Installation Details --> enter image description here

我是 Maven 和 Eclipse 的新手,我需要从 SVN 存储库中检出现有的 Maven 项目。我已经安装了 M2E 插件和 subversion 插件,它们似乎工作正常。这是安装细节--> enter image description here

When I right click in the project explorer and select Import -> SVN -> Project from SVN, then select the repository location and click finish, I am prompted with 4 possibilitiesenter image description here

当我在项目资源管理器中右键单击并选择 Import -> SVN -> Project from SVN,然后选择存储库位置并单击 Finish 时,系统会提示我 4 种可能性enter image description here

What is the procedure for checking out a Maven Project from this point on, or am I on the right track here?

从现在开始检查 Maven 项目的程序是什么,或者我在这里是否走在正确的轨道上?

Thanks for your help in advance!

提前感谢您的帮助!

回答by Ashutosh Jindal

tl;dr : Check out thisvideo. The portion between 1:04 and 1:50 should answer your question (To skip to the interesting part, click on the youtube player and press 4).

tl;dr:看看这个视频。1:04 和 1:50 之间的部分应该可以回答您的问题(要跳到有趣的部分,请单击 YouTube 播放器并按4)。

You already have the SVN connector for m2e installed. Thus it should be possible to Import Existing Maven Projectfrom the SVN repository.

您已经安装了 m2e 的 SVN 连接器。因此应该可以Import Existing Maven Project从 SVN 存储库中获取。

From the options you have listed in the above snapshot, you should be able to proceed after selecting the First or the Fourth option i.e. :

从上面快照中列出的选项中,您应该能够在选择第一个或第四个选项后继续,即:

enter image description here

enter image description here

(according to Mauno V's suggestion below) To convert this imported project into a Maven project Right Click on it and do a Configure -> Convert to a Maven Projectlike so :

(根据下面 Mauno V 的建议)要将这个导入的项目转换为 Maven 项目,右键单击它并执行Configure -> Convert to a Maven Project如下操作:

enter image description here

enter image description here

回答by salirajr

If you have Pom project as a root branch, after project checkout completed, you may do it with import project as 'Existing Maven Project' and set the project as root project, and finish!

如果你有Pom项目作为根分支,在项目checkout完成后,你可以将项目导入为'Existing Maven Project'并将项目设置为根项目,完成!

you should be able to see your module define as project in eclipse project explore, and eclipse will recognized as module project.

您应该能够在 eclipse project explore 中看到您的模块定义为项目,并且 eclipse 将被识别为模块项目。

do right-click on Pom project, Maven -> Update Project or Alt+f5 to refresh and see the content project.

右键单击 Pom 项目,Maven -> 更新项目或 Alt+f5 以刷新并查看内容项目。