How to activate a profile when -offline?

2015-02-05 Thread Andreas Sewe
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:

Re: How to activate a profile when -offline?

2015-02-05 Thread Andreas Sewe
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

[ANN] Apache Maven Checkstyle Plugin 2.14 Released

2015-02-05 Thread Dennis Lundberg
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

Re: How to activate a profile when -offline?

2015-02-05 Thread Curtis Rueden
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

Re: How to activate a profile when -offline?

2015-02-05 Thread Curtis Rueden
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,

RE: How to activate a profile when -offline?

2015-02-05 Thread Martin Gainty
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