• Maven修改镜像仓库地址


    修改maven根目录下的conf文件夹中的setting.xml文件,如果你修改了默认仓库的存储位置,即.m2文件夹下没有本地仓库,但是有个setting.xml文件,那就修改这个文件就可以。

    具体内容和示意图如下:


    1. <mirror>
    2.   <id>alimaven</id>
    3.   <name>aliyun maven</name>
    4.   <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
    5.   <mirrorOf>central</mirrorOf>
    6. </mirror>


    Maven 中央存储库 – http://search.maven.org


    #收集的比较快的maven仓库
    http://maven.wso2.org/nexus/content/groups/public/
    http://jcenter.bintray.com/
    http://maven.antelink.com/content/repositories/central/
    http://nexus.openkoala.org/nexus/content/groups/Koala-release/
    http://maven.tmatesoft.com/content/groups/public/
    http://mavensync.zkoss.org/maven2/
    http://maven.springframework.org/release/

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


    其他镜像地址:

    oschina

    1. <mirror>
    2.     <id>CN</id>
    3.     <name>OSChina Central</name>                                   
    4.     <url>http://maven.oschina.net/content/groups/public/</url>
    5.     <mirrorOf>central</mirrorOf>
    6. </mirror>

    repo2

    1. <mirror>  
    2.     <id>repo2</id>  
    3.     <mirrorOf>central</mirrorOf>  
    4.     <name>Human Readable Name for this Mirror.</name>  
    5.     <url>http://repo2.maven.org/maven2/</url>  
    6. </mirror>

    net-cn 

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

    uk

    1. <mirror>  
    2.     <id>uk</id>  
    3.     <mirrorOf>central</mirrorOf>  
    4.     <name>Human Readable Name for this Mirror.</name>  
    5.     <url>http://uk.maven.org/maven2/</url>  
    6. </mirror>

    ibiblio 

    1. <mirror>  
    2.     <id>ibiblio</id>  
    3.     <mirrorOf>central</mirrorOf>  
    4.     <name>Human Readable Name for this Mirror.</name>  
    5.     <url>http://mirrors.ibiblio.org/pub/mirrors/maven2/</url>  
    6. </mirror>

    jboss

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




  • 相关阅读:
    使用VS2013自带的PreEmptive Dotfuscator and Analytis来混淆C#代码
    jQuery发布1.9正式版,最后支持IE 6/7/8
    response的contentType的类型值Response.ContentType
    svn 切出指定版本、更改版本名称、删除分支
    js中url解码
    如何判断一个变量是否是utf-8
    mysql explain详解
    PHP Warning: date() [function.date]: It is not safe to rely on the system's timezone
    winScp上传文件时,如何过滤制定文件
    winScp如何通过隧道代理进行远程连接
  • 原文地址:https://www.cnblogs.com/jeffen/p/6129890.html
Copyright © 2020-2023  润新知