0

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.

2 Answers2

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