Setting a single server credentials in Maven for multiple repositories

前端 未结 3 1536
太阳男子
太阳男子 2021-02-19 01:11

Can I have multiple repositories in Maven settings.xml with a single server credentials?

We\'re using Maven 3.0.4 to deploy artifacts to Nexus pro version 2.2.1

3条回答
  •  感动是毒
    2021-02-19 01:27

    Seems I'm not allowed to comment because I'm not experienced enough. As if :) However, regarding the WARNING profiles.profile[development].repositories.repository.id must be unique, I found this to be two settings.xml files being found. One in a maven installation's ${maven-install}/conf/settings.xml as well as a one in ~/.m2/settings.xml. Decide which one you want and clean up the other.

提交回复
热议问题