Java Tools and Proxies

Most of us work in offices where a proxy server setup.
So our build process, documentation, searches everything goes through the proxy server.

Proxy settings can be set on bot Eclipse and NetBeans.

On eclipse on preferences you choose General>Network Connections.
You set active provider on manual and you edit the http and https properties (proxy server, username,password). Also keep in mind to hit clear for the socks proxy entry.
After that you just need a restart.

Screen Shot 2014-05-11 at 11.46.24 PM

On maven where you have to download your dependencies you can set up your proxy settings there too.

You can just edit your ~/.m2/settings.xml

and inside the settings tag add

  <proxies>
    <proxy>
        <active>true</active>
        <protocol>http</protocol>
        <host>yourhost</host>
        <port>yourport</port>
        <username>username</username>
        <password>password</password>
        <nonProxyHosts>localhost,127.0.0.1</nonProxyHosts>
    </proxy>
  </proxies>

 

About these ads

One thought on “Java Tools and Proxies

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s