I have a multi module project with two POMs, one aggregates the modules the other one is the parent of the modules.
<groupId>company</groupId>
<artifactId>aggregator-pom</groupId>
<version>1.0.0</version>
<modules>
<module>module-A</module>
<module>module-B</module>
</modules>
Child module pom looks like:
<parent>
<groupId>company</groupId>
<artifactId>parent-pom</artificatId>
<version>2.0.0</version>
</parent>
<groupId>company</groupId>
<artifactId>module-A</artificatId>
<version>1.1.0</version>
I want to execute versions:set on the aggregator-project to update the versions on the modules (A, B), but it seems that the versions plugin does not support this use case. The excat call is:
build-helper:parse-version versions:set -DnewVersion=${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.incrementalVersion}-${SVN_REVISION}
So the intention is that the build-helper plugin reads the current version with the help of jenkins we append the svn revision number to the version. This should be done on every module defined in the aggregator project. If I call this for just one independent project it works well. If the versions-plugin does not support this use case how can I achieve this?