Only thing I can think is the following... Unless you "lock down" versions in your pom with [1.2.3] style versions for dependencies, Maven likes to run out to Central to pull down the latest code for all dependencies (both declared outright and transitive)... So it always wants to check Central to see if a new version is available, or a newer snapshot.
So Maven runs out to Central, sees that the most recent version is in fact the one you already have by pulling the pom and confirming versions, and then executes a procedure like "for each dependency binary, check local; if exist use it; else download from repo and then use it". So in this manner, I can see why Maven might check central poms but use local binaries. (This is all theory, I haven't dug into the code, I'm happy if a real Maven dev gives a better response.) Wayne On 4/11/06, EJ Ciramella <[EMAIL PROTECTED]> wrote: > So honestly - why does maven go to the remote server for the pom but > then takes everything else from the specified "local" repository? > > -----Original Message----- > From: Wayne Fay [mailto:[EMAIL PROTECTED] > Sent: Tuesday, April 11, 2006 4:29 PM > To: Maven Users List > Subject: Re: Internal (intranet) repositories > > Sounds like a good candidate for a UPromise-specific Maven2 installer > made through something like InstallAnywhere Now or IzPack > (http://www.izforge.com/izpack/). > > Just include the settings.xml file in the install bundle. > > And then for more fun, block repo1.maven.org in your corporate > firewall, to keep rogue developers from modifying their settings.xml > file. > > Wayne > > On 4/11/06, EJ Ciramella <[EMAIL PROTECTED]> wrote: > > I won't work out the settings.xml file - this change must apply to > all. > > > > Mgmt has asked specifically to disallow maven to down load > > automatically. > > > > > > > > -----Original Message----- > > From: Gareth Western [mailto:[EMAIL PROTECTED] > > Sent: Tuesday, April 11, 2006 3:06 PM > > To: Maven Users List > > Subject: Re: Internal (intranet) repositories > > > > Hi EJ, > > > > Apologies if this has already been suggested (I've already deleted > most > > of > > this thread), but have you tried adding the following to a file named > " > > settings.xml" in your ${user.home}\.m2 directory (e.g. "C:\documents > and > > settings\gareth\.m2\settings.xml"): > > > > <settings> > > <mirrors> > > <mirror> > > <id>my-repo</id> > > <name>Internal mirror of > > http://build.corp.upromise.com/mavenrepository > > </name> > > <url>http://build.corp.upromise.com/mavenrepository</url> > > <mirrorOf>central</mirrorOf> > > </mirror> > > </mirrors> > > </settings> > > > > ? > > > > If you do that you shouldn't have to add anything to project POM > > (although > > it does rely on each user having a "settings.xml" with these settings > in > > it). > > > > --------------------------------------------------------------------- > > 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] > >
