如何配置代理设置,以便Eclipse可以下载新插件? [英] How do I configure the proxy settings so that Eclipse can download new plugins?
问题描述
我正在Web代理后面的Windows XP环境中使用Eclipse 3.7.
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屋!