...
Code Block |
---|
<module configVersion="1.0"> <id><at:var at:name="MODULE_ID" /><<id>@MODULE_ID@</id> <name><at:var at:name="MODULE_NAME" /><<name>@MODULE_NAME@</name> <version><at:var at:name="MODULE_VERSION" /><version>@MODULE_VERSION@-r${buildNumber}</version> <package><at:var at:name="MODULE_PACKAGE" /></package> |
Or, to include the build number in the omod filename, add the following to your omod pom:
Code Block |
---|
<build>
<finalName>${project.artifactId}-${project.parent.version}-r${buildNumber}</finalName>
</build>
|
The plugin will not allow you to build the module if you have local, uncommitted changes. To ignore this check, set the flag -Dmaven.buildNumber.doCheck=false during the build execution.
Read more about using this plugin here.