Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-4166

Problem parsing command-line options in release:perform

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2.0
    • 2.2.0
    • Command Line
    • None

    Description

      From Paul Merlin on users@maven.apache.org (http://www.nabble.com/Re%3A--PLEASE-TEST--Maven-2.2.0-RC2-p23391250.html)

      [INFO] [release:perform]                                                                                                                  
      [INFO] Change the default 'svn' provider implementation to 'javasvn'.                                                                    
      [INFO] Checking out the project to perform the release ...                                                                                
      [INFO] SVN checkout directory: /home/paul/tmp/ekPom/target/checkout                
      [INFO] Executing goals 'deploy'...                                                                                                        
      [INFO]
      ------------------------------------------------------------------------                                                          
      [ERROR] BUILD ERROR                                                                                                                      
      [INFO]
      ------------------------------------------------------------------------                                                          
      [INFO] Failed to re-parse additional arguments for Maven invocation.                                                                      
      
      Unrecognized option: -f
      [INFO]
      ------------------------------------------------------------------------
      [INFO] Trace                                                                  
      org.apache.maven.lifecycle.LifecycleExecutionException: Failed to re-parse
      additional arguments for Maven invocation.
              at
      org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:703)      
              at
      org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:553)
              at
      org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:523)          
              at
      org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:371)
              at
      org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:268)        
              at
      org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:181)                    
              at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:356)                                                    
              at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:137)                                                      
              at org.apache.maven.cli.MavenCli.main(MavenCli.java:356)                                                              
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)                                                        
              at
      sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)                                      
              at
      sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)                              
              at java.lang.reflect.Method.invoke(Method.java:597)                                                                  
              at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)                                                
              at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)                                                        
              at
      org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)                                              
              at org.codehaus.classworlds.Launcher.main(Launcher.java:375)                                                          
      Caused by: org.apache.maven.plugin.MojoExecutionException: Failed to re-parse
      additional arguments for Maven invocation.      
              at
      org.apache.maven.plugins.release.PerformReleaseMojo.execute(PerformReleaseMojo.java:133)                          
              at
      org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:483)                            
              at
      org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:678)                
              ... 16 more                                                                                                          
      Caused by: org.apache.maven.shared.release.ReleaseExecutionException: Failed
      to re-parse additional arguments for Maven invocation.
              at
      org.apache.maven.shared.release.phase.AbstractRunGoalsPhase.execute(AbstractRunGoalsPhase.java:89)                      
              at
      org.apache.maven.shared.release.phase.RunPerformGoalsPhase.execute(RunPerformGoalsPhase.java:67)                        
              at
      org.apache.maven.shared.release.DefaultReleaseManager.perform(DefaultReleaseManager.java:336)                          
              at
      org.apache.maven.shared.release.DefaultReleaseManager.perform(DefaultReleaseManager.java:282)                          
              at
      org.apache.maven.shared.release.DefaultReleaseManager.perform(DefaultReleaseManager.java:262)                          
              at
      org.apache.maven.plugins.release.PerformReleaseMojo.execute(PerformReleaseMojo.java:129)                                
              ... 18 more                                                                                                                
      Caused by: org.apache.maven.shared.release.exec.MavenExecutorException: Failed
      to re-parse additional arguments for Maven invocation.
              at
      org.apache.maven.shared.release.exec.InvokerMavenExecutor.setupRequest(InvokerMavenExecutor.java:335)                    
              at
      org.apache.maven.shared.release.exec.InvokerMavenExecutor.executeGoals(InvokerMavenExecutor.java:377)                    
              at
      org.apache.maven.shared.release.exec.InvokerMavenExecutor.executeGoals(InvokerMavenExecutor.java:413)                    
              at
      org.apache.maven.shared.release.phase.AbstractRunGoalsPhase.execute(AbstractRunGoalsPhase.java:81)                        
              ... 23 more                                                                                                                  
      Caused by: org.apache.commons.cli.UnrecognizedOptionException: Unrecognized
      option: -f                                              
              at org.apache.commons.cli.Parser.processOption(Parser.java:363)                                                              
              at org.apache.commons.cli.Parser.parse(Parser.java:199)                                                                      
              at org.apache.commons.cli.Parser.parse(Parser.java:85)                                                                      
              at
      org.apache.maven.shared.release.exec.InvokerMavenExecutor.setupRequest(InvokerMavenExecutor.java:186)                    
              ... 26 more                                                                                                                  
      [INFO] 
      

      Attachments

        Issue Links

          Activity

            People

              jdcasey John Dennis Casey
              jdcasey John Dennis Casey
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: