org.apache.commons.exec.ExecuteException: Process exited with an error: 240 (Exit value: 240) -> [Help 1]org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal net.alchim31.maven:scala-maven-plugin:3.2.2:testCompile (default) on project gatling-maven-perf: wrap: org.apache.commons.exec.ExecuteException: Process exited with an error: 240 (Exit value: 240)

Google Groups | prashant bhat | 3 months ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to poroszd and rafael . Or join the community to write better ones.
  1. 0
    samebug tip
    Change the <configuration> in pom.xml to use xml parameters instead of the <arguments> list.
  2. 0
    samebug tip
    Try to run your project from where the Application class is, instead of trying to run it from root.
  3. 0

    Maven - Users - Maven Release Plugin and Java 8 issue

    nabble.com | 1 year ago
    org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.5:prepare (default-cli) on project xxxx: Maven execution failed, exit code: '1'  at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:216) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)  at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)  at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)  at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:120)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    compile tests using maven-compiler and jdk9-ea+148

    Stack Overflow | 4 months ago | Verdent
    org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.6.0:testCompile (default-testCompile) on project bar: Execution default-testCompile of goal org.apache.maven.plugins:maven-compiler-plugin:3.6.0:testCompile failed.
  6. 0
    samebug tip
    Try to use this command to set the timeout to a larger value mvn jetty:run -Dorg.eclipse.jetty.annotations.maxWait=120
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. org.apache.commons.exec.ExecuteException

    Process exited with an error: 240 (Exit value: 240)

    at org.apache.commons.exec.DefaultExecutor.executeInternal()
  2. Apache Commons Exec
    DefaultExecutor.execute
    1. org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:377)
    2. org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:160)
    3. org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:147)
    3 frames
  3. scala_maven_executions
    JavaMainCallerByFork.run
    1. scala_maven_executions.JavaMainCallerByFork.run(JavaMainCallerByFork.java:100)
    1 frame
  4. scala_maven
    ScalaTestCompileMojo.execute
    1. scala_maven.ScalaCompilerSupport.compile(ScalaCompilerSupport.java:161)
    2. scala_maven.ScalaCompilerSupport.doExecute(ScalaCompilerSupport.java:99)
    3. scala_maven.ScalaMojoSupport.execute(ScalaMojoSupport.java:482)
    4. scala_maven.ScalaTestCompileMojo.execute(ScalaTestCompileMojo.java:48)
    4 frames
  5. Maven Plugin
    DefaultBuildPluginManager.executeMojo
    1. org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
    1 frame
  6. Maven Core
    DefaultMaven.execute
    1. org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
    2. org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
    3. org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
    4. org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
    5. org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
    6. org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
    7. org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
    8. org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
    9. org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
    10. org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
    10 frames
  7. M3 Interceptor
    MavenCli.main
    1. org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
    2. org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
    3. org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
    3 frames
  8. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:498)
    4 frames
  9. Plexus
    Launcher.main
    1. org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
    2. org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
    3. org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
    4. org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
    4 frames