如何指定 Eclipse 代理身份验证凭据?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/1940984/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to Specify Eclipse Proxy Authentication Credentials?
提问by jtruelove
I'm using the latest version of Eclipse Galileo and I have to access the web from behind a proxy. I see where I can set the internet settings to manual and specify a proxy but there's no way to specify my authentication credentials that I can see and it doesn't prompt me for them either. So I'm not able to hit any plugin update sites etc... Does anyone else have this issue or know a good workaround? Or is there a better version of Eclipse to use?
我正在使用最新版本的 Eclipse Galileo,我必须从代理后面访问网络。我看到在哪里可以将 Internet 设置设置为手动并指定代理,但无法指定我可以看到的身份验证凭据,它也不会提示我输入它们。所以我无法访问任何插件更新站点等...还有其他人有这个问题或知道一个好的解决方法吗?或者是否有更好的 Eclipse 版本可供使用?
回答by Eli Acherkan
In Eclipse, go to Window → Preferences → General → Network Connections. In the Active Provider combo box, choose "Manual". In the proxy entries table, for each entry click "Edit..." and supply your proxy host, port, username and password details.
在 Eclipse 中,转到窗口 → 首选项 → 常规 → 网络连接。在 Active Provider 组合框中,选择“Manual”。在代理条目表中,对于每个条目,单击“编辑...”并提供您的代理主机、端口、用户名和密码详细信息。
回答by Peter
If you have still problems, try deactivating ("Clear") SOCKS
如果仍有问题,请尝试停用(“清除”)SOCKS
see: https://bugs.eclipse.org/bugs/show_bug.cgi?id=281384"I believe the reason for this is because it uses the SOCKS proxy instead of the HTTP proxy if SOCKS is configured."
请参阅:https: //bugs.eclipse.org/bugs/show_bug.cgi?id=281384“我相信这是因为如果配置了 SOCKS,它使用 SOCKS 代理而不是 HTTP 代理。”
回答by pihentagy
Here is the workaround:
这是解决方法:
In eclipse.ini write the following:
在 eclipse.ini 中写入以下内容:
-vmargs
-Dorg.eclipse.ecf.provider.filetransfer.excludeContributors= org.eclipse.ecf.provider.filetransfer.httpclient
-Dhttp.proxyHost=*myproxyhost*
-Dhttp.proxyPort=*myproxyport*
-Dhttp.proxyUser=*proxy username*
-Dhttp.proxyPassword=*proxy password*
-Dhttp.nonProxyHosts=localhost|127.0.0.1
After starting eclipse verify, that you use the Manual proxy method.
启动 eclipse 后验证,您使用手动代理方法。
HTH
HTH
回答by Amir
Window → Preferences → General → Network Connections then under "Proxy ByPass" click "Add Host" and enter the link from which you will be getting your third-party plugin; that's it bingo, now it should get the plugin no problem.
Window → Preferences → General → Network Connections 然后在“Proxy ByPass”下点击“Add Host”并输入您将获得第三方插件的链接;这就是宾果游戏,现在应该没有问题了。
回答by GarethViljoen
I struggle with this constantly, as it seems it is a different solution every time a new version of Eclipse is released. Here is a solution that doesn't involve displaying your password in the .ini file.
我一直在为此苦苦挣扎,因为每次发布新版本的 Eclipse 时,它似乎都是一个不同的解决方案。这是一个不涉及在 .ini 文件中显示密码的解决方案。
In Eclipse go to Window > Preferences > General > security Secure Storage
在 Eclipse 中,转到 Window > Preferences > General > security Secure Storage
In the Password tab click on the "Change Password" button Fill in the security questions. Don't make them to hard. Finish
在“密码”选项卡中,单击“更改密码”按钮 填写安全问题。不要让他们太难。结束
Now go to Window > Preferences > General > Network connections. Choose "Manual" from drop down. Double click "HTTP" option and enter the Host, Port, Username and Password. Finish
现在转到“窗口”>“首选项”>“常规”>“网络连接”。从下拉菜单中选择“手动”。双击“HTTP”选项并输入主机、端口、用户名和密码。结束
Now go to Window > Preferences > General > security Secure Storage
现在转到窗口>首选项>常规>安全安全存储
In the Password tab click on the "Recover Password" button Fill in the security questions. Finish
在“密码”选项卡中,单击“恢复密码”按钮 填写安全问题。结束
Eclipse now stores your username and password
Eclipse 现在存储您的用户名和密码
回答by nadie
Try to fill only the HTTP schema
尝试只填充 HTTP 模式
回答by user710818
This sometime works, sometime no.
这有时有效,有时无效。
I have installed 1 Eclipse - works.
我已经安装了 1 个 Eclipse - 有效。
Installed second - doesn't work.
第二次安装 - 不起作用。
And I cann't figure why!
我不明白为什么!
After some time may be found a solution.
一段时间后可能会找到解决方案。
Need delete all setting for proxy (included credentials). And re-insert for new.
需要删除代理的所有设置(包括凭据)。并重新插入换新。
After this for me getting work.
在这之后我得到了工作。
回答by anup r
Add the following line at the end of your eclipse.ini file
在 eclipse.ini 文件的末尾添加以下行
-Dorg.eclipse.ecf.provider.filetransfer.excludeContributors=org.eclipse.ecf.provider.filetransfer.httpclient4
回答by GRThiru
For eclipse Mar1 : - Window > Preferences > General > Network connections. Choose "Manual" from drop down. Double click "HTTP" option and enter the Host, Port, Username and Password. Apply and Finish,,it will work as expected...
对于 eclipse Mar1: - 窗口 > 首选项 > 常规 > 网络连接。从下拉菜单中选择“手动”。双击“HTTP”选项并输入主机、端口、用户名和密码。应用并完成,它将按预期工作......