On Mon, Mar 29, 2010 at 08:24, Mark Derricutt <m...@talios.com> wrote: > Why do you need to edit the settings twice a day? Strikes me as a problem. > You could move the relevant <mirror/> settings into a <profile> which is > only activated based on network/env settings, so those changes are > automatic? > -- > Pull me down under... > > On Fri, Mar 26, 2010 at 8:36 PM, Konrad Hinsen <konrad.hin...@fastmail.net> > wrote: >> >> 2) Bad system integration. Maven is the only tool on my Mac that has its >> own proxy configuration. Everything else uses either the system settings >> (ideal) or takes the proxy from an environment variable. All those tools >> adapt automatically when I change networks (twice a day). Only Maven >> requires me to edit $HOME/.m2/settings.xml twice a day.
I'm in a comparable situation since I have a small nexus instance at home, as well as one at work, so my mirror configurations differ depending on where I am. I just keep my .m2 directory as a git repository (ignoring repository/, so really it's just the settings.xml that I'm versioning.). I've got a branch defined for home, one for work, and one for no settings (when I'm elsewhere without a proxy). Switching from one location to another is just (cd ~/.m2 ; git checkout BRANCHNAME). For deployment, I define a profile (id='home') allowing me to deploy to my home nexus by activating it explicitly. // Ben -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en To unsubscribe from this group, send email to clojure+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.