Missing -f option in InvokerMavenExecutor
-----------------------------------------

                 Key: MRELEASE-495
                 URL: http://jira.codehaus.org/browse/MRELEASE-495
             Project: Maven 2.x Release Plugin
          Issue Type: Bug
          Components: perform
    Affects Versions: 2.0-beta-9
            Reporter: Beat Strasser
         Attachments: InvokerMavenExecutorTest.java, maven-release-manager.patch

The RunPerformGoalsPhase adds "-f pom.xml" to the arguments but the 
InvokerMavenExecutor can't handle it.

The perform goal currently doesn't throw an exception because the PosixParser 
from commons-cli-1.0 ignores unknown options - and the option isn't handled by 
the InvokerMavenExecutor at all. However, in commons-cli-1.2 (which doesn't 
ignore the -f option) the perform goal fails. The attached test case works only 
with commons-cli-1.0 but fails with commons-cli-1.2. Note that there is no test 
which tests the entire perform goal (including the InvokerMavenExecutor).

The patch adds the file option to the executor.

I'm using the maven-release-manager with commons-cli 1.2 because tycho depends 
on 1.2 (and I'm wrapping the maven-release-plugin for tycho).

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to