在 Ubuntu 上为 Eclipse 安装 SVN 插件

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/4581371/
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 19:50:26  来源:igfitidea点击:

Installing SVN plugin for Eclipse on Ubuntu

eclipsesvn

提问by Zac

I am a brand new Linux user configuring my first-ever dev sandbox in Ubuntu. I have installed Java and Eclipse and am trying to get either Subversiveor Subclipse(I don't have a preference either way) but have a few questions before I start that process.

我是一个全新的 Linux 用户,在 Ubuntu 中配置我的第一个开发沙箱。我已经安装了 Java 和 Eclipse,并且正在尝试获得SubversiveSubclipse(我没有任何偏好),但在开始该过程之前有几个问题。

I just opened Synaptic and downloaded subversion through it.

我刚刚打开了 Synaptic 并通过它下载了 subversion。

(1) I'm not really sure how SVN deploys locally. My understanding is that SVN has a client and a server; the server manages the repository(ies) and the clieent just sends commands to the server. Is this correct? If so, then what did I download through Synaptic? The client, and/or the server?

(1) 我不太确定 SVN 如何在本地部署。我的理解是SVN有一个客户端和一个服务器;服务器管理存储库,客户端只向服务器发送命令。这样对吗?如果是这样,那么我通过 Synaptic 下载了什么?客户端和/或服务器?

(2) Do these Eclipse plugins come with SVN (client or server...?) or do you have to pre-install SVN prior to installing these plugins? Basically: is SVN a pre-req for Subclipse or Subversive?

(2) 这些 Eclipse 插件是否带有 SVN(客户端或服务器...?)或者您是否必须在安装这些插件之前预先安装 SVN?基本上:SVN 是 Subclipse 还是 Subversive 的先决条件?

Looking back at these 2 questions if someone could first explain to me the architecture of SVN, then explain how that architecture translates to downloading SVN via Synaptic, and then how it translates to downloading/installing either Eclipse plugin, I would see the "big picture" a lot better.

回顾这两个问题,如果有人可以首先向我解释 SVN 的架构,然后解释该架构如何转化为通过 Synaptic 下载 SVN,然后它如何转化为下载/安装任一 Eclipse 插件,我会看到“大图” “ 好了很多。

Thanks for any and all help!

感谢您的任何帮助!

回答by Gábor Lipták

I use subclipse with svnkit. Both can be installed from update site of subclipse. Works fine. No other sotware needed. You need to set svnkit instead of javahl. This can be done in preferences.

我在 svnkit 中使用 subclipse。两者都可以从 subclipse 的更新站点安装。工作正常。不需要其他软件。您需要设置 svnkit 而不是 javahl。这可以在首选项中完成。

Installation Help/install new software. Update sites depending on the version:

安装帮助/安装新软件。根据版本更新站点:

http://subclipse.tigris.org/update_1.8.x

http://subclipse.tigris.org/update_1.8.x

http://subclipse.tigris.org/update_1.6.xalt text

http://subclipse.tigris.org/update_1.6.x替代文字

Setting window/preferences. (pick svkit at bottom): alt text

设置窗口/首选项。(在底部选择 svkit): 替代文字

回答by Pmt

1o question: You are correct. About Synaptic, I think it's the server one.

1o 问题:你是对的。关于 Synaptic,我认为它是服务器之一。

2o question:No, it isn't! Eclipse's plugin it's the client and you don't need to install the SVN outside the IDE. It's all embedded.

2o 问题:不,不是!Eclipse 的插件是客户端,您不需要在 IDE 之外安装 SVN。都是内嵌的。

More info that could be useful:

更多可能有用的信息:

How to configure SVN in Eclipse using Assembla repository:

如何在 Eclipse 中使用 Assembla 存储库配置 SVN:

  • Create or open your existing project in Eclipse.
  • Be sure that the SVN's plugin it's correctly installed into Eclipse.
  • Copy your project's url at the Assembla's web site.
  • Click with the right button over the project > Team > Share Project > SVN At the showed window, copy the path to your project into the URL field. Remember of /trunk at the end of URL.
  • Inform your user (watch out, it's your user, not your e-mail) and password into the required fields and check the option: Save Authentication, otherwise your login and password will be required all the time.
  • Click over Finish.
  • The commit's screen will open for you add some comment and upload the files of your project. Remember that even being a new project, Eclipse will create all the default folder's structure for the project.
  • Click at Ok and it's done! Your code will be uploaded to the Assembla's online server.
  • Now open the Assemblas's web site, access the trunk folder into your repository and then explore your project's source code. Try the comments and see the automatic format applied over the code so it become more readable.
  • 在 Eclipse 中创建或打开现有项目。
  • 确保 SVN 的插件已正确安装到 Eclipse 中。
  • 在 Assembla 的网站上复制您的项目的 url。
  • 在项目上单击右键 > 团队 > 共享项目 > SVN 在显示的窗口中,将项目的路径复制到 URL 字段中。记住 URL 末尾的 /trunk。
  • 在必填字段中通知您的用户(注意,这是您的用户,而不是您的电子邮件)和密码,然后选中选项:保存身份验证,否则将始终需要您的登录名和密码。
  • 单击完成。
  • 提交的屏幕将为您打开添加一些评论并上传您的项目文件。请记住,即使是一个新项目,Eclipse 也会为该项目创建所有默认文件夹的结构。
  • 单击“确定”即可完成!您的代码将上传到 Assembla 的在线服务器。
  • 现在打开 Assemblas 的网站,将主干文件夹访问到您的存储库,然后浏览您的项目的源代码。尝试注释并查看应用于代码的自动格式,使其更具可读性。

Here it's some advantages of Assembla service:

以下是 Assembla 服务的一些优势:

  • Unlimited useres working in the same project.
  • Easiness of use, create, import projects and use all the service, besides of huge documentation and support.
  • 1 GB of space.
  • Online access to the source code, with the possibility of comment it.
  • Encrypt data traffic.
  • Integration with many tools of the site, which are excellent, but payed separately.
  • Possibility of, at any moment, hire any of the payed services, which offers an incredible amount of benefits for a fair price. (Look at the services list).
  • 在同一个项目中工作的无限用户。
  • 除了大量的文档和支持之外,易于使用、创建、导入项目和使用所有服务。
  • 1 GB 空间。
  • 在线访问源代码,并有可能对其进行评论。
  • 加密数据流量。
  • 与站点的许多工具集成,这些工具非常好,但需要单独付费。
  • 可以随时雇用任何付费服务,以合理的价格提供令人难以置信的好处。(查看服务列表)。

回答by crnlx

You downloaded the SVN server. You can have multiple SVN clients connecting to it.

您下载了 SVN 服务器。您可以有多个 SVN 客户端连接到它。

The Eclipse plugins do not come with SVN. You need to download them.

Eclipse 插件不随 SVN 一起提供。您需要下载它们。

Once you install the plugin, you can connect to SVN repositories. If you want to connect to your own SVN repository, of course you need to install SVN and create it first.

安装插件后,您可以连接到 SVN 存储库。如果你想连接到你自己的SVN仓库,当然你需要先安装SVN并创建它。

However, with just the plugin installed, you can connect to any existing public repositories, or any other SVN repository to which you have access. Example: If you install the plugin, without installing SVN, you can connect to this Apache Repository.

但是,只需安装插件,您就可以连接到任何现有的公共存储库,或您有权访问的任何其他 SVN 存储库。例子:如果你安装了插件,不安装SVN,就可以连接到这个Apache Repository

Hope that answers your questions.

希望能回答你的问题。

回答by SparkAndShine

The easiest way:

最简单的方法:

Help--> Eclipse MarketPlace, search subclipse, click install, and then follow the instructions to finish up the installation process.

Help--> Eclipse MarketPlace,搜索subclipse,点击install,然后按照说明完成安装过程。

回答by Wim Coenen

If so, then what did I download through Synaptic? The client, and/or the server?

如果是这样,那么我通过 Synaptic 下载了什么?客户端和/或服务器?

From the Subversion package descriptionin Ubuntu 10.10:

来自Ubuntu 10.10 中的Subversion 包描述

This package includes the Subversion client (svn), tools to create a Subversion repository (svnadmin) and to make a repository available over a network (svnserve).

该软件包包括 Subversion 客户端 (svn)、用于创建 Subversion 存储库 (svnadmin) 和通过网络提供存储库 (svnserve) 的工具。

So you have both the client software, and the software to create and serve your own repositories.

因此,您既有客户端软件,也有用于创建和服务您自己的存储库的软件。

(2) Do these Eclipse plugins come with SVN (client or server...?)

(2) 这些 Eclipse 插件是否带有 SVN(客户端或服务器......?)

No, you need to install subclipse.

不,您需要安装 subclipse

do you have to pre-install SVN prior to installing these plugins?

在安装这些插件之前,您是否必须预先安装 SVN?

As long as you install it via a package, you don't have to worry about this. The package management in ubuntu will make sure that any dependencies are installed automatically. AFAIK all package management systems of gnu\linux distributions of note have this feature.

只要你通过一个包安装它,你就不必担心这个。ubuntu 中的包管理将确保自动安装任何依赖项。AFAIK 所有 gnu\linux 发行版的包管理系统都有这个功能。

回答by jmort253

One way to clear up your confusion could be to first use a free hosted Subversion repository, such as http://assembla.com.

消除混淆的一种方法可能是首先使用免费托管的 Subversion 存储库,例如http://assembla.com

Then you can download all of the SVN clients, including the Subclipse plugin, and commit a test project to the SVN repository on Assembla.

然后您可以下载所有 SVN 客户端,包括 Subclipse 插件,并将测试项目提交到 Assembla 上的 SVN 存储库。

I recommend Subclipse as it's allegedly supposed to play nicer with other Subversion clients, which means you'll be able to use command line SVN as well as the Team context menu in Eclipse.

我推荐 Subclipse,因为据称它可以更好地与其他 Subversion 客户端配合使用,这意味着您将能够使用命令行 SVN 以及 Eclipse 中的 Team 上下文菜单。

http://subclipse.tigris.org/

http://subclipse.tigris.org/

After playing with this configuration and being sure your client side is correctly configured, then you could look into installing a subversion server locally. Eliminating variables by clearly separating client and server will definitely help you avoid confusion at first.

在使用此配置并确保您的客户端配置正确后,您可以考虑在本地安装一个 subversion 服务器。通过清楚地分离客户端和服务器来消除变量肯定会帮助您避免一开始的混淆。