<?xml version="1.0" encoding="UTF-8"?>
<!--
  使用方式：在项目根目录执行 mvn 即可（.mvn/maven.config 已配置 -gs -s）
  若单独指定：mvn -gs .mvn/global-settings-doge.xml -s settings-nexus.xml clean install
  必须配合 -gs，否则全局镜像 172.31.16.21 会拦截 nexus-doge 的请求
-->
<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 https://maven.apache.org/xsd/settings-1.2.0.xsd">

    <!-- 私库：http://43.99.99.42:18081  账号：admin/cv2026 -->

    <localRepository>${user.home}/.m2/repository</localRepository>

    <servers>
        <server>
            <id>nexus-doge</id>
            <username>admin</username>
            <password>cv2026</password>
        </server>
    </servers>

    <mirrors>
        <mirror>
            <id>aliyun</id>
            <name>Aliyun Maven Mirror</name>
            <mirrorOf>*,!nexus-doge,!spring-milestones</mirrorOf>
            <url>https://maven.aliyun.com/repository/public</url>
        </mirror>
    </mirrors>

    <profiles>
        <profile>
            <id>nexus-doge</id>
            <repositories>
                <repository>
                    <id>nexus-doge</id>
                    <name>Nexus Doge Private Repository</name>
                    <url>http://43.99.99.42:18081/repository/maven-releases/</url>
                    <releases><enabled>true</enabled></releases>
                    <snapshots><enabled>true</enabled></snapshots>
                </repository>
                <repository>
                    <id>central</id>
                    <url>https://maven.aliyun.com/repository/public</url>
                    <releases><enabled>true</enabled></releases>
                    <snapshots><enabled>false</enabled></snapshots>
                </repository>
                <repository>
                    <id>spring-milestones</id>
                    <url>https://repo.spring.io/milestone</url>
                    <releases><enabled>true</enabled></releases>
                    <snapshots><enabled>false</enabled></snapshots>
                </repository>
            </repositories>
            <pluginRepositories>
                <pluginRepository>
                    <id>nexus-doge</id>
                    <url>http://43.99.99.42:18081/repository/maven-releases/</url>
                    <releases><enabled>true</enabled></releases>
                    <snapshots><enabled>true</enabled></snapshots>
                </pluginRepository>
                <pluginRepository>
                    <id>central</id>
                    <url>https://maven.aliyun.com/repository/public</url>
                    <releases><enabled>true</enabled></releases>
                    <snapshots><enabled>false</enabled></snapshots>
                </pluginRepository>
            </pluginRepositories>
        </profile>
    </profiles>

    <activeProfiles>
        <activeProfile>nexus-doge</activeProfile>
    </activeProfiles>
</settings>
