We recently noticed that the profile that we had marked as default in our Maven
Technorati Tags: Maven, Andrew Beacock
settings.xml file was not being set as the default. Like many examples on the web we had the following XML element set in the appropriate profile:<profiles>
<profile>
<activation>
<activeByDefault/>
</activation>
</profile>
</profiles>
After some searching we found this maven-users mailing list post detailing the solution.<activeByDefault/> isn't enough to set the value, you need to explicitly set the boolean value to true:<activeByDefault>true</activeByDefault>Once we saved that change in our
settings.xml file the profile was picked up as the default.Technorati Tags: Maven, Andrew Beacock
Comments