Showing posts with label maven proxy setting. Show all posts
Showing posts with label maven proxy setting. Show all posts

Monday, November 28, 2016

Maven Proxy Setting in NetBeans IDE

NetBeans IDE proxy setting is under Tools -> Options -> General.

But, in order for the Maven to use the proxy, you need to set the proxy for Maven separately at the following file.

<Netbeans Install Dir>/java/maven/conf/settings.xml 

Look for <proxies> tag and add or edit proxy information accordingly as the following.

<proxies>
      <proxy>
          <id>optional</id>
  <active>true</active>
  <protocol>http</protocol>
  <username></username>
  <password></password>
  <host>proxy.myhost.com</host>
  <port>8080</port>
          <nonProxyHosts>localhost</nonProxyHosts>
      </proxy>
      <proxy>
          <id>optional</id>
  <active>true</active>
          <protocol>https</protocol>
          <username></username>
  <password></password>
  <host>proxy.myhost.com</host>
          <port>8080</port>
  <nonProxyHosts>localhost</nonProxyHosts>
     </proxy>
<proxies>