From: mgai...@hotmail.com
To: users@maven.apache.org
Subject: RE: How to activate a profile when -offline?
Date: Thu, 5 Feb 2015 18:03:01 -0500
From: ctrue...@wisc.edu
Date: Thu, 5 Feb 2015 15:11:34 -0600
Subject: Re: How to activate a profile when -offline?
To: users
when -offline?
Date: Sat, 7 Feb 2015 19:45:54 -0500
From: mgai...@hotmail.com
To: users@maven.apache.org
Subject: RE: How to activate a profile when -offline?
Date: Thu, 5 Feb 2015 18:03:01 -0500
From: ctrue...@wisc.edu
Date: Thu, 5 Feb 2015 15:11:34 -0600
Subject: Re
Hi,
sometimes it's useful to configure a Maven plugin depending on whether
the build runs in online or offline mode (-offline command-line option).
Now, using
mvn help:effective-settings -offline
shows that ${settings.offline} == true. Alas, I cannot get the following
profile to activate:
Hi Curtis,
many thanks for your detailed reply.
You wrote:
Is this by design, i.e., is ${settings.offline} different from,
say, a property ${my.offline} that I activate with -D?
For better or for worse, Maven profiles cannot be activated based on Maven
properties, only based on Java system
Hi Andreas,
Now, one might argue that the m-jarsigner-p needs to become smarter
and aware of Maven's offline mode, but that would require it to deal
with special cases, like localhost URLs being reachable even in
offline mode
I would argue that, yeah. And that it should ignore such special
Hi Andreas,
Is this by design, i.e., is ${settings.offline} different from,
say, a property ${my.offline} that I activate with -D?
For better or for worse, Maven profiles cannot be activated based on Maven
properties, only based on Java system properties and/or environment
variables. That is,
From: ctrue...@wisc.edu
Date: Thu, 5 Feb 2015 15:11:34 -0600
Subject: Re: How to activate a profile when -offline?
To: users@maven.apache.org
Hi Andreas,
Now, one might argue that the m-jarsigner-p needs to become smarter
and aware of Maven's offline mode, but that would require