gpt4 book ai didi

eclipse - 如何配置代理设置以便 Eclipse 可以下载新插件?

转载 作者:行者123 更新时间:2023-12-02 15:01:14 37 4
gpt4 key购买 nike

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

我想安装 Groovy plugin新解压的 Eclipse Indigo (Eclipse Java EE Indigo M4) 上。我添加了update site可用软件站点列表。

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

如果我将 Native 配置放入常规 > 网络连接(未选择 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

现在,我选择手动,为三个模式(HTTP、HTTPS、SOCKS)定义所有正确信息:代理、端口、身份验证、用户和密码。但是,当我尝试访问更新站点时,Eclipse 指示他正在获取 Groovy Eclipse 的子项,但将此状态保持在 0%...

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

我的问题:

  • 我的配置有什么问题?
  • 还有其他方法来定义代理配置吗?
  • 有没有办法获取更多信息,了解 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 中还存在这个问题吗?

最佳答案

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

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

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

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

关于eclipse - 如何配置代理设置以便 Eclipse 可以下载新插件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5857499/

37 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com