`
can_do
  • 浏览: 249906 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

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//////////////////
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics