Is there any way of configuring Eclipse IDE proxy settings via an autoproxy configuration script?

前端 未结 6 884
说谎
说谎 2020-12-23 14:00

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, Ch

6条回答
  •  悲&欢浪女
    2020-12-23 14:34

    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 tags and a single proxy setup (inside Nexus) to manage the proxy issues of Maven inside a firewall.

提交回复
热议问题