maven setting 配置
<?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 " target="_blank">http://maven.apache.org/xsd/settings-1.0.0.xsd">
<!-- 本地仓库地址 -->
<localRepository>/Users/xxx/.m2/repository</localRepository>
<pluginGroups></pluginGroups>
<proxies></proxies>
<!-- 发布包所需配置 -->
<!-- 登录私服的账号密码 -->
<!-- <servers>
<server>
<id>wdd</id>
<username>a-xxx</username>
<password>a-@@xxx</password>
</server>
</servers> -->
<!-- <mirrors> -->
<!-- <mirror>
<id>maven-public</id>
<mirrorOf>*</mirrorOf>
<url>http://nexus.longhu.net:8081/repository/maven-public/</url>
</mirror> -->
<!-- <mirror>
<id>nexus</id>
<name>AliyunMaven</name>
<mirrorOf>central</mirrorOf>
<url>http://maven.aliyun.com/nexus/content/groups/public</url>
</mirror> -->
<!-- </mirrors> -->
<profiles>
<profile>
<id>nexus</id>
<repositories>
<repository>
<id>huaweicloud</id>
<url>https://mirrors.huaweicloud.com/repository/maven/huaweicloudsdk/</url>
</repository>
<repository>
<id>maven-public</id>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
</profile>
<!-- 让idea的maven项目-pom.xml文件变成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>
</profiles>
<!-- 激活预设信息 -->
<activeProfiles>
<activeProfile>nexus</activeProfile>
</activeProfiles>
</settings>