Number of attachments :
Please, document that the negation symbol "!" can be used for profile activation not only to test the absence of a property. This is currently not documented on this page:
This request goes back to a thread on the Maven user list, cf.
In the following I basically quote the original message posted to the forum; with some extensions to the example. The example can be almost directly added to the page to document and illustrate how this feature can be used:
I just found a--
to my best knowledge--undocumented feature and thought I should share it with the community in the hope that it will made its way into the Maven documentation.
The feature is that you can use the negation symbol "!" within a profile activation specifification not only to test the absence of a property but also within the <os> tag, for instance, to express something like "activate the profile if the OS family name is not xyz". The following example illustrates this:
So in this example I use <name>!mac os x</name> to specify that the profile <id>tools-jar-unix</id> should be applied to all UNIX family operating systems except Mac OS X.
This example was tested with Maven 2.0.9, 2.0.10, 2.1.0 on Windows XP, Linux (Ubuntu 8.10), and Mac OS X 10.5.6 and it works for all of them. Nice