cheers Russell that worked. It would be good if someone could revise the M2 Guides in http://maven.apache.org/maven2/guides/introduction/introduction-to-repositories.html
So just to clarify, if in the POM.xml I add :- <repositories> <repository> <id>my-repo1</id> <name>your custom repo</name> <url>http://jarsm2.dyndns.dk</url> </repository> <repository> <id>my-repo2</id> <name>your custom repo</name> <url>http://jarsm2.dyndns.dk</url> </repository> </repositories> like in the http://maven.apache.org/maven2/guides/mini/guide-multiple-repositories.html guide what does that achieve ? and when is that repository used, as this is what I tried first. On 19/10/05, Russell, Mark <[EMAIL PROTECTED]> wrote: > Someone else may correct me if I'm wrong, but I believe that plugin > dependencies are retrieved from the "plugin" repository which is a > different section in the pom. At least this looks like the behavior that > I have seen. > > So you might try specifying a plugin repository as well that points to > your central repository. The only hitch to this is that you would have > to ensure that any plugins you use, and their dependencies are also in > your central repo > > > > Mark Russell > > -----Original Message----- > From: Pete Thomas [mailto:[EMAIL PROTECTED] > Sent: Wednesday, October 19, 2005 8:38 AM > To: Maven Users List > Subject: Re: Remote shared repository in M2 > > Hi Arik, > > I have tried changing the name to 'central' (lowercase) - no > difference unfortunately. > > Even tried a fuller spec, like the super POM entry ? > > <repositories> > <repository> > <id>central</id> > <name>Maven Repository Switchboard</name> > <layout>default</layout> > <url>file:///central/.m2/repository</url> > <snapshots> > <enabled>true</enabled> > </snapshots> > </repository> > </repositories> > > but it's still trying to connect, output has :- > > "From the specified remote repositories: > central (http://www.ibiblio.org.maven2) > snapshots (http://snapshots.maven.codehaus.org/maven2)" > > On 19/10/05, Arik Kfir <[EMAIL PROTECTED]> wrote: > > Hi, > > > > If you named it "central" then it would override ibiblio. > > > > As for sharing it - you can create a shared maven installation, in > > which the repo is defined (via m2/conf/settings.xml) > > > > On 10/19/05, Pete Thomas <[EMAIL PROTECTED]> wrote: > > > I am trying to use M2 but want to use a shared filesystem repository > > > where all JARS come from, with no internet access. > > > > > > So have read the Maven2 > > > > http://maven.apache.org/maven2/guides/mini/guide-multiple-repositories.h > tml > > > guide I added this to my > > > > > > POM.xml > > > > > > <repositories> > > > <repository> > > > <id>team-share-repo</id> > > > <name>shared m2 repository to avoid needing internet > access</name> > > > <url>file:///central/.m2/repository</url> > > > </repository> > > > </repositories> > > > > > > However it still goes out to the internet to get missing JARs. > > > > > > The guides seem to advise not putting this in settings.xml which I > can > > > see is more of a user setting. > > > > > > > --------------------------------------------------------------------- > > > 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] > > > > > > --------------------------------------------------------------------- > 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] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]