我正在Web代理后面的Windows XP环境中使用Eclipse 3.7。
我想在新解压缩的 Eclipse Indigo(Eclipse Java EE Indigo M4)上安装Groovy插件。我将更新站点添加到列表中。Available Software Site
但是Eclipse无法检索此插件的信息,因此无法进行安装...
如果我将Native
配置放在中General > Network Connections
,而未Auth
选择该选项,则在尝试访问更新站点时出现以下错误:
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:这是workspace/.metadata/.log
我启动Eclipse并尝试安装插件时的内容(所有这些日志都是在启动期间编写的,而在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中是否仍然存在此问题?