配置maven使用私有仓库
<mirrors>
<!-- ### configured mirrors ### -->
<mirror>
<!--This sends central jars to /public -->
<id>central-mirror</id>
<mirrorOf>central</mirrorOf>
<url>https://nexus.ctwifi.cn.cn/nexus/repository/maven-public</url>
</mirror>
<mirror>
<!--This sends related release package to /release -->
<id>release-mirror</id>
<mirrorOf>*,!maven-snapshots</mirrorOf>
<url>https://nexus.ctwifi.cn.cn/nexus/repository/maven-releases</url>
</mirror>
</mirrors>
配置下载依赖包时使用代理服务器
<proxies>
<proxy>
<id>proxy</id>
<active>true</active>
<protocol>http</protocol>
<host>nexus.ctwifi.cn</host>
<port>8080</port>
<username>username</username>
<password>password</password>
<nonProxyHosts>docker-registry.default.svc|*.ctwifi.cn</nonProxyHosts>
</proxy>
</proxies>