zoukankan      html  css  js  c++  java
  • maven:多个镜像配置

    <mirrors>
        
        <mirror>
            <id>nexus-aliyun</id>
            <mirrorOf>nexus-aliyun</mirrorOf>
            <name>Nexus aliyun</name>
            <url>http://maven.aliyun.com/nexus/content/groups/public</url>
        </mirror>
    
        <mirror>
            <id>central</id>
            <name>Maven Repository Switchboard</name>
            <url>http://repo1.maven.org/maven2/</url>
            <mirrorOf>central</mirrorOf>
        </mirror>
    
        <mirror>
            <id>repo2</id>
            <mirrorOf>central</mirrorOf>
            <name>Human Readable Name for this Mirror.</name>
            <url>http://repo2.maven.org/maven2/</url>
        </mirror>
        
        <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>
    
    </mirrors>

    第一个镜像配置的是阿里云的,在国内算速度比较快的,但是不能把<mirrorOf>nexus-aliyun</mirrorOf>  写成<mirrorOf>*</mirrorOf> ,这样的话阿里镜像库就代理了所有的仓库,结果是有些资源无法找到(阿里库里面资源不全)。

  • 相关阅读:
    jsp
    session
    cookie
    异常
    静态导入 可变参数与collectiions集合工具 集合嵌套
    HashMap和LinkedHashMap
    map集合
    匿名对像,,,内部类
    电脑版校网登录助手
    360舵机与180舵机
  • 原文地址:https://www.cnblogs.com/huiy/p/8184580.html
Copyright © 2011-2022 走看看