Monday, 25 July 2011

Bypassing Proxies by setting Maven POM properties

After running into major issues this morning when trying to test a 3rd party SOAP based webservice integration with a "Connection Refused" exception being thrown I thought I'd share the issue and solution.

Recently a new proxy server has been setup with all back-office network traffic now going through it, this was stopping my local sandbox from hitting the required endpoint.

In order to ressolve this you can simply add some addiitonal system properties to your pom.xml file so Java can bybass the internal proxy. Replace {port} and {server} with your proxy settings and it should work straight away.

See: http://info4tech.wordpress.com/2007/05/04/java-http-proxy-settings/ for further settings if required.


	
		http.proxyPort
		{port}
	
	
		http.proxyHost
		{server}