How do you specify a proxy that needs to be used by cxf-codegen-plugin. I tried specifying proxy in the maven settings.xml, but that was not picked up.
Asked
Active
Viewed 1,121 times
0
-
What version of the plugin are you using? – Tome Jul 16 '14 at 09:29
-
I am using version 3.0.0 – Ganesh Ramachandran Nair Jul 17 '14 at 11:29
-
Then this post should help you: http://www.wolfe.id.au/2011/05/26/using-apache-cxf-and-maven-with-a-proxy-server/ – Tome Jul 17 '14 at 11:33
-
I added cxf.xml in src/main/resources with http conduit details as advised, but cxf-codegen-plugin did not seem to pick up that file. I ended up using SoapUI to fetch the complete wsdl and adding that to the project. – Ganesh Ramachandran Nair Jul 18 '14 at 06:39
-
Can you add all configurations? (repository.xml, pom.xml... etc). Have you a proxy in your net? – Xstian Jul 30 '14 at 14:05
2 Answers
1
maven settings.xml in ~/.m2 folder works just fine for me for cxf-codegen-plugin. Example:
<proxies>
<proxy>
<id>myproxy</id>
<active>true</active>
<protocol>http</protocol>
<host>proxy.example.com</host>
<port>8080</port>
<username><!-- username --></username>
<password><!-- pass --></password>
<nonProxyHosts>*.local|*.example.com</nonProxyHosts>
</proxy>
</proxies>

eis
- 51,991
- 13
- 150
- 199
0
I've tried:
mvn -Dhttp.proxyHost=[_] -Dhttp.proxyPort=[_] clean package
([_] -> Your proxy data)
On console and worked.

Francisco M
- 163
- 2
- 9