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:
<profile>
<id>offline</id>
<activation>
<property>
<name>settings.offline</name>
<value>true</value>
</property>
</activation>
</profiles>
Is this by design, i.e., is ${settings.offline} different from, say, a
property ${my.offline} that I activate with -D? Or is this a bug?
Last but not least, does there exist a different way to achieve the same
thing, i.e., activate a profile when -offline?
Best wishes,
Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]