Ewps. My bad.  I was thinking of mirrors, not a general proxy.  However, the
profiles route would probably help as well.

    http://maven.apache.org/settings.html#Profiles

Basically, by moving configuration settings inside a profile, it's like
having two settings.xml files that can be turned on/off at run time.

The simplist way is running "mvn -Pprofilename xxx", but the <activation/>
section of a pom can be used to dynamically enable a profile.

I don't think you'd be able to enable a profile directly via your network
settings, but if theres an environment variable that gets set, or a file
that gets created that could be used to trigger the profile.

-- 
Pull me down under...

On Mon, Mar 29, 2010 at 11:01 PM, Konrad Hinsen
<konrad.hin...@fastmail.net>wrote:

> On 29.03.2010, at 08:24, Mark Derricutt 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?
>
> What I found about proxy configuration is this:
>
>        http://maven.apache.org/guides/mini/guide-proxies.html
>
> It doesn't say anything about profiles, or about any other way to have
> multiple proxy configurations. Other sites I found just repeat the
> information from the manual. There may be ways to have more dynamic
> configurations, but I am not a Maven expert nor trying to become one. Life's
> too short for studying idiosyncratic build tools.
>
> Konrad.
>
> --
> 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<clojure%2bunsubscr...@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.
>

-- 
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.

Reply via email to