Maven using proxy for nonProxyHost

I have the following proxy configured in my settings.xml

<proxy> <id>optional</id> <active>true</active> <protocol>http</protocol> <username>someusername</username> <password>somepassword</password> <host>some.proxy.host.com</host> <port>5150</port> <nonProxyHosts>localhost|127.0.0.1</nonProxyHosts> </proxy> 

But it still applies the proxy to my localhost, every time I need to do something with localhost, I need to change the active to false.

+6
source share
2 answers

According to the documents [1] you can set

 <useProxy>false</useProxy> 

so that this does not happen.

[1] http://dev.day.com/docs/en/cq/current/core/how_to/how_to_use_the_vlttool/vlt-mavenplugin.html#Common%20Parameters

+4
source

if you want to deploy to localhost

try it

 <nonProxyHosts>*localhost*</nonProxyHosts> 

must work

0
source

All Articles