Welcome

首页 / 软件开发 / JAVA / Maven settings.xml国内源配置文件示例

<?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>/Volumes/MacDATA/MAMP/Maven/repository</localRepository>

    <pluginGroups></pluginGroups>

    <proxies></proxies>

    <servers></servers>

    <mirrors>

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

        </mirror>

        <mirror>

            <id>ibiblio</id>

            <mirrorOf>central</mirrorOf>

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

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

        </mirror>

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

        <mirror>

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

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

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

            <mirrorOf>central</mirrorOf>

        </mirror>

    </mirrors>

    <profiles></profiles>

</settings>