Hi,

@Paul:

This would also have downsides like having to bind yourself to a process
where you need to download the remote repository's index at least once.
These are usually not too small... If I recall correctly, Maven Central's
index was something like 100 MB in .gz. (I'm talking off the top of my
head, but I did some recent work on the maven-indexer and downloading the
index from Central in order to run some tests took *a while* and we
wouldn't want people to start saing: "Oh, Maven was this slow build tool
(had to resolve a million dependencies) and now it's even slower. We should
switch to some-next-cool-build-tool-goes-here") (I'm referring to Maven as
slow not because it is, but because a lot of people have the feeling it
takes ages to build some larger projects due to the resolution of
dependencies). You will also need to update this local index on a regular
basis... Once a day at the very least. I'm not quite convinced this would
be accepted well by everyone. There could also be an option where
dependencies could be resolved on a mixed basis -- if you have an index,
use/update it, if an option is specified; ignore it, if the option is not
specified...

I'm not saying the current model is the best, I'm just trying to illustrate
the downsides of such a switch.

Kind regards,

Martin





On Mon, Jul 7, 2014 at 3:35 PM, Paul Benedict <pbened...@apache.org> wrote:

> I agree with anyone/everyone who says we should get rid of the idea of a
> local repository. It should just be looked at as a local "remote" repo with
> some default intermediary repository manager built-in to Maven. Jason, is
> that what you're referring to?
>
>
> Cheers,
> Paul
>
>
> On Mon, Jul 7, 2014 at 9:31 AM, Jason van Zyl <ja...@takari.io> wrote:
>
> > 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 <dk...@apache.org> 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 <rfscho...@apache.org>
> > 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 <
> > m...@talios.com>:
> > >>
> > >>> 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: dev-unsubscr...@maven.apache.org
> > >>> For additional commands, e-mail: dev-h...@maven.apache.org
> > >>
> > >> ---------------------------------------------------------------------
> > >> To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
> > >> For additional commands, e-mail: dev-h...@maven.apache.org
> > >>
> > >
> > > --
> > > Daniel Kulp
> > > dk...@apache.org - http://dankulp.com/blog
> > > Talend Community Coder - http://coders.talend.com
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
> > > For additional commands, e-mail: dev-h...@maven.apache.org
> > >
> >
> > 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
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
>

Reply via email to