How to set order of repositories in Maven settings.xml

后端 未结 3 1108
隐瞒了意图╮
隐瞒了意图╮ 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 04:07

    None of these answers were correct in my case.. the order seems dependent on the alphabetical ordering of the tag, which is an arbitrary string. Hence this forced repo search order:

                
                    1_maven.apache.org
                      true  
                     true 
                    https://repo.maven.apache.org/maven2
                    default
                
    
                
                    2_maven.oracle.com
                      true  
                     false 
                    https://maven.oracle.com
                    default
                
    

提交回复
热议问题