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}
	

1 comment:

  1. Thank you for saying about useful, good survey. It is required to understand that outsourced software development could help in your industry by installing customized software applications. Also you may turn your attention on outsourced mobile software development.

    ReplyDelete