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

Profiles activated in settings.xml can't be deactivated for release

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1
    • 2.4
    • perform, prepare
    • None
    • Maven 2.2.1

    Description

      We are having a development profile in settings.xml to sign the jars.
      For releases the release profile shall be used to sign with an official key.
      I can't convince the release plugin to deactivate the development profile active as default in settings.xml
      I tried various combinations but nothing works:

      • specify profiles configuration: <arguments>-Prelease,!development</arguments>
      • specify profiles configuration: <releaseProfiles>release,!development</releaseProfiles>
      • adding -Darguments="-Prelease,!development" -Prelease,!development release:prepare
      • adding -Darguments="-Prelease,!development" -Prelease,!development release:perform
      • combinations of the above
        Running deploy with "-Prelease,!development" uses the correct profile and signs with the correct key.
        It looks like the disabled properties are not propagated to the actual build but just removed and then inherited from settings.xml again.
        This affects both the release:prepare and the release:perform

      Attachments

        Activity

          People

            rfscholte Robert Scholte
            mhinterseher Michael Hinterseher
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: