Some more info about going offline: http://stubbisms.wordpress.com/2008/08/28/maven-is-to-ant-as-a-nail-gun-is-to-hammer-and-nails-you-need-to-move-on/
Paul Hepworth-4 wrote: > > Hi > > I'm trying to set up Maven for multiple users on a network not connected > to the internet. > I've run all the commands that we will need while connected to the net > so that I have the plugins and dependencies downloaded. > On a network drive //myserver/maven/repository I have placed all the > downloaded dependencies and plugins. > > In POM.xml I have the following specified: > ... > <repositories> > <repository> > <snapshots> > <enabled>false</enabled> > </snapshots> > <id>central</id> > <name>Maven Repository Switchboard</name> > <url>file:////myserver/maven/repository</url> > </repository> > </repositories> > <pluginRepositories> > <pluginRepository> > <releases> > <enabled>true</enabled> > <updatePolicy>never</updatePolicy> > </releases> > <snapshots> > <enabled>false</enabled> > </snapshots> > <id>central</id> > <name>Maven Plugin Repository</name> > <url>file:////myserver/maven/repository</url> > </pluginRepository> > </pluginRepositories> > ... > > However, when I run mvn install it can't find the plugins to download. > If I copy the org directory from my repository to my local repository, > everything works fine and all the additional plugins and dependencies > are downloaded from the network repository. > > Is there a trick I'm missing? I really don't want all the users to have > to create a .m2/repository directory and copy the org directory to it > before they can use Maven. > > Any suggestions?? > > Thanks > Paul > > > > This message should be regarded as confidential. If you have received this > email in error please notify the sender and destroy it immediately. > Statements of intent shall only become binding when confirmed in hard copy > by an authorised signatory. The contents of this email may relate to > dealings with other companies within the Detica Group plc group of > companies. > > Detica Limited is registered in England under No: 1337451. > > Registered offices: Surrey Research Park, Guildford, Surrey, GU2 7YP, > England. > > > > ----- ___________________________ http://stubbisms.wordpress.com http://stubbisms.wordpress.com -- View this message in context: http://www.nabble.com/Using-Maven-Offline-tp2337111p19194273.html Sent from the Maven - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]