Welcome

首页 / 软件开发 / JAVA / Maven国内源配置(华为云、阿里云。。。)

Maven国内源配置(华为云、阿里云。。。)


<?xml version="1.0" encoding="UTF-8"?>

<settings

    xmlns="http://maven.apache.org/SETTINGS/1.2.0"

    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.2.0 http://maven.apache.org/xsd/settings-1.2.0.xsd">

    <localRepository>/Users/admin/Downloads/Maven3.8.8/repository</localRepository>

    <pluginGroups></pluginGroups>

    <proxies></proxies>

    <servers></servers>

    <mirrors>

        <mirror>

            <id>huaweicloud</id>

            <mirrorOf>central</mirrorOf>

            <name>华为云仓库</name>

            <url>https://repo.huaweicloud.com/repository/maven</url>

        </mirror>

        <mirror>

            <id>aliyunmaven</id>

            <mirrorOf>*</mirrorOf>

            <name>阿里云公共仓库</name>

            <url>https://maven.aliyun.com/repository/public</url>

        </mirror>

        <mirror>

            <id>central</id>

            <name>Maven Repository Switchboard</name>

            <url>https://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>https://repo2.maven.org/maven2/</url>

        </mirror>

        <mirror>

            <id>ibiblio</id>

            <mirrorOf>central</mirrorOf>

            <name>Human Readable Name for this Mirror.</name>

            <url>https://mirrors.ibiblio.org/pub/mirrors/maven2/</url>

        </mirror>

        <!-- 中央仓库在中国的镜像 -->

        <mirror>

            <id>maven.net.cn</id>

            <name>oneof the central mirrors in china</name>

            <url>https://maven.net.cn/content/groups/public/</url>

            <mirrorOf>central</mirrorOf>

        </mirror>

    </mirrors>

    <profiles></profiles>

</settings>