【发布时间】:2011-08-16 23:34:13
【问题描述】:
我在 Web 代理后面的 Windows XP 环境中使用 Eclipse 3.7。
我想在新解压的 Eclipse Indigo(Eclipse Java EE Indigo M4)上安装Groovy plugin。
我将update site 添加到Available Software Site 列表中。
但是Eclipse无法检索到这个插件的信息,所以无法安装...
如果我将Native 配置放入未选择Auth 选项的General > Network Connections 中,则在尝试访问更新站点时出现以下错误:
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 显示他是Fetching children of Groovy Eclipse,但保持此状态为 0%...
奇怪的是,即使我在General > Network Connections 配置中输入了错误的密码,我也没有收到任何错误消息。
我的问题:
- 我的配置有什么问题?
- 还有其他方式来定义代理配置吗?
- 有没有办法获得更多信息,知道 Eclipse 正在尝试做什么(
workspace/.metadata/.log不包含任何有用的信息)?
另一个问题(不过很小)是代理设置的修改似乎只有在 Eclipse 重新启动后才能处理。
ps1:使用我的浏览器,我可以访问更新站点,所以它没有被代理阻止。
ps2: 这个问题与这个插件无关,因为 Eclipse 对其他插件的行为方式相同。
ps3: 这是我启动 Eclipse 并尝试安装插件时 workspace/.metadata/.log 的内容(所有这些日志都是在启动期间写入的,当 Eclipse 尝试访问更新站点时没有)
!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 文件 (because of that) 中添加以下行,它会起作用:
-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 中还存在吗?
【问题讨论】:
-
我有一个类似的问题:如何在 ubuntu 中从代理服务器(或缓存)安装 eclipse 更新?还是我应该在ubuntu服务器上问这个?谢谢
-
即使在 Eclipse Neon (2017-05-12) 中也存在该问题! 6年过去了:O
-
@Ram .... 在 Eclipse Oxygen (2017-09-21) 中!!