Maven配置示例
<?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>./repo</localRepository>
<mirrors>
<!--阿里云仓库示例-->
<mirror>
<id>alimaven</id>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<mirrorOf>central</mirrorOf>
</mirror>
<!--私有仓库示例-->
<mirror>
<!-- 和server id相同-->
<id>haveways</id>
<mirrorOf>*</mirrorOf>
<url>http://192.168.1.131:8081/repository/maven-public/</url>
</mirror>
</mirrors>
<servers>
<server>
<id>haveways</id>
<username>admin</username>
<password>pwd</password>
</server>
</servers>
</settings>
上次更新: 2024/11/05, 08:29:31