zoukankan      html  css  js  c++  java
  • [Java] Maven 镜像仓库

    配置

    修改maven根目录下的conf文件夹中的setting.xml文件.

    阿里云

      <mirrors>
        <mirror>
          <id>alimaven</id>
          <name>aliyun maven</name>
          <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
          <mirrorOf>central</mirrorOf>        
        </mirror>
      </mirrors>

    这个速度超快。

    OSChina

    <mirror>
          <id>CN</id>
          <name>OSChina Central</name>
          <url>http://maven.oschina.net/content/groups/public/</url>
          <mirrorOf>central</mirrorOf>
    </mirror>

    谷歌 Google

        <mirror>
          <id>google-maven-central</id>
          <name>Google Maven Central</name>
          <url>https://maven-central.storage.googleapis.com</url>
          <mirrorOf>central</mirrorOf>
        </mirror>

    开源中国 - Nexus osc

        <mirror>
          <id>nexus-osc</id>
          <mirrorOf>*</mirrorOf>
          <name>Nexus osc</name>
          <url>http://maven.oschina.net/content/groups/public/</url>
        </mirror>

    更新频率据说是每日一次。

    Net.cn 

    <mirror>
        <id>net-cn</id>
        <mirrorOf>central</mirrorOf>
        <name>Human Readable Name for this Mirror.</name>
        <url>http://maven.net.cn/content/groups/public/</url>   
     </mirror>

    MvnRepository

    <mirror>
        <id>mvn-com</id>
        <mirrorOf>central</mirrorOf>
        <name>MVN Repository</name>
        <url>http://mvnrepository.com/</url>   
     </mirror>

    其它国外镜像

    ibiblio.org

    <mirror>  
         <id>ibiblio</id>  
         <mirrorOf>central</mirrorOf>  
         <name>ibiblio Mirror of http://repo1.maven.org/maven2/</name>  
         <url>http://mirrors.ibiblio.org/pub/mirrors/maven2/</url>  
    </mirror>  

     jboss

    <mirror>  
         <id>jboss-public-repository-group</id>  
         <mirrorOf>central</mirrorOf>  
         <name>JBoss Public Repository Group</name>  
         <url>http://repository.jboss.org/nexus/content/groups/public</url>  
    </mirror>

    repo2

    <mirror>
      <id>repo2</id>
      <mirrorOf>central</mirrorOf>
      <name>Human Readable Name for this Mirror.</name>
      <url>http://repo2.maven.org/maven2/</url>
    </mirror>

    uk.maven.org

    <mirror>
      <id>ui</id>
      <mirrorOf>central</mirrorOf>
      <name>Human Readable Name for this Mirror.</name>
     <url>http://uk.maven.org/maven2/</url>
    </mirror>
  • 相关阅读:
    解读express框架
    mongodb学习
    Express框架
    如何添加第三方路由进度条?
    商品删除、添加login和register组件
    商品编辑实操(上文三种方法验证)
    实现添加商品页面,并且构建路由
    与json-server对接,为组件提供CRUD API功能
    json-server学习
    jQuery核心
  • 原文地址:https://www.cnblogs.com/yangyxd/p/5996747.html
Copyright © 2011-2022 走看看