国内Maven仓库--阿里云Aliyun仓库地址及设置

用过Maven的都知道Maven的方便便捷,但由于某些网络原因,访问国外的Maven仓库不便捷,好在阿里云搭建了国内的maven仓库。

         aliyun Maven:http://maven.aliyun.com/nexus/#view-repositories

         需要使用的话,要在maven的settings.xml 文件里配置mirrors的子节点,添加如下mirror:         

[html] view plain copy
  1. <span style="font-size:18px;"><mirror>  
  2. <id>nexus-aliyun</id>  
  3. <mirrorOf>*</mirrorOf>  
  4. <name>Nexus aliyun</name>  
  5. <url>http://maven.aliyun.com/nexus/content/groups/public</url>  
  6. </mirror>  
  7. </span>  

         

     这样即可使用国内Maven仓库,提高日常开发的效率!


猜你喜欢

转载自blog.csdn.net/weixin_39816740/article/details/80386276