Hmmm. I don't quite see the issue. At home I have a settings.xml file that 
defines my environment at home, and at work I have a settings.xml file that 
defines my environment at work. I can issue the same "mvn <command>" at home or 
at work and at home it doesn't go to a proxy and at work it does. I don't see 
what issue you are having. There is no need to switch between settings.xml 
files.

Are you perhaps saving your settings.xml file with your project in source 
control? This may be the problem.

All I do is modify the global settings.xml file in the conf folder of my maven 
install. You could put these changes in your local settings.xml file but I 
prefer the global settings.xml file as I find configuring which repos to use to 
be more global in nature.

> -----Original Message-----
> From: Kalpak Gadre [mailto:[email protected]] 
> Sent: Friday, May 07, 2010 2:44 AM
> To: Maven Users List
> Subject: Conveniently switch between settings
> 
> Hi,
> 
> I use Maven from workplace and home. At workplace we have 
> proxy as well as a maven repository. Where at home I don't 
> need any proxy and don't have a repository.
> 
> Is there no convenient way to switch between these 
> configurations other than specifying alternate settings file? 
> It would be nice if it was at profile level where I could 
> just say "mvn -P home" I know that there are lot of issue with that.
> 
> I hope most of us face this problem. What do you guys do?
> 
> Thanks,
> 
> Kalpak
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 
> 
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to