I'm trying to enable a maven profile following example from maven site. It works fine in this way, with this code in pom.xml:
<project>
...
<build>
<plugins>
<plugin>
<groupId>org.myco.plugins</groupId>
<artifactId>spiffy-integrationTest-plugin</artifactId>
<version>1.0</version>
<configuration>
<appserverHome>${appserver.home}</appserverHome>
</configuration>
</plugin>
...
</plugins>
</build>
...
</project>
and this code in local ~/.m2/settings.xml
:
<settings>
...
<profiles>
<profile>
<id>appserverConfig</id>
<properties>
<appserver.home>/path/to/appserver</appserver.home>
</properties>
</profile>
</profiles>
<activeProfiles>
<activeProfile>appserverConfig</activeProfile>
</activeProfiles>
...
</settings>
The problem is if I try to change the activation way: if I try to activate profiles on settings.xml using a property or also the activeByDefault
tag it does nothing. If I try to activate the profile in the same way on pom it works but the property is not override.
How can I proceed?