title: Failed to execute maven-surefire-plugin but only with circleci
body: <p>I have quite weird problem with surefire plugin because even though I've added surefire plugin to my spring boot projectwhen I try to run this robust project which happen to be composed of parent module and two other with help of intellij. then tests are passed and everything seem to be ok but when I try to run this project with circleci, it results with this error</p>
  
  <pre><code>[INFO] sfg-pet-clinic ..................................... SUCCESS [  0.578 s]
  [INFO] pet-clinic-data .................................... FAILURE [  1.233 s]
  [INFO] pet-clinic-web ..................................... SKIPPED
  [INFO] ------------------------------------------------------------------------
  [INFO] BUILD FAILURE
  [INFO] ------------------------------------------------------------------------
  [INFO] Total time:  2.038 s
  [INFO] Finished at: 2018-11-12T20:13:34Z
  [INFO] ------------------------------------------------------------------------
  [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.0:test (default-test) on project pet-clinic-data: There are test failures.
  [ERROR] 
  [ERROR] Please refer to /home/circleci/repo/pet-clinic-data/target/surefire-reports for the individual test results.
  [ERROR] Please refer to dump files (if any exist) [date]-jvmRun[N].dump, [date].dumpstream and [date]-jvmRun[N].dumpstream.
  [ERROR] The forked VM terminated without properly saying goodbye. VM crash or System.exit called?
  [ERROR] Command was /bin/sh -c cd /home/circleci/repo/pet-clinic-data &amp;&amp; /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java -jar /home/circleci/repo/pet-clinic-data/target/surefire/surefirebooter4736163973627057032.jar /home/circleci/repo/pet-clinic-data/target/surefire 2018-11-12T20-13-33_883-jvmRun1 surefire7954723918855682468tmp surefire_01455652050680240151tmp
  [ERROR] Error occurred in starting fork, check output in log
  [ERROR] Process Exit Code: 1
  [ERROR] org.apache.maven.surefire.booter.SurefireBooterForkException: The forked VM terminated without properly saying goodbye. VM crash or System.exit called?
  [ERROR] Command was /bin/sh -c cd /home/circleci/repo/pet-clinic-data &amp;&amp; /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java -jar /home/circleci/repo/pet-clinic-data/target/surefire/surefirebooter4736163973627057032.jar /home/circleci/repo/pet-clinic-data/target/surefire 2018-11-12T20-13-33_883-jvmRun1 surefire7954723918855682468tmp surefire_01455652050680240151tmp
  [ERROR] Error occurred in starting fork, check output in log
  [ERROR] Process Exit Code: 1
  [ERROR]     at org.apache.maven.plugin.surefire.booterclient.ForkStarter.fork(ForkStarter.java:671)
  [ERROR]     at org.apache.maven.plugin.surefire.booterclient.ForkStarter.fork(ForkStarter.java:533)
  [ERROR]     at org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:278)
  [ERROR]     at org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:244)
  [ERROR]     at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeProvider(AbstractSurefireMojo.java:1194)
  [ERROR]     at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAfterPreconditionsChecked(AbstractSurefireMojo.java:1022)
  [ERROR]     at org.apache.maven.plugin.surefire.AbstractSurefireMojo.execute(AbstractSurefireMojo.java:868)
  [ERROR]     at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:137)
  [ERROR]     at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:210)
  [ERROR]     at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:156)
  [ERROR]     at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:148)
  [ERROR]     at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)
  [ERROR]     at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81)
  [ERROR]     at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:56)
  [ERROR]     at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
  [ERROR]     at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:305)
  [ERROR]     at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:192)
  [ERROR]     at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:105)
  [ERROR]     at org.apache.maven.cli.MavenCli.execute(MavenCli.java:956)
  [ERROR]     at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
  [ERROR]     at org.apache.maven.cli.MavenCli.main(MavenCli.java:192)
  [ERROR]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  [ERROR]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  [ERROR]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  [ERROR]     at java.lang.reflect.Method.invoke(Method.java:498)
  [ERROR]     at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
  [ERROR]     at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
  [ERROR]     at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
  [ERROR]     at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
  [ERROR] 
  [ERROR] -&gt; [Help 1]
  [ERROR] 
  </code></pre>
  
  <p>this is pom of  pet-clinic-data catalog:</p>
  
  <p>&lt;</p>
  
  <pre><code>parent&gt;
          &lt;artifactId&gt;sfg-pet-clinic&lt;/artifactId&gt;
          &lt;groupId&gt;guru.springframework&lt;/groupId&gt;
          &lt;version&gt;0.0.5-SNAPSHOT&lt;/version&gt;
      &lt;/parent&gt;
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  
      &lt;artifactId&gt;pet-clinic-data&lt;/artifactId&gt;
  
      &lt;dependencies&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter-data-jpa&lt;/artifactId&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.h2database&lt;/groupId&gt;
              &lt;artifactId&gt;h2&lt;/artifactId&gt;
              &lt;scope&gt;runtime&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;mysql&lt;/groupId&gt;
              &lt;artifactId&gt;mysql-connector-java&lt;/artifactId&gt;
              &lt;scope&gt;runtime&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.projectlombok&lt;/groupId&gt;
              &lt;artifactId&gt;lombok&lt;/artifactId&gt;
              &lt;optional&gt;true&lt;/optional&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter-test&lt;/artifactId&gt;
              &lt;scope&gt;test&lt;/scope&gt;
              &lt;exclusions&gt;
                  &lt;exclusion&gt;
                      &lt;groupId&gt;junit&lt;/groupId&gt;
                      &lt;artifactId&gt;junit&lt;/artifactId&gt;
                  &lt;/exclusion&gt;
              &lt;/exclusions&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.junit.jupiter&lt;/groupId&gt;
              &lt;artifactId&gt;junit-jupiter-api&lt;/artifactId&gt;
              &lt;scope&gt;test&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.junit.jupiter&lt;/groupId&gt;
              &lt;artifactId&gt;junit-jupiter-engine&lt;/artifactId&gt;
              &lt;scope&gt;test&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.mockito&lt;/groupId&gt;
              &lt;artifactId&gt;mockito-junit-jupiter&lt;/artifactId&gt;
              &lt;version&gt;2.22.0&lt;/version&gt;
              &lt;scope&gt;test&lt;/scope&gt;
          &lt;/dependency&gt;
      &lt;/dependencies&gt;
  
      &lt;build&gt;
          &lt;plugins&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
                  &lt;artifactId&gt;spring-boot-maven-plugin&lt;/artifactId&gt;
                  &lt;executions&gt;
                      &lt;execution&gt;
                          &lt;goals&gt;
                              &lt;goal&gt;repackage&lt;/goal&gt;
                          &lt;/goals&gt;
                          &lt;configuration&gt;
                              &lt;skip&gt;true&lt;/skip&gt;
                          &lt;/configuration&gt;
                      &lt;/execution&gt;
                  &lt;/executions&gt;
              &lt;/plugin&gt;
              &lt;plugin&gt;
                  &lt;artifactId&gt;maven-surefire-plugin&lt;/artifactId&gt;
                  &lt;version&gt;2.22.0&lt;/version&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt;
      &lt;/build&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p>What is even weirder when I try another project with use of circleci then I've got preety the same error</p>
  
  <pre><code>[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.20.1:test (default-test) on project spring5-recipe-app: There are test failures.
  [ERROR] 
  [ERROR] Please refer to /home/circleci/repo/target/surefire-reports for the individual test results.
  [ERROR] Please refer to dump files (if any exist) [date]-jvmRun[N].dump, [date].dumpstream and [date]-jvmRun[N].dumpstream.
  [ERROR] The forked VM terminated without properly saying goodbye. VM crash or System.exit called?
  </code></pre>
  
  <p>but I think that adding another project pom with surefire with the same place is pointelss..</p>
  
  <p>My config of circleci</p>
  
  <pre><code># Java Maven CircleCI 2.0 configuration file
      #
      # Check https://circleci.com/docs/2.0/language-java/ for more details
      #
      version: 2
      jobs:
        build:
          docker:
            # specify the version you desire here
            - image: circleci/openjdk:8-jdk
  
            # Specify service dependencies here if necessary
            # CircleCI maintains a library of pre-built images
            # documented at https://circleci.com/docs/2.0/circleci-images/
            # - image: circleci/postgres:9.4
  
          working_directory: ~/repo
  
          environment:
            # Customize the JVM maximum heap limit
            MAVEN_OPTS: -Xmx3200m
  
          steps:
            - checkout
  
            # Download and cache dependencies
            - restore_cache:
                keys:
                - v1-dependencies-{{ checksum "pom.xml" }}
                # fallback to using the latest cache if no exact match is found
                - v1-dependencies-
  
            - run: mvn install -DskipTests
  
            - run: mvn dependency:go-offline
  
            - save_cache:
                paths:
                  - ~/.m2
                key: v1-dependencies-{{ checksum "pom.xml" }}
  
            # run tests!
            - run: mvn integration-test
  </code></pre>
  
  <p>corrected config.yml</p>
  
  <pre><code># Java Maven CircleCI 2.0 configuration file
  #
  # Check https://circleci.com/docs/2.0/language-java/ for more details
  #
  version: 2
  jobs:
    build:
      docker:
        # specify the version you desire here
        - image: circleci/openjdk:8-jdk
  
        # Specify service dependencies here if necessary
        # CircleCI maintains a library of pre-built images
        # documented at https://circleci.com/docs/2.0/circleci-images/
        # - image: circleci/postgres:9.4
  
      working_directory: ~/repo
  
      environment:
        # Customize the JVM maximum heap limit
        MAVEN_OPTS: -Xmx3200m
  
      steps:
        - checkout
  
        # Download and cache dependencies
        - restore_cache:
            keys:
            - v1-dependencies-{{ checksum "pom.xml" }}
            # fallback to using the latest cache if no exact match is found
            - v1-dependencies-
  
        - run: mvn dependency:go-offline
  
        - save_cache:
            paths:
              - ~/.m2
            key: v1-dependencies-{{ checksum "pom.xml" }}
  
        # run tests!
        - run: mvn integration-test
  </code></pre>