如何配置代理设置以便 Eclipse 可以下载新插件? [英] How do I configure the proxy settings so that Eclipse can download new plugins?

查看:27
本文介绍了如何配置代理设置以便 Eclipse 可以下载新插件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 Eclipse 3.7,在 Web 代理后面的 Windows XP 环境中.

I am working with Eclipse 3.7, on an Windows XP environment behind a web proxy.

我想在一个新解压的上安装Groovy插件Eclipse Indigo(Eclipse Java EE Indigo M4).我将更新站点添加到了可用软件网站列表.

I want to install the Groovy plugin on a newly unzipped Eclipse Indigo (Eclipse Java EE Indigo M4). I added the update site to the Available Software Site list.

但是Eclipse无法检索到这个插件的信息,因此无法安装...

But Eclipse is not able to retrieve the information of this plugin, and thus the installation is not possible...

如果我把 Native 配置放在 General >未选择 Auth 选项的网络连接,当我尝试访问更新站点时出现以下错误:

If I put Native configuration in General > Network Connections, which does not have the Auth option selected, I get the following error when I trying to reach the update site:

HTTP Proxy Authentication Required: http://dist.codehaus.org/groovy/distributions/greclipse/snapshot/e3.7/content.xml
HTTP Proxy Authentication Required: http://dist.codehaus.org/groovy/distributions/greclipse/snapshot/e3.7/content.xml
Proxy Authentication Required

所以现在,我选择manual,我为三个模式(HTTP、HTTPS、SOCKS)定义了所有正确的信息:代理、端口、身份验证、用户和密码.但是,当我尝试访问更新站点时,Eclipse 指示他正在获取 Groovy Eclipse 的子项,但将此状态保持在 0%...

So now, I select manual, I define all correct information for the three schemas (HTTP, HTTPS, SOCKS): proxy, port, Auth, User and password. However, when I try to reach the update site, Eclipse is indicating that he is Fetching children of Groovy Eclipse, but keep this status at 0%...

奇怪的是,即使我在General >中输入了错误的密码.网络连接 配置,我没有收到任何错误消息.

What is strange is that even if I put a wrong password in the General > Network Connections configuration, I don't get any error message.

我的问题:

  • 我的配置有什么问题?
  • 是否有另一种方法来定义代理配置?
  • 有没有办法获得更多信息,了解 Eclipse 正在尝试做什么(workspace/.metadata/.log 不包含任何有用的信息)?
  • What is wrong in my configuration?
  • Is there another way to define the proxy configuration?
  • Is there a way to get more information, to know what Eclipse is trying to do (the workspace/.metadata/.log doesn't contain any useful information) ?

另一个问题(不过是次要问题)是代理设置的修改似乎只有在 Eclipse 重新启动后才能处理.

Another problem (minor however) is that the modifications of the proxy settings seem to be handled only after an Eclipse restart.

ps1: 使用我的浏览器,我可以访问更新站点,因此它不会被代理阻止.

ps1: Using my browser, I can reach the update site, so it is not blocked by the proxy.

ps2: 这个问题与这个插件无关,因为 Eclipse 对其他插件的行为方式相同.

ps2: This problem is not related to this plugin, as Eclipse behaves the same way for other plugin.

ps3:这是我启动Eclipse并尝试安装插件时workspace/.metadata/.log的内容(所有这些日志都是在启动,当 Eclipse 尝试访问更新站点时无)

ps3: Here is the content of the workspace/.metadata/.log when I start Eclipse and try to install the plugin (all these logs are written during the startup, none when Eclipse tries to access the update site)

!SESSION 2011-05-02 10:38:58.681 -----------------------------------------------
eclipse.buildId=I20101208-1300
java.version=1.6.0_20
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=fr_FR
Framework arguments:  -product org.eclipse.epp.package.jee.product
Command-line arguments:  -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.jee.product

!ENTRY org.eclipse.core.net 1 0 2011-05-02 10:39:02.228
!MESSAGE System property http.proxyHost is not set but should be XXX.

!ENTRY org.eclipse.core.net 1 0 2011-05-02 10:39:02.228
!MESSAGE System property http.proxyPort is not set but should be 8080.

!ENTRY org.eclipse.core.net 1 0 2011-05-02 10:39:02.244
!MESSAGE System property https.proxyHost is not set but should be XXX.

!ENTRY org.eclipse.core.net 1 0 2011-05-02 10:39:02.244
!MESSAGE System property https.proxyPort is not set but should be 8080.

!ENTRY org.eclipse.core.net 1 0 2011-05-02 10:39:02.244
!MESSAGE System property socksProxyHost is not set but should be XXX.

!ENTRY org.eclipse.core.net 1 0 2011-05-02 10:39:02.244
!MESSAGE System property socksProxyPort is not set but should be 8080.

!ENTRY org.eclipse.core.net 1 0 2011-05-02 10:39:02.244
!MESSAGE System property https.proxyHost is not set but should be XXX.

!ENTRY org.eclipse.core.net 1 0 2011-05-02 10:39:02.244
!MESSAGE System property https.proxyPort is not set but should be 8080.

!ENTRY org.eclipse.core.net 1 0 2011-05-02 10:39:02.244
!MESSAGE System property socksProxyHost is not set but should be XXX.

!ENTRY org.eclipse.core.net 1 0 2011-05-02 10:39:02.244
!MESSAGE System property socksProxyPort is not set but should be 8080.

!ENTRY org.eclipse.core.net 1 0 2011-05-02 10:39:02.244
!MESSAGE System property socksProxyHost is not set but should be XXX.

!ENTRY org.eclipse.core.net 1 0 2011-05-02 10:39:02.244
!MESSAGE System property socksProxyPort is not set but should be 8080.

!ENTRY org.eclipse.osgi 2 1 2011-05-02 10:39:02.447
!MESSAGE NLS missing message: TaskJobFactory_Refreshing_repository_configuration in: org.eclipse.mylyn.internal.tasks.ui.messages

<小时>

编辑

如果我在 eclipse.ini 文件中添加以下几行 (因此),它有效:

If I add the following lines in my eclipse.ini file (because of that), it works:

-Dorg.eclipse.ecf.provider.filetransfer.excludeContributors=org.eclipse.ecf.provider.filetransfer.httpclient
-Dhttp.proxyPort=8080
-Dhttp.proxyHost=XXX
-Dhttp.proxyUser=XXX
-Dhttp.proxyPassword=XXX
-Dhttp.nonProxyHosts=localhost|127.0.0.1

但是为什么呢?这个问题在 Eclipse 3.7 中还存在吗?

But why? Does this problem still exists in Eclipse 3.7?

推荐答案

我遇到了同样的问题.我将 Eclipse 3.7 安装到一个新文件夹中,并创建了一个新工作区.我使用 -data 参数启动 Eclipse 以引用新工作区.

I had the same problem. I installed Eclipse 3.7 into a new folder, and created a new workspace. I launch Eclipse with a -data argument to reference the new workspace.

当我尝试连接到市场以获取 SVN 和 Maven 插件时,我遇到了 OP 中描述的相同问题.

When I attempt to connect to the marketplace to get the SVN and Maven plugins, I get the same issues described in OP.

多次尝试后,我清除了 SOCKS 协议的代理设置,并且能够连接到市场.

After a few more tries, I cleared the proxy settings for SOCKS protocol, and I was able to connect to the marketplace.

所以我的解决方案是手动配置HTTP和HTTPS代理,清除SOCKS的设置,然后重启Eclipse.

So the solution for me was to configure the manual settings for HTTP and HTTPS proxy, clear the settings for SOCKS, and restart Eclipse.

这篇关于如何配置代理设置以便 Eclipse 可以下载新插件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆