I would like to include a module via an included pom only if a certain property is not set.
So I define in my parent pom:
<profiles>
<profile>
<id>aggregator</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<aggregator>aggregator</aggregator>
</properties>
</profile>
</profiles>
In one of the sub-modules, I would like to activate another profile, if the property is not set:
<profiles>
<profile>
<id>incubation</id>
<activation>
<property>
<name>!aggregator</name>
</property>
</activation>
<modules>
<module>../../examples/org.eclipse.nebula.examples</module>
<module>../../examples/org.eclipse.nebula.examples.feature</module>
</modules>
</profile>
</profiles>
AFAICS this is how https://maven.apache.org/guides/introduction/introduction-to-profiles.html describes it.
But the example modules are still included. What is wrong with this setup?