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

releaseProfiles has no effect without passing profiles in the command line

    XMLWordPrintableJSON

Details

    • 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.

      Attachments

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

        Activity

          People

            rfscholte Robert Scholte
            andreasch Andreas Christoforides
            Votes:
            23 Vote for this issue
            Watchers:
            23 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: