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

command line versions don't seem to work on release:branch for specific format

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0
    • 2.1
    • branch
    • None
    • maven 2.2.1
    • Patch

    Description

      I have tried passing versions for certain modules to the command line while making a branch. The plugin ignores my parameters when running release:branch. It injects the defaults if I pass parameters in batch mode.

      E.g. this command taken from the documentation does not work.

      mvn --batch-mode release:branch -DbranchName=my-branch-1.2 -Dproject.rel.org.myCompany:projectA=1.2 \
      -Dproject.dev.org.myCompany:projectA=2.0-SNAPSHOT

      release:prepare supports this specific format for setting these values at command line.
      Setting these values in a release.properties file e.g.
      project.dev.org.myCompany\:projectA=2.0-SNAPSHOT
      project.rel.org.myCompany\:projectA=1.2
      works also fine.
      Specifying the default at commandline works also e.g.
      mvn --batch-mode release:branch -DbranchName=my-branch-1.2 -DreleaseVersion=1.2 \
      -DdevelopmentVersion=2.0-SNAPSHOT

      Attachments

        1. MRELEASE-524-batch-mode.patch
          17 kB
          Lars Corneliussen
        2. MRELEASE-524-batch-mode(2).patch
          18 kB
          Lars Corneliussen

        Issue Links

          Activity

            People

              brett Brett Porter
              awpxw Max Schaefer
              Votes:
              3 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: