Re: issues when disabling settings.xml

2013-09-24 Thread Jamie Archibald
Ok this makes perfect sense now. Thanks for the help. Jamie On Tuesday, September 24, 2013, Stephen Connolly wrote: > Maven keeps track of the source of the artifacts that it downloads. > > When you swap out your settings.xml, then the source changes from your > corporate proxy to maven centr

Re: issues when disabling settings.xml

2013-09-24 Thread Stephen Connolly
Maven keeps track of the source of the artifacts that it downloads. When you swap out your settings.xml, then the source changes from your corporate proxy to maven central. Thus Maven expects that the artifacts in the cache may no longer even exist or may be different. Maven therefore tries to r

Re: issues when disabling settings.xml

2013-09-24 Thread Jamie Archibald
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

Re: issues when disabling settings.xml

2013-09-24 Thread Ron Wheeler
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

Re: issues when disabling settings.xml

2013-09-24 Thread Jamie Archibald
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 wro

Re: issues when disabling settings.xml

2013-09-24 Thread Markku Saarela
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 sett

Re: issues when disabling settings.xml

2013-09-23 Thread Stuart McCulloch
On 24 Sep 2013, at 01:31, 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, eve

issues when disabling settings.xml

2013-09-23 Thread Jamie Archibald
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 setting