jdk默认版本:1.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>${user.home}/.m2/repository</localRepository>
<interactiveMode>true</interactiveMode>
<offline>false</offline>
<mirrors>
<mirror>
<id>tencent</id>
<mirrorOf>central</mirrorOf>
<name>Tencent Cloud Maven Mirror</name>
<url>https://mirrors.cloud.tencent.com/nexus/repository/maven-public/</url>
</mirror>
</mirrors>
<profiles>
<profile>
<id>default</id>
<activation>
<activeByDefault>true</activeByDefault>
</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>
<pluginGroups>
<!-- 自定义插件组 -->
<pluginGroup>com.example.custom.plugins</pluginGroup>
</pluginGroups>
<proxies>
<!-- 代理配置 -->
<!--
<proxy>
<id>example-proxy</id>
<active>true</active>
<protocol>http</protocol>
<host>proxy.example.com</host>
<port>8080</port>
<username>proxy-user</username>
<password>proxy-password</password>
<nonProxyHosts>localhost|*.example.com</nonProxyHosts>
</proxy>
-->
</proxies>
<servers>
<!-- 服务器配置 -->
<!--
<server>
<id>example-server</id>
<username>server-user</username>
<password>server-password</password>
</server>
-->
</servers>
</settings>