Uploaded image for project: 'Maven Release Plugin'
  1. Maven Release Plugin
  2. MRELEASE-463

Ability to default "set to release" during release:prepare to "yes" instead of "no"

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Won't Do
    • 2.0-beta-9
    • None
    • prepare
    • None
    • Patch

    Description

      We have SNAPSHOT dependencies in our poms during development. When we do a release, we use the plugin's feature of setting these versions to release before the release:prepare is done.

      This works great, however, it is not available in batch mode; the default answer is "no", and so, in batch mode, the release:prepare just fails.

      This makes scripting our releases impossible without resorting to some Expect nonsense.

      Included is a patch that adds the configuration option projectDependenciesDefaultToRelease. The value of this defaults to "false", which will cause release:prepare to behave as it does now. Setting it to "true" defaults the answer to "yes" and thus, allows the release to proceed in batch mode.

      I didn't see a lot of test coverage of this area of the code, but this patch doesn't break any tests.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              davetron5000 Dave Copeland
              Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: