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

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

问题描述

我正在使用Eclipse 3.7,在Windows代理服务器后面的Windows XP环境中。



我想安装 Ind。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。
我将
更新站点添加到可用的软件站点列表。



但是Eclipse无法检索此插件的信息,因此安装不可能...



如果我在常规>中设置 Native 网络连接,其中没有选择 Auth 选项,当我尝试访问更新站点时,我收到以下错误:

 需要HTTP代理验证:http://dist.codehaus.org/groovy/distributions/greclipse/snapshot/e3.7/content.xml 
需要HTTP代理验证:http://dist.codehaus.org/groovy/distributions/greclipse/snapshot/e3.7/content.xml
需要代理验证

所以现在,我选择手册,我为三个模式定义所有正确的信息( HTTP,HTTPS,SOCKS):代理,端口,认证,用户和密码。
但是,当我尝试到达更新站点时,Eclipse表明他是获取Groovy Eclipse的孩子,但将其保持在0%...



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



我的问题:




  • 我的配置有什么问题?

  • 是否有另一种方法来定义代理配置?

  • 有没有办法获取更多的信息,了解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常量:OS = win32,ARCH = x86,WS = win32,NL = fr_FR
框架参数:-product org.eclipse.epp.package。 jee.product
命令行参数:-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系统属性http.proxyHost未设置,但应为XXX。

!ENTRY org.eclipse.core.net 1 0 2011-05-02 10:39:02.228
!MESSAGE系统属性http.proxyPort未设置,但应为8080.

!ENTRY org.eclipse.core.net 1 0 2011-05-02 10:39:02.244
!MESSAGE系统属性https.proxyHost未设置,但应为XXX。

!ENTRY org.eclipse.core.net 1 0 2011-05-02 10:39:02.244
!MESSAGE系统属性https.proxyPort未设置,但应为8080.

!ENTRY org.eclipse.core.net 1 0 2011-05-02 10:39:02.244
!MESSAGE系统属性socksProxyHost未设置,但应为XXX。

!ENTRY org.eclipse.core.net 1 0 2011-05-02 10:39:02.244
!MESSAGE系统属性socksProxyPort未设置,但应为8080.

!ENTRY org.eclipse.core.net 1 0 2011-05-02 10:39:02.244
!MESSAGE系统属性https.proxyHost未设置,但应为XXX。

!ENTRY org.eclipse.core.net 1 0 2011-05-02 10:39:02.244
!MESSAGE系统属性https.proxyPort未设置,但应为8080.

!ENTRY org.eclipse.core.net 1 0 2011-05-02 10:39:02.244
!MESSAGE系统属性socksProxyHost未设置,但应为XXX。

!ENTRY org.eclipse.core.net 1 0 2011-05-02 10:39:02.244
!MESSAGE系统属性socksProxyPort未设置,但应为8080.

!ENTRY org.eclipse.core.net 1 0 2011-05-02 10:39:02.244
!MESSAGE系统属性socksProxyHost未设置,但应为XXX。

!ENTRY org.eclipse.core.net 1 0 2011-05-02 10:39:02.244
!MESSAGE系统属性socksProxyPort未设置,但应为8080.

!ENTRY org.eclipse.osgi 2 1 2011-05-02 10:39:02.447
!MESSAGE NLS缺少消息: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中仍然存在吗?

解决方案

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



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



经过几次尝试,我清除了SOCKS 协议的代理设置,我能够连接到市场



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


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

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.

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

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

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%...

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.

My questions:

  • 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) ?

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


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

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

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


Edit

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

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

解决方案

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.

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

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

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天全站免登陆