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>

1 comment:

  1. Hello! Thsnks for share your knowledge.
    Im new, and i dont know why to set proxy on in netbeans? Or when should i set on or off? thanks a lot

    ReplyDelete