Generally you have two options, you can have different settings files for the 
locations, or run an instance of nexus on your own machine that proxies from 
your work environment. That way you always use the one on your local machine, 
and when you need the other artifacts they'll be checked for on the work 
environment (if available). I do the latter with an instance of Archiva and it 
is quite useful anyway for being able to freely delete your local repository, 
and do other things like local search, etc.

- Brett

On 02/03/2010, at 12:22 AM, Nick Klauer wrote:

> More or less i've asked this on StackOverflow, but I was totally unaware of
> the users mailing list, so I'm reposting here since it's *probably* more
> appropriate:
> 
> http://stackoverflow.com/questions/2354001/make-maven-proxy-server-settings-configurable-based-on-location
> 
> What my issue boils down to is that I have a corporate proxy and Nexus Repo
> at work.  When I'm at work, everything is great, works well.  However, when
> I walk out of the office, I don't have to go through a proxy, nor do I have
> our corporate private Maven repo to look for artifacts against.  How can I
> configure my settings.xml file to work both in and out of the office based
> on those two options?
> 
> -Nick

--
Brett Porter
[email protected]
http://brettporter.wordpress.com/





---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to