You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Konrad Windszus (Jira)" <ji...@apache.org> on 2020/10/02 12:31:00 UTC

[jira] [Created] (MNG-6994) Carify remote repository resolution order

Konrad Windszus created MNG-6994:
------------------------------------

             Summary: Carify remote repository resolution order
                 Key: MNG-6994
                 URL: https://issues.apache.org/jira/browse/MNG-6994
             Project: Maven
          Issue Type: Improvement
          Components: Documentation:  General
            Reporter: Konrad Windszus


It is possible to declare remote repositories in {{settings.xml}} and {{pom.xml}}. While for the {{settings.xml}} it has to be given in a profile, for {{pom.xml}} it can be given only in the top-level {{repositories}} element. The order in which an artifact is tried to be resolved from the different remote repo is sometimes crucial to know (e.g. to speed up build times by first checking against remote repos having most of the artifacts like Maven Central)

I would assume the order is
1. First all repositories from pom.xml in declaration order
2. Then the repositories from settings.xml in declaration order (independent of repository or profile id).

It would be nice to document this in https://maven.apache.org/guides/introduction/introduction-to-repositories.html




--
This message was sent by Atlassian Jira
(v8.3.4#803005)