Hello there!
Thank you for the link to the docs! Based on my understanding, this works by configuring it through the settings.xml file and the .m2 folder. Unless I'm missing something, that doesn't seem portable, especially in a parent-child relationship where child projects need to inherit the same configuration. For example, the rrf folder and the maven.config file in the .mvn folder would need to be duplicated or shared with child projects somehow. Am I missing something? Is there any mechanism to pass down a .m2 folder configuration to children repositories? Is that where a filter source SPI would need to be implemented via a custom plugin? Are you aware of any public plugin that does this? I was hoping to get to a state like this out of the box :) <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.13.2</version> <scope>test</scope> <repository>custom-repo</repository> </dependency> </dependencies> <repositories> <repository> <id>custom-repo</id> <url>https://custom.repository.url/maven2/</url> </repository> </repositories> Transitive dependencies would need to be explicitly defined, and/or Maven would need to be forced to pull only from the repository of the direct dependency, and/or other mechanisms would need to be used. I'd be okay with that. Ultimately, the goal is to have 100% control over the resolution of each dependency ---- On Fri, 14 Feb 2025 14:33:55 -0500 Tamás Cservenák <ta...@cservenak.net> wrote --- Howdy, see https://maven.apache.org/resolver/remote-repository-filtering.html demo is here: https://github.com/cstamas/rrf-demo For your case, you just want to ensure that group rules are disjunct (no overlapping). But, for central you most probably don't want this, T On Fri, Feb 14, 2025 at 8:30 PM Yeikel Santana <mailto:em...@yeikel.com> wrote: > > Hi all, > > Are you aware of any method to configure Maven to pull dependencies from a > specific repository? > > Say I have a build with n dependencies and n repositories configured where I > set where each dependency should be sourced from > > As far as I know, this is not possible out of the box as Maven scans each > repository in order until it finds a match. > > Is there a way to explicitly configure Maven to pull dependencies from a > specific source (or fail if unavailable) > > If not Maven 4, it'd be an interesting feature for future Maven versions > > Thank you --------------------------------------------------------------------- To unsubscribe, e-mail: mailto:users-unsubscr...@maven.apache.org For additional commands, e-mail: mailto:users-h...@maven.apache.org