I'm trying to activate a maven profile using a property defined inside pom.xml
:
<project>
[...]
<properties>
<run.it>true</run.it>
</properties>
[...]
<profiles>
<profile>
<activation>
<property><name>run.it</name></property>
</activation>
[...]
</profile>
</profiles>
[...]
</project>
Apparently it doesn't work. However, activation works from the command line:
mvn -Drun.it
Is it "by design"? If it is, what is a possible workaround?