CI作业失败并出现错误 - 无法执行Cobertura。无法运行程序“/ bin / sh”:错误= 7,参数列表太长

时间:2016-08-30 18:57:59

标签: cobertura maven-cobertura-plugin

以下是项目besinapp上未能执行目标org.codehaus.mojo:cobertura-maven-plugin:2.6:instrument(默认)的完整错误:

Unable to execute Cobertura. Error while executing process. Cannot run program "/bin/sh": error=7, Argument list too long

我正在使用Cobertura 2.6

有人面临这个问题吗?

以下是Cobertura插件问题的完整堆栈跟踪。

  

11:31:36 [ERROR]无法执行目标org.codehaus.mojo:cobertura-maven-plugin:2.6:项目besinapp上的仪器(默认):无法执行Cobertura。执行进程时出错。无法运行程序“/ bin / sh”:错误= 7,参数列表太长 - > [帮助1] 11:31:36 org.apache.maven.lifecycle.LifecycleExecutionException:无法执行目标org.codehaus.mojo:cobertura-maven-plugin:2.6:工具(默认)项目besinapp:无法执行Cobertura。 11:31:36在org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:216)11:31:36在org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java: 153)11:31:36在org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)11:31:36在org.apache.maven.lifecycle.internal.MojoExecutor.executeForkedExecutions(MojoExecutor。 java:364)11:31:36 org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:198)11:31:36 at org.apache.maven.lifecycle.internal.MojoExecutor.execute( MojoExecutor.java:153)11:31:36在org.apache.maven.maven.life.internal.LifecycleModuleBuilder的org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)11:31:36。 buildProject(LifecycleModuleBuilder.java:84)11:31:36 org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)11:31:36 at org.apache.maven.lifecycle.internal。 LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:1 83)11:31:36 org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)11:31:36 at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:317) 11:31:36在org.apache.maven.DefaultMaven.execute(DefaultMaven.java:152)11:31:36在org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)11:31: 36 org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)11:31:36 at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)11:31:36 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)11:31:36 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)11:31:36 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43 )11:31:36 at java.lang.reflect.Method.invoke(Method.java:606)11:31:36 at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)11 :31:36 at org.codehaus.plexus.classworlds.launcher.Launcher.launch(launcher.java:229)11:31:36 at org.codehaus.plexus.classwor lds.launcher.Launcher.mainWithExitCode(Launcher.java:415)11:31:36 at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)11:31:36引起:org。 apache.maven.plugin.MojoExecutionException:无法执行Cobertura。 11:31:36在org.codehaus.mojo.cobertura.tasks.AbstractTask.executeJava(AbstractTask.java:244)11:31:36在org.codehaus.mojo.cobertura.tasks.InstrumentTask.execute(InstrumentTask.java: 139)11:31:36 at org.codehaus.mojo.cobertura.CoberturaInstrumentMojo.execute(CoberturaInstrumentMojo.java:162)11:31:36 at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:106) 11:31:36在org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)11:31:36 ... 23更多11:31:36引起:org.codehaus.plexus。 util.cli.CommandLineException:执行进程时出错。 11:31:36在org.codehaus.plexus.util.cli.Commandline.execute(Commandline.java:656)11:31:36 org.codehaus.plexus.util.cli.CommandLineUtils.executeCommandLine(CommandLineUtils.java: 144)11:31:36在org.codehaus.plexus.util.cli.CommandLineUtils.executeCommandLine(CommandLineUtils.java:107)11:31:36在org.codehaus.mojo.cobertura.tasks.AbstractTask.executeJava(AbstractTask。 java:240)11:31:36 ... 27更多11:31:36引起:java.io.IOException:无法运行程序“/ bin / sh”:error = 7,参数列表太长了11:31: 36在java.lang.ProcessBuilder.start(ProcessBuilder.java:1047)11:31:36 at java.lang.Runtime.exec(Runtime.java:617)11:31:36 at java.lang.Runtime.exec( Runtime.java:528)11:31:36在org.codehaus.plexus.util.cli.Commandline.execute(Commandline.java:636)11:31:36 ... 30更多11:31:36引起: java.io.IOException:error = 7,参数列表太长11:31:36 java.lang.UNIXProcess.forkAndExec(Native Method)11:31:36 java.lang.UNIXProcess。(UNIXProcess.java:186)在java.lang上11:31:36 .ProcessImpl.start(ProcessImpl.java:130)11:31:36在java.lang.ProcessBuilder.start(ProcessBuilder.java:1028)11:31:36 ... 33更多

0 个答案:

没有答案