Pedro H Pedro H - 3 months ago 20
Java Question

Connection Refused on maven compile

I'm getting an exception (

java.net.ConnectException: 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?

Thanks.

Answer

The instructions of how setup a proxy in jaxb2: https://github.com/highsource/maven-jaxb2-plugin/wiki/Configuring-Proxies/c32d4e2af4ab9c1fd5b3d67fb559ec32affab745

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

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

Comments