您的位置:首页 > 其它

Maven使用代理方式联网连接服务器

2013-01-05 16:30 148 查看
找到你本地Maven库的setting.xm文件,打开里面找到<proxies></proxies>标记,在其中添加你的代理上网方式。如:

<proxies>
    <!-- proxy
     | Specification for one proxy, to be used in connecting to the network.
     |-->
    <proxy>
      <id>optional</id>
      <active>false</active>
      <protocol>http</protocol>
      <username></username>
     <password></password>
     <host>proxyhost or proxy hostname</host>
     <port>8080</port>
      <nonProxyHosts>local.net|some.host.com</nonProxyHosts>
    </proxy>		
  </proxies>

粗体部分都是需要填写的内容。然后保存。就能通过代理方式使用maven了。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐