Yup, this is essentially what routing rules are in Nexus. Would likely make sense to move this logic into Maven to speed up lookups.
I also think trying to have each dependency mark where it comes from as cumbersome. On Jul 7, 2014, at 9:45 AM, Daniel Kulp <[email protected]> wrote: > > Personally, I’ve always wondered if the <repository> entries should have an > <includes> and <excludes> tags to say this repository should only be searched > for these artifacts (like org.apache.*:*). Should help speed the builds by > not looking at every repository for every artifact when we know they are in > central. > > Dan > > > > On Jul 4, 2014, at 12:56 PM, Robert Scholte <[email protected]> wrote: > >> In addition to our hangout session: isn't it weird that for a dependency >> Maven can go over all the repositories, even though when an extra repository >> is added to the pom.xml, the developer knows exactly which dependencies >> should make use of that repository. >> >> To me it would make sense if you could add a reference to the repository per >> dependency, like >> >> <dependency> >> <groupId>com.acme</groupId> >> <artifactId>specialtool</artifactId> >> <version>1.0-alpha-1</version> >> <repositoryId>acme-store</repositoryId> <!-- only look in this repo, I know >> it's not in Central --> >> </dependency> >> >> Robert >> >> Op Thu, 03 Jul 2014 00:37:17 +0200 schreef Mark Derricutt <[email protected]>: >> >>> On 3 Jul 2014, at 6:25, Robert Scholte wrote: >>> >>>> This is probably more than enough for tomorrow. >>> >>> A discussion on a merits and flaws of <repositories> (when combined with >>> mirrors) is also warranted after some previous discussion on the list. >>> >>> Mark >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: [email protected] >>> For additional commands, e-mail: [email protected] >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >> > > -- > Daniel Kulp > [email protected] - http://dankulp.com/blog > Talend Community Coder - http://coders.talend.com > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > Thanks, Jason ---------------------------------------------------------- Jason van Zyl Founder, Apache Maven http://twitter.com/jvanzyl http://twitter.com/takari_io --------------------------------------------------------- The modern conservative is engaged in one of man's oldest exercises in moral philosophy; that is, the search for a superior moral justification for selfishness. -- John Kenneth Galbraith
