Maven编译问题,Connection TimeOut mavenproxytimeout
程序员文章站
2022-03-07 12:29:48
...
如果本机使用了代理服务器连接互联网的话,使用maven编译时,需要配置其proxy元素段,如下:
<$Maven_Home>/conf/settings.xml
///////////begin////////////////
<proxies>
<!-- proxy
| Specification for one proxy, to be used in connecting to the network.
| the codes remedified by can_do on 2013-01-30
-->
<proxy>
<id>optional</id>
<active>true</active>
<protocol>http</protocol>
<username>proxyuser</username>
<password>proxypass</password>
<host>your.proxy.server.name</host>
<port>8080</port>
<nonProxyHosts>127.0.0.1|localhost|cnd</nonProxyHosts>
</proxy>
</proxies>
///////////end//////////////////
<$Maven_Home>/conf/settings.xml
///////////begin////////////////
<proxies>
<!-- proxy
| Specification for one proxy, to be used in connecting to the network.
| the codes remedified by can_do on 2013-01-30
-->
<proxy>
<id>optional</id>
<active>true</active>
<protocol>http</protocol>
<username>proxyuser</username>
<password>proxypass</password>
<host>your.proxy.server.name</host>
<port>8080</port>
<nonProxyHosts>127.0.0.1|localhost|cnd</nonProxyHosts>
</proxy>
</proxies>
///////////end//////////////////
上一篇: linux中的解压文件命令有哪些
下一篇: php怎么配置虚拟域名
推荐阅读