Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Incomplete
-
3.0.4
-
None
-
None
-
Windows 7, java version "1.7.0_04"
Description
My organisation uses an Intranet, with proxy servers as a gateway onto the Internet. I have configured the settings.xml file with the details of the proxys. I have 3 <proxy> entries using different protocols: HTTP, HTTPS, SOCKS5.
Maven seems to accept these settings and successfully downloads artifacts from the central repo (actually the UK mirror).
I am developing clients for web services that run on the Intranet so I have configured the value for non-proxy hosts thus:-
<nonProxyHosts>*.my-domain.co.uk</nonProxyHosts>
The problem is this: The non proxy hosts setting does not appear to be respected when I generate web-service client code using wsdl2java (via the cxf-codegen-plugin) when the web service resides on a host on the Intranet.
Maven contacts the proxy to query the WSDL and gets a HTTP 403 error, due to the fact access to the web services are restricted by IP address, and the address white list does not include the proxy servers, for security reasons.
My workaround is to have a 2nd local settings file I call "settings-no-proxy.xml" in which all the proxy servers have
<active>false</active>
(The proxies are initially set in the global settings.xml) So, this local file deactivates them. Then I would use maven thus:
mvn generate-sources -s n:\.m2\settings-no-proxy.xml
Which works and allows the cxf-codegen-plugin to do its job.