| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- 观澜 · Java 后端**联网构建**设置(P12-a)。
- 背景(2026-09-29 实逮纠正):上一轮判"Maven Central 不可达"是**瞬时探测失败**,实际可达
- (repo.maven.apache.org / maven.aliyun.com / repo.huaweicloud.com / mirrors.cloud.tencent.com 均 200)。
- 本文件用于:把用户令要求补齐的 spring-cloud-starter-gateway · spring-boot-starter-security ·
- OAuth2/JWT 等构件**下到用户本地仓**(C:\Users\<用户>\.m2\repository),之后仍可用 settings-offline.xml 离线编译。
- 用法:mvn -s app_backEnd/backend-java/settings-online.xml -DskipTests compile
- (settings.xml 里 localRepository 用 ${user.home} 写法 —— 换机不写死盘符)
- 镜像优先阿里云 public(聚合 Central + Spring 等),失败再回落到 Central。
- -->
- <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 https://maven.apache.org/xsd/settings-1.0.0.xsd">
- <localRepository>${user.home}/.m2/repository</localRepository>
- <mirrors>
- <mirror>
- <id>aliyun-public</id>
- <name>Aliyun public (Central + Spring + others)</name>
- <url>https://maven.aliyun.com/repository/public</url>
- <mirrorOf>central</mirrorOf>
- </mirror>
- </mirrors>
- <profiles>
- <profile>
- <id>guanlan-online</id>
- <repositories>
- <repository>
- <id>central-direct</id>
- <url>https://repo.maven.apache.org/maven2</url>
- <releases><enabled>true</enabled></releases>
- <snapshots><enabled>false</enabled></snapshots>
- </repository>
- <repository>
- <id>aliyun-public-direct</id>
- <url>https://maven.aliyun.com/repository/public</url>
- <releases><enabled>true</enabled></releases>
- <snapshots><enabled>false</enabled></snapshots>
- </repository>
- </repositories>
- <pluginRepositories>
- <pluginRepository>
- <id>aliyun-public-plugins</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>guanlan-online</activeProfile>
- </activeProfiles>
- </settings>
|