Jireh程序猿的那些事 Jireh程序猿的那些事

记录分享生活、程序、信息的精彩人生

目录
maven国内镜像仓库速度飞起
/      

maven国内镜像仓库速度飞起

最近重启 SSM项目,装 Maven 的时候发现 jar 包一直下载不下来,连接丢失。发现之前用的 oschina 的库居然关闭,网上搜了下还有一个阿里云的,配置完速度不是一般的快,分分钟下完了。

在 conf 下 settings.xml 中 下面加入

<!-- 阿里云仓库 -->
        <mirror>
            <id>alimaven</id>
            <mirrorOf>central</mirrorOf>
            <name>aliyun maven</name>
            <url>http://maven.aliyun.com/nexus/content/repositories/central/</url>
        </mirror>
    
        <!-- 中央仓库1 -->
        <mirror>
            <id>repo1</id>
            <mirrorOf>central</mirrorOf>
            <name>Human Readable Name for this Mirror.</name>
            <url>http://repo1.maven.org/maven2/</url>
        </mirror>
    
        <!-- 中央仓库2 -->
        <mirror>
            <id>repo2</id>
            <mirrorOf>central</mirrorOf>
            <name>Human Readable Name for this Mirror.</name>
            <url>http://repo2.maven.org/maven2/</url>
        </mirror>

如果觉得这篇文章不错的话,请我喝一杯 咖啡☕吧
标题:maven国内镜像仓库速度飞起
作者:Jireh
地址:https://jireh.xyz/articles/2020/03/10/1583805906664.html
本作品由 Jireh 采用 署名 – 非商业性使用 – 禁止演绎 4.0 国际许可协议进行许可,转载请注明出处。