Pedro H Pedro H - 1 year ago 170
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?


Answer Source

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

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download