Make a copy of your settings file and add to that: <localRepository>/tmp/tmpRepository</localRepository> <mirrors> <mirror> <id>userrepository</id> <name>User Repository</name> <url>file://${user.home}/.m2/repository</url> <mirrorOf>*</mirrorOf> </mirror> </mirrors>
Now do a mvn install -s settings.xml and you have all the plugins and dependencies you need for the current build in /tmp/tmpRepository. Hth, Nick Stolwijk ~Java Developer~ IPROFS BV. Claus Sluterweg 125 2012 WS Haarlem http://www.iprofs.nl On Fri, Oct 16, 2009 at 11:42 AM, janneefef <jannepostilis...@gmail.com>wrote: > > > janneefef wrote: > > > > We're using maven day to day in normal developer environment. People do > > their builds on the local computer and dependencies get automatically > > fetched to the local repositories. > > > > Now occasionally there's need to build project X on some computer Y which > > has no internet connection. How can this be done most easily? Preferrably > > so that there's no need to install any additional software such as > > repository managers on target computer Y. > > > > Ideally there would be a simple zip packet with instructions 1-2-3... to > > build the software. > > > > One idea is to zip someone's local repository and explode it on target > > computer Y before maven buidling there. But this gets a bit messy if > local > > repository contains a lot of dependencies that are not used in project X. > > > > Is there any integrated support build into maven itself for this kind of > > use case? Or maybe some plugins that would help? > > > > One thing which would be helpful, would be if there was a command / plugin > which would dump all the dependencies to a hierachy, that could be copied > to > target computer's local repository. > -- > View this message in context: > http://www.nabble.com/Easiest-way-to-build-in-connectionless-environment--tp25922486p25922574.html > Sent from the Maven - Users mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > >