Maven编译问题,Connection TimeOut

如果本机使用了代理服务器连接互联网的话,使用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,proxy,timeout)