我得到了我的问题的答案,这可以通过在 repositories 标签中的 maven 存储库的 pom.xml 中添加不同的 nexus 存储库来完成,例如
<repository>
<id>repositryID</id>
<name>repositoryName</name>
<url>http://NexusserverRepositoryHOST1:PORT/nexus/content/repositories/thirdparty/</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
<repository>
<id>repositryID</id>
<name>repositoryName</name>
<url>http://NexusserverRepositoryHOST2:PORT/nexus/content/repositories/thirdparty/</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>