[ https://issues.apache.org/jira/browse/MNGSITE-430?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17284145#comment-17284145 ]
Herve Boutemy edited comment on MNGSITE-430 at 2/13/21, 9:05 AM: ----------------------------------------------------------------- a few pointers to understand how such order https://maven.apache.org/guides/mini/guide-multiple-repositories.html#repository-order is coded: - on local POM vs parent vs super POM: see model builder: https://maven.apache.org/ref/3.6.3/maven-model-builder/ - on dependencies: see Maven Resolvers's # dependency collector: https://maven.apache.org/resolver/maven-resolver-impl/xref/org/eclipse/aether/internal/impl/collect/DefaultDependencyCollector.html#L211 # and repositories aggregator: https://maven.apache.org/resolver/maven-resolver-impl/xref/org/eclipse/aether/internal/impl/DefaultRemoteRepositoryManager.html#L143 - on settings, documentation is sparse, but settings builder is the same concept as model builder: https://maven.apache.org/ref/3.6.3/maven-settings-builder/ was (Author: hboutemy): a few pointers to understand how such order is coded: - on local POM vs parent vs super POM: see model builder: https://maven.apache.org/ref/3.6.3/maven-model-builder/ - on dependencies: see Maven Resolvers's # dependency collector: https://maven.apache.org/resolver/maven-resolver-impl/xref/org/eclipse/aether/internal/impl/collect/DefaultDependencyCollector.html#L211 # and repositories aggregator: https://maven.apache.org/resolver/maven-resolver-impl/xref/org/eclipse/aether/internal/impl/DefaultRemoteRepositoryManager.html#L143 - on settings, documentation is sparse, but settings builder is the same concept as model builder: https://maven.apache.org/ref/3.6.3/maven-settings-builder/ > Clarify remote repository resolution order > ------------------------------------------ > > Key: MNGSITE-430 > URL: https://issues.apache.org/jira/browse/MNGSITE-430 > Project: Maven Project Web Site > Issue Type: Improvement > Reporter: Konrad Windszus > Assignee: Sylwester Lachiewicz > Priority: Major > > 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 in the top-level {{repositories}} element as > well as in profiles. 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) > 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)