How to set order of repositories in Maven settings.xml

后端 未结 3 1111
隐瞒了意图╮
隐瞒了意图╮ 2020-11-27 03:17

I have 3 repositories in my settings.xml because I need artifacts from all of them. Whenever a dependency is not found, Maven tries

Downloading: http://some.         


        
3条回答
  •  盖世英雄少女心
    2020-11-27 03:58

    As far as I know, the order of the repositories in your pom.xml will also decide the order of the repository access.

    As for configuring repositories in settings.xml, I've read that the order of repositories is interestingly enough the inverse order of how the repositories will be accessed.

    Here a post where someone explains this curiosity:
    http://community.jboss.org/message/576851

提交回复
热议问题