Ah ok makes sense. While this would work, it still doesn't explain why maven is trying to redownload an artifact that is already in my local repo. I'm reading the maven definitive guide and it hasnt explained much about how maven resolves dependencies on the wire. However haven't reached the nexus repo chapter yet. Also the definitive guide is maven 2 while I'm using 3 so I'm sure there is a lot missing.
Ill try it out and see what happens. Thanks! On Tuesday, September 24, 2013, Ron Wheeler wrote: > I think that he was suggesting that you install it as a proxy so that it > would not contain any actual artifacts. > In the office, it would proxy your real Nexus and when you are off-line it > would act as local repo that would not actually resolve anything but would > keep your settings.xml happy. It would point to your office Nexus which > would be available at the office and off-line at home. > > I think that this is what was being proposed and would not break the > "Maven way". > > You would still do your deploys to the corporate nexus. > Your builds would all be portable since they have no idea about how your > settings.xml has added another proxy layer. > > Does this help a bit? > > Ron > > > On 24/09/2013 8:19 AM, Jamie Archibald wrote: > >> That seems like overkill. The whole point to a local maven repository is >> to >> provide caching so you don't have to continually redownload load >> artifacts. >> Also, installing a nexus repo on my machine seems counterproductive from >> "the maven way" which includes portable builds. >> >> Unless I'm completely wrong? >> >> Jamie >> >> >> >> On Tuesday, September 24, 2013, Markku Saarela wrote: >> >> Install local Nexus in you machine and add work Nexus as proxy repository >>> in it and then only one setting.xml works. >>> It also gives you freedom to work totally offline. >>> >>> Cheers, >>> Markku >>> On 09/24/2013 03:31 AM, Jamie Archibald wrote: >>> >>> I typically work behind a Nexus server at work which I use a >>>> settings.xml >>>> file. When I come home I remove the settings.xml from my m2 folder. >>>> >>>> As soon as I do this I can no longer resolve my maven dependencies that >>>> are >>>> my work modules, even though they show up in my m2 repo. >>>> >>>> When I put the settings.xml back into my m2 repo the dependencies can >>>> resolve. >>>> >>>> This happens with both snapshots and non-snapshots. >>>> >>>> What am I missing here? >>>> >>>> >>>> ------------------------------****----------------------------** >>> --**--------- >>> To unsubscribe, e-mail: [email protected] >>> For additional commands, e-mail: [email protected] >>> >>> >>> > > -- > Ron Wheeler > President > Artifact Software Inc > email: [email protected] > skype: ronaldmwheeler > phone: 866-970-2435, ext 102 > > > ------------------------------**------------------------------**--------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > -- Jamie
