maven-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Schulte ...@schulte.it>
Subject Re: Question regarding repository overriding.
Date Thu, 15 Dec 2016 00:03:27 GMT
Am 12/14/16 um 20:41 schrieb Stephen Connolly:
> definition nearest to the project should win is the principle that has been
> in force...

That's what Maven core developers had in mind. Maven resolver developers
did the opposite. See this class:

<https://git-wip-us.apache.org/repos/asf?p=maven-resolver.git;a=blob;f=maven-resolver-impl/src/main/java/org/eclipse/aether/internal/impl/DefaultRemoteRepositoryManager.java;h=a1110b4347bc2a692de919a73edcf4020d07d740;hb=HEAD>

The dominant repository is the first declaration found. For example:

A (declares central) -> B (declares central) -> C (declares central)

The repository URL in use will always be the one declared for A. Only
mirror definitions of B and C will be merged. In Maven core the URL of
the central repository declaration of B and C would be used.

Regards,
-- 
Christian


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Mime
View raw message