https://www.cnblogs.com/wotoufahaiduo/p/11223834.html
Sonatype Nexus Repository Manage
admin
ccf0cab6-f1f6-436a-b97a-4a7e49740edc admin.pasword 默认密码
123456
指定容器与主机的挂载目录映射
<servers>
<server>
<id>nexus-releases</id>
<username>admin</username>
<password>admin123</password>
</server>
<server>
<id>nexus-snapshots</id>
<username>admin</username>
<password>admin123</password>
</server>
</servers>
< repositories >
POM配置
<repositories> <repository> <id>nexus</id> <name>Nexus Repository</name> <url>http://192.168.172.141:8081/repository/maven-public/</url> <snapshots> <enabled>true</enabled> </snapshots> <releases> <enabled>true</enabled> </releases> </repository> </repositories> <pluginRepositories> <pluginRepository> <id>nexus</id> <name>Nexus Plugin Repository</name> <url>http://192.168.172.141:8081/repository/maven-public/</url> <snapshots> <enabled>true</enabled> </snapshots> <releases> <enabled>true</enabled> </releases> </pluginRepository> </pluginRepositories>
可以看到 上面的url
节点填写的都是maven-public
组的url,而maven-releases
,maven-snapshots
,third
都包含在maven-public
中,所以能取到三个仓库的内容。