Pedro H Pedro H - 2 months ago 12x
Java Question

Connection Refused on maven compile

I'm getting an exception ( Connection refused: connect.
) when trying to compile a maven project using the jaxb2 plugin to generate the class by a wsdl provided by a url.

However, I can get this wsdl when get it by a browser.

Any ideas?



The instructions of how setup a proxy in jaxb2:

I just put <useActiveProxyAsHttpproxy>true</useActiveProxyAsHttpproxy> in my configuration tag of plugin.

Also, I prev setted the proxy on my maven settings.xml