有没有办法通过autoproxy配置脚本配置Eclipse IDE代理设置? [英] Is there any way of configuring Eclipse IDE proxy settings via an autoproxy configuration script?

查看:1142
本文介绍了有没有办法通过autoproxy配置脚本配置Eclipse IDE代理设置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在防火墙后面使用自动配置脚本。当我使用大多数浏览器(IE 7,IE 8,FF,Chrome)中启用自动转换网址时,我可以浏览互联网。 您可以参考在Windows上启用autoproxy url goto:设置 - >控制面板 - > Internet选项 - >连接 - > Lan设置 - >(检查)使用自动配置脚本 - >输入地址值作为自动代理脚本url。



我遇到的问题是:我有Eclipse IDE,我想在Eclipse中配置代理设置,类似于浏览器设置,但我无法。在Eclipse或NetBeans 6.9.1或IntelliJ Idea中找不到设置来解决这个问题。



我正在使用与这些IDE集成的Maven2,并且还没有设置本地存储库。 Maven2尝试通过从互联网下载它们来安装jar,但不能由于代理设置。我可以手动从Maven2库中下载这些库,并使用Artifactory或Nexus托管内部存储库,但我想知道是否有任何方法可以从IDE本身执行...



感谢您的反馈。请让我知道,如果你有任何问题。

解决方案

这是我做的。所有这些说明都是基于我工作PAC的最小体验,所以YMMV。



通过pac URL下载pac文件。它是纯文本,应该很容易在文本编辑器中打开。



在底部附近可能有一个部分说:
returnPROXY wxyz :
其中wxyz是ip地址或用户名,a是端口号。



将这些写下来。



在最近的eclipse版本中:




  • 转到窗口 - >首选项 - >常规 - >网络连接=

  • 将提供者更改为手动

  • 选择HTTP行,然后单击编辑按钮

  • 将上面的IP地址和端口号添加到http行

  • 如果您必须验证使用代理,


    • 选择需要身份验证

    • 键入您的用户名。请注意,如果您的身份验证位于Windows域,则可能需要先添加域名和反斜杠(\),如:MYDOMAIN\MYUSERID

    • 输入密码

  • 单击确定

  • 单击应用

  • 单击确定



此时,您应该可以使用内部网络浏览器浏览(至少在http网址上)。



祝你好运。



修改
只是这样你知道,这样更容易使用 Nexus ,一组< mirror> 标签和一个代理设置(Nexus内部)来管理防火墙内Maven的代理问题。


I am behind a firewall which uses autoproxy configuration script. I am able to browse the internet when I enable the autoproxy url in most browsers I use (IE 7, IE 8, FF, Chrome). For your reference to enable autoproxy url on Windows goto: Settings -> Control Panel -> Internet Options -> Connections -> Lan Settings -> (Check) use automatic configuration scripts -> enter Address value as the autoproxy script url.

The issue I am facing is: I have Eclipse IDE and I want to configure the proxy settings in Eclipse similar to browser settings but I am unable to. I could not find a setting in Eclipse or NetBeans 6.9.1 or IntelliJ Idea to solve this issue.

I am using Maven2 integrated with these IDEs and no local repositories set up yet. Maven2 tries to install jars by downloading them from Internet but it cannot due to the proxy setting. I can manually download these libraries from Maven2 repositories and have an internal repository hosted using Artifactory or Nexus but I would like to know if there is any way I can do it from IDE itself...

Thanks for your feedback. Please let me know if you have any questions.

解决方案

Here is what I do. All of these instructions are based on my minimal experiences with working PACs, so YMMV.

Download your pac file via your pac URL. It's plain text and should be easy to open in a text editor.

Near the bottom, there's probably a section that says something like: return "PROXY w.x.y.z:a" where "w.x.y.z" is an ip address or username and "a" is a port number.

Write these down.

In a recent version of eclipse :

  • Go to Window -> Preferences -> General -> Network Connections=
  • Change the provider to "Manual"
  • Select the "HTTP" line and click the edit button
  • Add the IP address and port number above to the http line
  • If you have to authenticate to use the proxy,
    • select "Requires Authentication"
    • type in your username. Note that if your authentication is on a Windows domain, you might have to prepend the domain name and a backslash (\) like: MYDOMAIN\MYUSERID
    • Type in your password
  • Click OK
  • Click Apply
  • Click OK

At this point, you should be able to browse using the internal web browser (at least on http URLs).

Good luck.

Edit: Just so you know, it's WAY easier to use Nexus, one set of <mirror> tags and a single proxy setup (inside Nexus) to manage the proxy issues of Maven inside a firewall.

这篇关于有没有办法通过autoproxy配置脚本配置Eclipse IDE代理设置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆