Maven Release Plugin
  1. Maven Release Plugin
  2. MRELEASE-459

releaseProfiles has no effect without passing profiles in the command line

    Details

    • Flags:
      Patch

      Description

      The releaseProfiles parameter on the perform goal is not taken into consideration when no other profiles are passed in the command line. In other words, the current code only uses the value of the parameter if you have additional profiles passed in.

      Example:

      mvn release:perform -P someProfile (uses releaseProfiles value)

      mvn release:perform (does NOT use releaseProfiles value)

      The plugin should use the parameter even if no other profiles are passed. It should actually encourage release profiles configured in your POM as opposed to arbitrary profiles passed in the command line.

      I have included a patch that uses the releaseProfiles parameter regardless of any profiles passed in the command line.

      1. patch.txt
        1 kB
        Andreas Christoforides
      2. MRELEASE-459.1.patch
        1 kB
        Lars Francke

        Activity

        Mark Thomas made changes -
        Workflow jira [ 12962026 ] Default workflow, editable Closed status [ 12999270 ]
        Mark Thomas made changes -
        Project Import Mon Apr 06 00:52:26 UTC 2015 [ 1428281546237 ]
        Mark Thomas made changes -
        Patch Submitted Yes [ 10763 ]
        Flags Patch [ 10430 ]
        Mark Thomas made changes -
        Workflow jira [ 12724277 ] Default workflow, editable Closed status [ 12763493 ]
        Mark Thomas made changes -
        Project Import Sun Apr 05 12:15:05 UTC 2015 [ 1428236105845 ]
        Robert Scholte made changes -
        Fix Version/s 2.4 [ 17453 ]
        Status Open [ 1 ] Closed [ 6 ]
        Assignee Robert Scholte [ rfscholte ]
        Resolution Fixed [ 1 ]
        stephenconnolly made changes -
        Labels contributers-welcome help-requested missing-integration-tests
        Lars Francke made changes -
        Field Original Value New Value
        Attachment MRELEASE-459.1.patch [ 58268 ]
        Andreas Christoforides created issue -

          People

          • Assignee:
            Robert Scholte
            Reporter:
            Andreas Christoforides
          • Votes:
            23 Vote for this issue
            Watchers:
            23 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development