Creating a Maven CPP plugin profile (such as for use with BlackTie)

Version 3

    The Blacktie maven build system uses a custom plugin (with artifactId cpp-plugin) for executing C++ related goals. The plugin contains a number of properties for controling the behaviour of its various goals. The default values of these properties may be overriden using the standard maven profile mechanism. For example, say you need to coerce the build to continue even if any of the tests fail you could set the appropriate property in a file called:

     

         profiles.xml

     

    with content as follows:

     

    <profiles>
            <profile>
                    <id>alt</id>
                    <activation>
                            <activeByDefault>true</activeByDefault>
                    </activation>

                    <properties>

                            <failOnErrorTests>false</failOnErrorTests>

                    </properties>
            </profile>
    </profiles>

     

    Put this file in the same directory as the pom you are executing. The profile is always active so it will trigger whenever you execute any maven goal.

     

    Since Blacktie is using the standard maven profile mechanism you may selectively activate the profile and, furthermore, you may also set profiles directly in the pom or in your settings.xml