Sonatype Nexus: How to set a single server credentials for multiple repositories in maven's settings.xml?

后端 未结 3 1579
旧巷少年郎
旧巷少年郎 2021-02-06 06:08

We have multiple repositories in Nexus (i.e., releases, snapshot and site). All 3 repos are under public group and users uses the same credentials to access all these repositori

3条回答
  •  轮回少年
    2021-02-06 06:31

    It looks like you mistaken things here. The given credentials and id's are for the distributionManagement and not for the access to the Nexus in this case. Apart from that you need three different username, password combinations cause you have three possible things releases, snapshots and site. So not a big deal.

    Aprt from that i would suggest to upgrade Maven into Maven 3.X line cause Maven 2.2.1 is a little bit out of date.

提交回复
热议问题