maven settings.xml配置多个镜像地址

maven conf/settings.xml配置多个镜像地址防止部分项目无法拉取:

  <mirrors>
    

    <mirror>
        
        <id>nexus-aliyunid>
        <mirrorOf>*mirrorOf>
        <name>Nexus aliyunname>
        <url>http://maven.aliyun.com/nexus/content/groups/publicurl>
    mirror>

    <mirror>
        <id>oscid>
        <mirrorOf>*mirrorOf>
        <url>http://maven.oschina.net/content/groups/public/url>
    mirror>

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

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

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

    <mirror>    
      <id>ibiblioid>    
      <mirrorOf>centralmirrorOf>    
      <name>Human Readable Name for this Mirror.name>    
      <url>http://mirrors.ibiblio.org/pub/mirrors/maven2/url>    
    mirror>    

    <mirror>    
      <id>jboss-public-repository-groupid>    
      <mirrorOf>centralmirrorOf>    
      <name>JBoss Public Repository Groupname>    
      <url>http://repository.jboss.org/nexus/content/groups/publicurl>    
    mirror>  

    <mirror>    
      <id>JBossJBPMid>  
      <mirrorOf>centralmirrorOf> 
      <name>JBossJBPM Repositoryname>   
      <url>https://repository.jboss.org/nexus/content/repositories/releases/url>  
    mirror>  

你可能感兴趣的:(Java开发进阶)