I have succesfully done something along the way you are doing it but my 'local' repository is a maven proxy. It worked best if I gave my repository the same id as central. That is rename your <id>local</id> to <id>central</id>. And I am sure it works for me because we have no direct access to internet.
Good luck /Konstantin On 4/11/06, EJ Ciramella <[EMAIL PROTECTED]> wrote: > > Yeah, I'm NOT using the proxy atm - I still don't see benefit. > > And for maven to flip flop and no one has an explanation, that's just > nuts. > > I can SEE the version on MY webserver it's looking for, yet it > disregards that version and goes to: > > Downloading: > http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-clean-plugi > n/2.1/maven-clean-plugin-2.1.pom > > But a second later I see: > > Downloading: > http://build.corp.upromise.com/mavenrepository/org/apache/maven/plugins/ > maven-clean-plugin/2.1/maven-clean-plugin-2.1.jar > > WHY?! > > I copy from the local .m2/repository directory to my internal site, > delete the .m2 directory, re-run and STILL it does this. > > Why does maven look in ONE place for the pom file, but then another for > the actual jar? > > And there still hasn't been a satisfactory explanation of when to use > > <repositories> > <repository> > > And when to use: > > <pluginRepositories> > <pluginRepository> > > I'm not convinced that maven can't do what I want, I'm simply convinced > that the documentation is skimpy at best and the only source for a > configuration reference is this mailing list. > > -----Original Message----- > From: Wayne Fay [mailto:[EMAIL PROTECTED] > Sent: Tuesday, April 11, 2006 3:12 PM > To: Maven Users List > Subject: Re: Internal (intranet) repositories > > I've suggested this settings.xml mirror approach multiple times, but > it has not been an acceptable answer thus far. He wants to configure > "everything" in the project pom.xml file, and nothing in settings.xml. > > I think the answer for now is... What you want to do is not currently > possible. Please feel free to contribute code to make it possible for > future versions of M2. > > Wayne > > On 4/11/06, Gareth Western <[EMAIL PROTECTED]> wrote: > > 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] > >
