我已将以下配置文件添加到我的 pom.xml 中:
<profiles>
<profile>
<id>nexus</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<distributionManagement>
<repository>
<id>nexusid1</id>
<url>http://</url>
</repository>
<snapshotRepository>
<id>nexusid2</id>
<url>http://</url>
</snapshotRepository>
</distributionManagement>
</profile>
</profiles>
我已添加到 settings.xml :
<server>
<id>nexusid1</id>
<username>username</username>
<password>passwword</password>
</server>
要将项目添加到我使用的 Nexus 存储库mvn deploy
在这种情况下我需要使用个人资料吗?如果我想部署到nexusid2,这是否意味着我需要向settings.xml 添加一个新的服务器条目,即使nexusid1 和nexusid2 的用户名/密码相同?