You've already forked DataMate
69 lines
2.7 KiB
XML
69 lines
2.7 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<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">
|
|
<!-- 本地仓库路径(可选,默认在 ~/.m2/repository) -->
|
|
<localRepository>${user.home}/.m2/repository</localRepository>
|
|
|
|
<!-- 阿里云镜像配置 -->
|
|
<mirrors>
|
|
<mirror>
|
|
<id>aliyun-maven</id>
|
|
<name>Aliyun Maven Repository</name>
|
|
<url>https://maven.aliyun.com/repository/public</url>
|
|
<mirrorOf>central,jcenter,google,spring,spring-plugin,gradle-plugin</mirrorOf>
|
|
</mirror>
|
|
</mirrors>
|
|
|
|
<!-- 使用 Java 21 编译配置(可选,但推荐) -->
|
|
<profiles>
|
|
<profile>
|
|
<id>java21</id>
|
|
<activation>
|
|
<activeByDefault>true</activeByDefault>
|
|
<jdk>21</jdk>
|
|
</activation>
|
|
<properties>
|
|
<maven.compiler.source>21</maven.compiler.source>
|
|
<maven.compiler.target>21</maven.compiler.target>
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
</properties>
|
|
</profile>
|
|
<!-- 激活阿里云仓库(可选,增强依赖解析) -->
|
|
<profile>
|
|
<id>aliyun-repos</id>
|
|
<repositories>
|
|
<repository>
|
|
<id>aliyun-public</id>
|
|
<name>Aliyun Public Repository</name>
|
|
<url>https://maven.aliyun.com/repository/public</url>
|
|
<releases>
|
|
<enabled>true</enabled>
|
|
</releases>
|
|
<snapshots>
|
|
<enabled>false</enabled> <!-- 默认关闭快照版本 -->
|
|
</snapshots>
|
|
</repository>
|
|
</repositories>
|
|
<pluginRepositories>
|
|
<pluginRepository>
|
|
<id>aliyun-plugin</id>
|
|
<name>Aliyun Plugin Repository</name>
|
|
<url>https://maven.aliyun.com/repository/public</url>
|
|
<releases>
|
|
<enabled>true</enabled>
|
|
</releases>
|
|
<snapshots>
|
|
<enabled>false</enabled>
|
|
</snapshots>
|
|
</pluginRepository>
|
|
</pluginRepositories>
|
|
</profile>
|
|
</profiles>
|
|
|
|
<activeProfiles>
|
|
<activeProfile>aliyun-repos</activeProfile> <!-- 激活阿里云仓库 -->
|
|
<activeProfile>java21</activeProfile> <!-- 激活 Java 21 配置 -->
|
|
</activeProfiles>
|
|
</settings>
|