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: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org




--
Ron Wheeler
President
Artifact Software Inc
email: rwhee...@artifact-software.com
skype: ronaldmwheeler
phone: 866-970-2435, ext 102


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to