-
Improvement
-
Resolution: Duplicate
-
Major
-
None
When releasing a multi-module project all child projects get assigned the version of the parent.
It would be great if they took the version of their pom or if there was a way to specify the version.
Is there another way of releasing multi-module projects in which the modules have different versions than the parent?
- duplicates
-
JENKINS-11466 reenable "ability to let maven decide the versioning"
-
- Open
-
After further investigation it seems that, at the maven execution level, the problem with multi-module projects is due to the provided properties: developmentVersion and releaseVersion. When these properties are provided the versions of the child modules are forced to be identical to the version of the parent project.
The m2release plugin provides the configuration option "Default versioning mode". At the moment it seems that it does not allow users to change it from its default value of "None" which seems to correspond to allowing users to specify one single version for all modules.
One simple solution might be to allow users to choose as default versioning something like "let maven pick" which would correspond to a maven execution command without the properties "developmentVersion" and "releaseVersion".
In this instance the versions should be picked up from the pom files of each of the sub-modules.
Thanks!