我正在使用Eclipse 3.7,在Windows XP环境下使用Web代理。
我想在一个新解压的Eclipse Indigo(Eclipse Java EE Indigo M4)上安装Groovy插件。
我将更新站点添加到可用软件站点
列表中。
但是Eclipse无法检索此插件的信息,因此无法进行安装...
如果我在常规 > 网络连接
中选择了本地
配置,并且没有选择身份验证
选项,则在尝试访问更新站点时会出现以下错误:
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%的状态...
奇怪的是,即使我在常规 > 网络连接
配置中输入错误的密码,也没有收到任何错误消息。
我的问题:
- 我的配置有什么问题?
- 是否有另一种定义代理配置的方式?
- 是否有一种方法可以获得更多的信息,知道Eclipse正在尝试做什么(
workspace/.metadata/.log
中没有任何有用的信息)?
另一个问题(不过较小)是修改代理设置似乎只能在重新启动Eclipse后处理。
提示1:使用我的浏览器,我可以访问更新站点,因此它没有被代理服务器阻止。
提示2:这个问题与该插件无关,因为Eclipse在安装其他插件时也会出现相同的情况。
提示3:这是启动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
文件中添加以下行(由于这个原因),它就可以工作:
-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中这个问题还存在吗?