温馨提示:记得备份原文件哦~ 修改本地仓库地址哦~
<?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 http://maven.apache.org/xsd/settings-1.0.0.xsd">
<!-- 本地仓库地址 -->
<localRepository>D:\develop\Apache-Maven\maven-repository-3.6.3</localRepository>
<!-- 是否与用户开启交互模式,默认true -->
<interactiveMode>true</interactiveMode>
<!-- 离线模式,默认false -->
<offline>false</offline>
<!-- 插件 -->
<pluginGroups>
</pluginGroups>
<!-- 代理配置 -->
<proxies>
</proxies>
<!-- 私服账号密码 -->
<servers>
<!-- 私服 -->
<server>
<id>私服ID</id>
<username>私服账号</username>
<password>私服密码</password>
</server>
</servers>
<!-- 镜像拦截器 -->
<!-- <mirrors>
<mirror>
<id>huaweicloud</id>
<mirrorOf>*</mirrorOf>
<url>https://mirrors.huaweicloud.com/repository/maven</url>
</mirror>
<mirror>
<id>aliyunmaven</id>
<mirrorOf>*</mirrorOf>
<url>https://maven.aliyun.com/repository/public</url>
</mirror>
<mirror>
<id>nexus-tencentyun</id>
<mirrorOf>*</mirrorOf>
<url>http://mirrors.cloud.tencent.com/nexus/repository/maven-public</url>
</mirror>
</mirrors> -->
<!-- 配置环境 -->
<profiles>
<!-- JDK1.8 -->
<profile>
<id>jdk-1.8</id>
<activation>
<activeByDefault>true</activeByDefault>
<jdk>1.8</jdk>
</activation>
<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.compilerVersion>1.8</maven.compiler.compilerVersion>
</properties>
</profile>
<!-- Maven仓库 -->
<profile>
<id>自定义ID</id>
<!-- IOT release 版本 -->
<repositories>
<repository>
<id>私服ID</id>
<url>私服链接</url>
</repository>
</repositories>
</profile>
<profile>
<id>huawei</id>
<repositories>
<repository>
<id>huaweicloud</id>
<url>https://mirrors.huaweicloud.com/repository/maven</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
</repositories>
</profile>
<profile>
<id>alibaba</id>
<repositories>
<repository>
<id>aliyunmaven</id>
<url>https://maven.aliyun.com/repository/public</url>
<release>
<enabled>true</enabled>
</release>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
</repositories>
</profile>
<profile>
<id>tencent</id>
<repositories>
<repository>
<id>nexus-tencentyun</id>
<url>http://mirrors.cloud.tencent.com/nexus/repository/maven-public</url>
<release>
<enabled>true</enabled>
</release>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
</repositories>
</profile>
<profile>
<id>spring</id>
<repositories>
<repository>
<id>repository.spring.milestone</id>
<url>https://repo.spring.io/milestone</url>
<release>
<enabled>true</enabled>
</release>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
</repositories>
</profile>
</profiles>
<!-- 激活仓库 -->
<activeProfiles>
<activeProfile>huawei</activeProfile>
<activeProfile>alibaba</activeProfile>
<activeProfile>tencent</activeProfile>
<activeProfile>spring</activeProfile>
<activeProfile>自定义ID</activeProfile>
</activeProfiles>
</settings>