如何指定cxf-codegen-plugin需要使用的代理。我尝试在maven settings.xml中指定代理,但未被接受。
发布于 2018-03-13 21:29:21
~/.m2文件夹中的maven settings.xml对于我的cxf-codegen-plugin来说工作得很好。示例:
<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>发布于 2017-06-30 21:06:31
我试过了:
mvn -Dhttp.proxyHost=[_] -Dhttp.proxyPort=[_] clean package
([_] -> Your proxy data)在控制台上,并且工作了。
https://stackoverflow.com/questions/24773967
复制相似问题