maven 代理

  1. 切换到{maven.home}\conf (ie: maven 安装目录)
  2. 拷贝settings.xml到自己的.m2目录
  3. 编辑.m2/settings.xml的代理部分:
<proxy>
      <id>optional</id>
      <active>true</active>
      <protocol>http</protocol>
    <!--  <username>proxyuser</username>
      <password>proxypass</password> -->
      <host>ip</host>
      <port>port</port>
      <nonProxyHosts>localhost</nonProxyHosts>
</proxy>

  

posted @ 2016-05-29 17:06  raindream  阅读(252)  评论(0)    收藏  举报