Sandy McPherson created MRELEASE-755:
----------------------------------------

             Summary: When passing aruments to undelying maven executions not 
all maven options are accepted
                 Key: MRELEASE-755
                 URL: https://jira.codehaus.org/browse/MRELEASE-755
             Project: Maven 2.x Release Plugin
          Issue Type: Bug
          Components: prepare
    Affects Versions: 2.2.2
            Reporter: Sandy McPherson


The command 
{code}
+ /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
{code}
Produces the following error:
{code}
[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]
{code} 
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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to