您的位置:首页 > 其它

maven配置阿里镜像仓库仓库

2018-01-20 12:51 267 查看
<localRepository>D:\.m2\repository</localRepository>    -----配置本地仓库地址

<mirror>     ------配置阿里镜像仓库

      <!--This sends everything else to /public -->

      <id>nexus</id>

      <mirrorOf>*</mirrorOf> 

      <url>http://maven.aliyun.com/nexus/content/groups/public/</url>

    </mirror>
   <mirror>

      <!--This is used to direct the public snapshots repo in the 

          profile below over to a different nexus group -->

      <id>nexus-public-snapshots</id>

      <mirrorOf>public-snapshots</mirrorOf> 

      <url>http://maven.aliyun.com/nexus/content/repositories/snapshots/</url>
    </mirror>

ok!----享受高速吧

ps:如果还是蜗牛速度,就重启下idea,或许就可以了。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: