SonarQube Plugins
  1. SonarQube Plugins
  2. SONARPLUGINS-1283

CommandLineException: Missing/wrong number of arguments

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: SCM-ACTIVITY-1.4
    • Component/s: SCM Activity
    • Labels:
      None
    • Environment:
      Perforce, Linux
    • Number of attachments :
      0

      Description

           [exec] [ERROR]  CommandLineException Exit code: 1 - Usage: describe [-d<flags> -s -S] [changelist#...]
           [exec] Missing/wrong number of arguments.
           [exec] Command line was:p4 -d /mnt/storage/p4/myproject/temp -p perforce:1666 -u user -P pass describe -s
           [exec] org.codehaus.plexus.util.cli.CommandLineException: Exit code: 1 - Usage: describe [-d<flags> -s -S] [changelist#...]
           [exec] Missing/wrong number of arguments.
           [exec] Command line was:p4 -d /mnt/storage/p4/myproject/temp -p perforce:1666 -u user -P pass describe -s
           [exec]     at org.apache.maven.scm.provider.perforce.command.changelog.PerforceChangeLogCommand.executeChangeLogCommand(PerforceChangeLogCommand.java:151) [maven-scm-provider-perforce-1.5.jar:1.5]
           [exec]     at org.apache.maven.scm.provider.perforce.command.changelog.PerforceChangeLogCommand.executeChangeLogCommand(PerforceChangeLogCommand.java:73) [maven-scm-provider-perforce-1.5.jar:1.5]
           [exec]     at org.apache.maven.scm.command.changelog.AbstractChangeLogCommand.executeCommand(AbstractChangeLogCommand.java:103) [maven-scm-api-1.5.jar:1.5]
           [exec]     at org.apache.maven.scm.command.AbstractCommand.execute(AbstractCommand.java:59) [maven-scm-api-1.5.jar:1.5]
           [exec]     at org.apache.maven.scm.provider.perforce.PerforceScmProvider.changelog(PerforceScmProvider.java:161) [maven-scm-provider-perforce-1.5.jar:1.5]
           [exec]     at org.apache.maven.scm.provider.AbstractScmProvider.changeLog(AbstractScmProvider.java:311) [maven-scm-api-1.5.jar:1.5]
           [exec]     at org.apache.maven.scm.provider.AbstractScmProvider.changeLog(AbstractScmProvider.java:293) [maven-scm-api-1.5.jar:1.5]
           [exec]     at org.apache.maven.scm.manager.AbstractScmManager.changeLog(AbstractScmManager.java:362) [maven-scm-api-1.5.jar:1.5]
           [exec]     at org.sonar.plugins.scmactivity.Changelog.retrieveChangeSets(Changelog.java:101) [sonar-scm-activity-plugin-1.3.jar:na]
           [exec]     at org.sonar.plugins.scmactivity.Changelog.load(Changelog.java:55) [sonar-scm-activity-plugin-1.3.jar:na]
           [exec]     at org.sonar.plugins.scmactivity.ScmActivitySensor.analyse(ScmActivitySensor.java:83) [sonar-scm-activity-plugin-1.3.jar:na]
           [exec]     at org.sonar.batch.phases.SensorsExecutor.execute(SensorsExecutor.java:58) [sonar-batch-2.8.jar:na]
           [exec]     at org.sonar.batch.phases.Phases.execute(Phases.java:80) [sonar-batch-2.8.jar:na]
           [exec]     at org.sonar.batch.ProjectBatch.execute(ProjectBatch.java:59) [sonar-batch-2.8.jar:na]
           [exec]     at org.sonar.batch.Batch.analyzeModule(Batch.java:164) [sonar-batch-2.8.jar:na]
           [exec]     at org.sonar.batch.Batch.analyzeModules(Batch.java:82) [sonar-batch-2.8.jar:na]
           [exec]     at org.sonar.batch.Batch.execute(Batch.java:62) [sonar-batch-2.8.jar:na]
           [exec]     at org.sonar.maven3.SonarMojo.executeBatch(SonarMojo.java:148) [sonar-maven3-plugin-2.8.jar:na]
           [exec]     at org.sonar.maven3.SonarMojo.execute(SonarMojo.java:137) [sonar-maven3-plugin-2.8.jar:na]
           [exec]     at org.codehaus.mojo.sonar.Bootstraper.executeMojo(Bootstraper.java:113) [sonar-maven-plugin-2.0-beta-2.jar:na]
           [exec]     at org.codehaus.mojo.sonar.Bootstraper.start(Bootstraper.java:65) [sonar-maven-plugin-2.0-beta-2.jar:na]
           [exec]     at org.codehaus.mojo.sonar.SonarMojo.execute(SonarMojo.java:90) [sonar-maven-plugin-2.0-beta-2.jar:na]
           [exec]     at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101) [maven-core-3.0.3.jar:3.0.3]
           [exec]     at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) [maven-core-3.0.3.jar:3.0.3]
           [exec]     at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) [maven-core-3.0.3.jar:3.0.3]
           [exec]     at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) [maven-core-3.0.3.jar:3.0.3]
           [exec]     at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) [maven-core-3.0.3.jar:3.0.3]
           [exec]     at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) [maven-core-3.0.3.jar:3.0.3]
           [exec]     at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) [maven-core-3.0.3.jar:3.0.3]
           [exec]     at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) [maven-core-3.0.3.jar:3.0.3]
           [exec]     at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319) [maven-core-3.0.3.jar:3.0.3]
           [exec]     at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) [maven-core-3.0.3.jar:3.0.3]
           [exec]     at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) [maven-embedder-3.0.3.jar:3.0.3]
           [exec]     at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) [maven-embedder-3.0.3.jar:3.0.3]
           [exec]     at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) [maven-embedder-3.0.3.jar:3.0.3]
           [exec]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [na:1.6.0_20]
           [exec]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [na:1.6.0_20]
           [exec]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [na:1.6.0_20]
           [exec]     at java.lang.reflect.Method.invoke(Method.java:597) [na:1.6.0_20]
           [exec]     at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) [plexus-classworlds-2.4.jar:na]
           [exec]     at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) [plexus-classworlds-2.4.jar:na]
           [exec]     at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409) [plexus-classworlds-2.4.jar:na]
           [exec]     at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352) [plexus-classworlds-2.4.jar:na]
      

        Issue Links

          Activity

          Hide
          cipher chain added a comment -

          SCM URL [sonar.scm.url] from project settings GUI page is set to

          scm:perforce:perforce:1666://projects/myproject
          
          Show
          cipher chain added a comment - SCM URL [sonar.scm.url] from project settings GUI page is set to scm:perforce:perforce:1666: //projects/myproject

            People

            • Assignee:
              Unassigned
              Reporter:
              cipher chain
            • Votes:
              2 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: