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
The Maven team is pleased to announce the release of the Apache Maven
Checkstyle Plugin, version 2.14
Generates a report on violations of code style and optionally fails the build
if violations are detected.
http://maven.apache.org/plugins/maven-checkstyle-plugin/
You should specify the
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 it