如何使用命令行从 CVS 检出 Eclipse 项目

发布于 2024-08-27 18:13:37 字数 1046 浏览 7 评论 0 原文

我正在尝试从 Eclipse 查看 Mylyn 项目。但是,我无法使用 Eclipse 来检查项目,而必须通过命令行来完成。我位于防火墙后面,因此我的尝试基于 http://wiki.eclipse.org/CVS_Howto# CVS_and_firewalls

我对CVS不是很熟悉。

当我运行 CVS 命令时,它无法连接:

cvs -td :pserver:[email protected]:443/cvsroot/tools checkout mylyn
  -> main: Session ID is w4PO5KiMwQmaD6uu
  -> main loop with CVSROOT=/cvsroot/tools
  -> safe_location( where=(null) )
  -> open_connection_to_server (:pserver:[email protected]:443/cvsroot/tools)
  -> Connecting to proxy.eclipse.org(206.191.52.48):443.
cvs [checkout aborted]: unrecognized auth response from proxy.eclipse.org: SSH-1.99-OpenSSH_4.2

任何人都可以告诉我我做错了什么吗?

I'm trying to check out the Mylyn project from Eclipse. However, I can't use Eclipse to check out the projects and am having to do it via the command line. I'm behind a firewall so am basing my attempt on http://wiki.eclipse.org/CVS_Howto#CVS_and_firewalls.

I'm not very familiar with CVS.

When I run my CVS command, it fails to connect:

cvs -td :pserver:[email protected]:443/cvsroot/tools checkout mylyn
  -> main: Session ID is w4PO5KiMwQmaD6uu
  -> main loop with CVSROOT=/cvsroot/tools
  -> safe_location( where=(null) )
  -> open_connection_to_server (:pserver:[email protected]:443/cvsroot/tools)
  -> Connecting to proxy.eclipse.org(206.191.52.48):443.
cvs [checkout aborted]: unrecognized auth response from proxy.eclipse.org: SSH-1.99-OpenSSH_4.2

Can anyone tell me what I'm doing wrong?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

最单纯的乌龟 2024-09-03 18:13:37

获取 Mylyn 实际上很棘手:

  1. Mylyn 有很多模块和子模块:请参阅 此处查看完整列表
  2. 在此线程中提到proxy.eclipse.org:80应该可以工作(不是dev .eclipse.org),
  3. 但是当您查看 时,“mylyn”不存在主要 CVS/SVN eclipse 存储库

获取代码的唯一官方方法是通过 Eclipse,加载 PSF (项目集文件)

请参阅 Mylyn 贡献者页面

结帐

Mylyn CVS 存储库包含以下分支。
每个都可以通过在本地保存链接的 .psf 文件进行检查,然后使用 File ->导入->团队项目集
使用用户名“anonymous”和空密码。
如果您只对 Mylyn 的部分内容感兴趣,则可以在导入后删除其他项目。
签出后,Mylyn 项目应该不会出现任何错误或警告。

注意:这些项目集指定匿名 pserver 访问

直接链接:

现在,手动签出这些项目的唯一方法是通过 错误 265847

给定一个 .psf 文件(项目集文件),定义要从 cvs/svn 签出到工作区的项目,生成一个 ant 脚本,以便可以编写签出过程的脚本。

您可以尝试此脚本并生成适当的 ant 构建脚本来签出所有适当的 Mylyn CVS 存储库。


话虽如此,剩下的就是防火墙的问题。
最好的方法是使用端口 80

cvs -td :pserver:[email protected]:80/cvsroot/tools checkout mylyn

,但由于“mylyn”可能不是有效的 CVS 存储库节点,我建议使用 实际存在的,用于验证在防火墙后面访问和导入 CVS 存储库内容的可能性。

如果您的防火墙需要身份验证,这意味着 CVS 将必须使用某种 URI 身份验证方案,可能使用 被动模式

被动模式类似,也是使用两个 TCP 连接来实现四个单向通道。
但是,在被动模式下,客户端连接到服务器以创建第二个 TCP 连接。
当客户端位于允许出站连接但拒绝大多数传入连接的防火墙后面时,被动模式会很有用。
要选择被动模式,请使用选项“-P -”。
被动模式无法通过 SOCKS 代理服务器使用。

Getting Mylyn is actually tricky:

  1. there are a lot of Mylyn modules and sub-modules: see here for the full list
  2. as mentioned in this thread, proxy.eclipse.org:80 should work (not dev.eclipse.org)
  3. but 'mylyn' does not exist when you look at the main CVS/SVN eclipse repos

The only official way to get the code is through Eclipse, loading a PSF (Project Set File)

See Mylyn contributor page:

Checkout

The Mylyn CVS repository contains the following branches.
Each can be checked via saving the linked .psf file locally, and then using File -> Import -> Team Project Set.
Use username "anonymous" and an empty password.
If you are only interested in parts of Mylyn, the additional projects can be deleted after the import.
After the checkout you should have no errors or warnings from the Mylyn projects.

Note: these project sets specify anonymous pserver access

Direct links:

Now, the only way to manually checkout those projects is through bug 265847:

Given a .psf file (project set file) defining projects to check out from cvs/svn into the workspace, generate an ant script so that the checkout process can be scripted.

You can try this script and generate the appropriate ant build script to checkout all the appropriate Mylyn CVS repos.


All that being said, that leaves the issue of the firewall.
The best best is to use port 80

cvs -td :pserver:[email protected]:80/cvsroot/tools checkout mylyn

but since 'mylyn' might not be a valid CVS repo node, I would recommend using one that actually exists to validate the possibility to access and import a CVS repo content behind your firewall.

If your firewall need authentication, that means CVS will have to use some kind of URI authentication scheme, potentially using Passive Mode

Passive mode is similar in that it also uses two TCP connections to implement the four unidirectional channels.
However, in passive mode the client connects to the server to create the second TCP connection.
Passive mode can be useful when the client is behind a firewall that allows outbound connections, but denies most incoming connections.
To select passive mode, use the option '-P -'.
Passive mode cannot be used through a SOCKS proxy server.

标点 2024-09-03 18:13:37

这对我在公司防火墙后面有效:

cvs "-d:pserver;proxy=myproxy.company.com;proxyport=99999:[电子邮件受保护]:/cvsroot/tools" co org.eclipse.mylyn

This works for me behind my company firewall:

cvs "-d:pserver;proxy=myproxy.company.com;proxyport=99999:[email protected]:/cvsroot/tools" co org.eclipse.mylyn

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文