Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-17778

Allow to specify module versions when releasing multi module projects

    • Icon: Improvement Improvement
    • Resolution: Duplicate
    • Icon: Major Major
    • m2release-plugin
    • 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?

          [JENKINS-17778] Allow to specify module versions when releasing multi module projects

          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!

          Massimiliano Turri added a comment - 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!

          James Nord added a comment - - edited

          James Nord added a comment - - edited JENKINS-11466

            Unassigned Unassigned
            turri Massimiliano Turri
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: