Using multiple repositories in Maven

后端 未结 4 1110
逝去的感伤
逝去的感伤 2021-01-12 06:57

I have a project that uses an internal repository and the central repository. Is there a way I can configure the settings.xml such that I can use both instead of just one? W

4条回答
  •  误落风尘
    2021-01-12 07:32

    Your mirror directive is currently mirroring everything. You can exclude named repositories thus:

    !myExcludedRepo,*
    

    The above mirrors everything except the repository named myExcludedRepo.

    Here's the Maven guide for mirroring. Note particularly the section marked Advanced. There are a lot of capabilities there.

提交回复
热议问题