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

Arguments containing spaces and quotes cause the forked maven process to fail

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.3.2
    • 2.4
    • prepare
    • None
    • *nix

    Description

      The following config:

      <plugin>
                  <artifactId>maven-release-plugin</artifactId>
                  <configuration>
                    <mavenExecutorId>forked-path</mavenExecutorId>
                    <useReleaseProfile>false</useReleaseProfile>
                    <arguments>-Dgpg.passphrase="a phrase 'containing' quotes and spaces"</arguments>
                  </configuration>
                </plugin>
      

      causes the forked clean verify to fail. This is preventing me using my gpg key as part of an automated release process.

      This is due to a bug in Plexus Utils which I have raised as issue 152 PLXUTILS-152, and for which I have raised a pull request here: https://github.com/sonatype/plexus-utils/pull/5. I am raising an issue on the release plugin as when/if a fixed version of plexus utils is released the maven release plugin will need to upgrade to this new version to benefit.

      Attachments

        Activity

          People

            rfscholte Robert Scholte
            mahoney Robert Elliot
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: