I have two profiles defined in my pom.xml:
<profiles>
<profile>
<id>nobrand</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<brand>nobrand</brand>
</properties>
</profile>
<profile>
<id>mybrand</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<brand>mybrand</brand>
</properties>
</profile>
</profiles>
The <build>
section simply uses the property that is set by each profile.
Both profiles are set as active by default. However, only the last one is executed by mvn package
. Why? I expected the build to be executed twice.