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

When passing arguments to underlying maven executions not all maven options are accepted

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2.2
    • 2.4
    • prepare
    • None

    Description

      The command

      + /opt/imc/maven3/bin/mvn -B -PStaged-distribution --settings ../corrie/settings-build-release.xml -gs ../corrie/settings-global.xml '-Darguments=-PStaged-distribution -s ../corrie/settings-build-release.xml -gs ../corrie/settings-global.xml' release:prepare -DreleaseVersion=10.3765
      

      Produces the following error:

      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.2.2:prepare (default-cli) on project corrie: Failed to re-parse additional arguments for Maven invocation. Unrecognized option: -g -> [Help 1]
      [ERROR]
      

      Also tried with --global-settings and this also failed with an anrecocgnized option --global-settings

      Would seem pointless for the plugin to do any additional parsing, just pass it to maven and let the underlying execution complain.

      Attachments

        Issue Links

          Activity

            People

              rfscholte Robert Scholte
              sandymcp Sandy McPherson
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: