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>