Maven Settings for multiple repositories

前端 未结 4 1927
無奈伤痛
無奈伤痛 2020-12-13 04:37

I have the following in settings.xml


       
          paid-jars         


        
4条回答
  •  [愿得一人]
    2020-12-13 05:11

    It's impossible to specify a dedicated repository to look up an artifact. Maven will look up all configured repositories one by one until the artifact is found. Just add both the central mirror and internal repository to the settings.xml and it will be okay.

    Read Maven guide to setup multiple repositories. In respect to the order of repositories, see this answer.

提交回复
热议问题