I don't see what problems this would cause in practice. Can you elaborate?
I feel setting up local repository managers is an overkill. The need for connectionless building is ad hoc, we need to build on machine X today, then on machine Y the next day. I would like to be able to build without too much effort, not installing and configuring Artifactory or other repository manager each time. jvanzyl wrote: > > That is not a good idea. If you want to create a connectionless > environment that mocks the way a real environment works then using a > repository manager locally is the best option. > > Mixing the use of a single directory structure as your remote and > local repository is almost certainly going to get you into trouble. > > On 2009-10-19, at 7:41 AM, janneefef wrote: > >> >> Sounds very good, thanks! >> >> >> >> Nick Stolwijk-4 wrote: >>> >>> 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 >>>> >>>> >>> >>> >> >> -- >> View this message in context: >> http://www.nabble.com/Easiest-way-to-build-in-connectionless-environment--tp25922486p25959535.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 >> > > Thanks, > > Jason > > ---------------------------------------------------------- > Jason van Zyl > Founder, Apache Maven > http://twitter.com/jvanzyl > ---------------------------------------------------------- > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > > > -- View this message in context: http://www.nabble.com/Easiest-way-to-build-in-connectionless-environment--tp25922486p25974479.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