Maven配置阿里云镜像仓库

Posted yeyeyeid

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Maven配置阿里云镜像仓库相关的知识,希望对你有一定的参考价值。

配置文件:D:\MyDev\Maven\apache-maven-3.0.5\conf\settings.xml

    <mirrors>
        <mirror>
            <id>alimaven</id>
            <mirrorOf>central</mirrorOf>
            <name>aliyun maven</name>
            <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
        </mirror>
        <mirror>
            <!--This sends everything else to /public -->
            <id>nexus</id>
            <mirrorOf>*</mirrorOf>
            <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
        </mirror>
        <mirror>
            <!--This is used to direct the public snapshots repo in the profile below over to a different nexus group -->
            <id>nexus-public-snapshots</id>
            <mirrorOf>public-snapshots</mirrorOf>
            <url>http://maven.aliyun.com/nexus/content/repositories/snapshots/</url>
        </mirror>
    </mirrors>

以上是关于Maven配置阿里云镜像仓库的主要内容,如果未能解决你的问题,请参考以下文章

一键安装Maven--配置本地仓库--配置阿里云镜像

maven仓库配置阿里云镜像

20180602_Eclipse配置Maven的本地仓库和阿里云镜像

Maven之阿里云镜像仓库配置

Maven之阿里云镜像仓库配置

maven配置阿里云镜像仓库