[
https://jira.codehaus.org/browse/MNG-5287?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=299722#comment-299722
]
Guy Heatley commented on MNG-5287:
----------------------------------
Hi Brett,
Thanks for your response.
I'm afraid the problem still seems to be exhibited in Maven 3.0.3, too.
I had an existing installation of 3.0.3 so I simply set my M2_HOME env var to
point at it, and tried "mvn clean generate-sources", obviously using my default
settings.xml file.
[I ran "mvn -v" to make sure it was using 3.0.3]
I got the same result, unfortunately.
--
Guy
> Problems with nonProxyHosts setting when generating web service code
> --------------------------------------------------------------------
>
> Key: MNG-5287
> URL: https://jira.codehaus.org/browse/MNG-5287
> Project: Maven 2 & 3
> Issue Type: Bug
> Components: Plugins and Lifecycle, Settings
> Affects Versions: 3.0.4
> Environment: Windows 7, java version "1.7.0_04"
> Reporter: Guy Heatley
> Priority: Minor
>
> 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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira