title: Maven ExecutionException The forked VM terminated without properly saying goodbye. VM crash or System.exit called
body: <p>I am using geb spock maven, with surefire version 2.22.0 on ubuntu. Till 2 weeks back it was working fine, but suddenly I am gettig <code>ExecutionException The forked VM terminated without properly saying goodbye. VM crash or System.exit called?</code> error.  Below is my configuration:</p>
  
  <pre><code>Maven Version: Apache Maven 3.6.0 
  Java version: openjdk version "1.8.0_181"
  M3_HOME : /opt/maven
  </code></pre>
  
  <p>When I hit <code>mvn -Dtest="some test " test</code>    command it throws below error:</p>
  
  <pre><code>ExecutionException The forked VM terminated without properly saying goodbye. VM crash or System.exit called?
  Command was /bin/sh -c cd /home/web/workspace/Durgesh_Delete1 &amp;&amp; /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java -jar /home/web/workspace/Durgesh_Delete1/target/surefire/surefirebooter1782527278200611298.jar /home/web/workspace/Durgesh_Delete1/target/surefire 2018-11-16T11-10-54_226-jvmRun3 surefire2754275980317815656tmp surefire_01299389042676135686tmp
  Error occurred in starting fork, check output in log
  Process Exit Code: 1
  </code></pre>
  
  <p>Below is my complete pom.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;project xmlns="http://maven.apache.org/POM/4.0.0"
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
           xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  
      &lt;groupId&gt;net.digital.web&lt;/groupId&gt;
      &lt;artifactId&gt;edge_bdd_automation&lt;/artifactId&gt;
      &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
      &lt;packaging&gt;jar&lt;/packaging&gt;
  
      &lt;properties&gt;
          &lt;skipITTests&gt;false&lt;/skipITTests&gt;
          &lt;geb.version&gt;2.1&lt;/geb.version&gt;
          &lt;selenium.version&gt;3.12.0&lt;/selenium.version&gt;
          &lt;groovy.version&gt;2.4.15&lt;/groovy.version&gt;
          &lt;spock.version&gt;1.1-groovy-2.4&lt;/spock.version&gt;
          &lt;gson.version&gt;2.8.2&lt;/gson.version&gt;
          &lt;httpclient.version&gt;4.3.4&lt;/httpclient.version&gt;
          &lt;httpcore.version&gt;4.3.2&lt;/httpcore.version&gt;
          &lt;surefire.plugin.version&gt;2.22.0&lt;/surefire.plugin.version&gt;
          &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
          &lt;project.reporting.outputEncoding&gt;UTF-8&lt;/project.reporting.outputEncoding&gt;
          &lt;!-- Groovy compiler for Spock/Geb tests --&gt;
          &lt;version.groovy-eclipse-compiler&gt;2.9.2-01&lt;/version.groovy-eclipse-compiler&gt;
          &lt;version.groovy-eclipse-batch&gt;2.4.3-01&lt;/version.groovy-eclipse-batch&gt;
      &lt;/properties&gt;
  
      &lt;repositories&gt;
          &lt;repository&gt;
              &lt;snapshots&gt;
                  &lt;enabled&gt;false&lt;/enabled&gt;
              &lt;/snapshots&gt;
              &lt;id&gt;central&lt;/id&gt;
              &lt;name&gt;bintray&lt;/name&gt;
              &lt;url&gt;http://jcenter.bintray.com&lt;/url&gt;
          &lt;/repository&gt;
      &lt;/repositories&gt;
  
      &lt;pluginRepositories&gt;
          &lt;pluginRepository&gt;
              &lt;snapshots&gt;
                  &lt;enabled&gt;false&lt;/enabled&gt;
              &lt;/snapshots&gt;
              &lt;id&gt;central&lt;/id&gt;
              &lt;name&gt;bintray-plugins&lt;/name&gt;
              &lt;url&gt;http://jcenter.bintray.com&lt;/url&gt;
          &lt;/pluginRepository&gt;
      &lt;/pluginRepositories&gt;
  
      &lt;dependencies&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;junit&lt;/groupId&gt;
              &lt;artifactId&gt;junit&lt;/artifactId&gt;
              &lt;version&gt;4.12&lt;/version&gt;
              &lt;scope&gt;test&lt;/scope&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.spockframework&lt;/groupId&gt;
              &lt;artifactId&gt;spock-core&lt;/artifactId&gt;
              &lt;version&gt;${spock.version}&lt;/version&gt;
              &lt;scope&gt;test&lt;/scope&gt;
              &lt;exclusions&gt;
                  &lt;exclusion&gt;
                      &lt;groupId&gt;org.codehaus.groovy&lt;/groupId&gt;
                      &lt;artifactId&gt;groovy-all&lt;/artifactId&gt;
                  &lt;/exclusion&gt;
              &lt;/exclusions&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.gebish&lt;/groupId&gt;
              &lt;artifactId&gt;geb-spock&lt;/artifactId&gt;
              &lt;version&gt;${geb.version}&lt;/version&gt;
              &lt;scope&gt;test&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;!-- https://mvnrepository.com/artifact/org.gebish/geb-core --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.gebish&lt;/groupId&gt;
              &lt;artifactId&gt;geb-core&lt;/artifactId&gt;
              &lt;version&gt;${geb.version}&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.seleniumhq.selenium&lt;/groupId&gt;
              &lt;artifactId&gt;selenium-java&lt;/artifactId&gt;
              &lt;version&gt;${selenium.version}&lt;/version&gt;
              &lt;scope&gt;test&lt;/scope&gt;
              &lt;exclusions&gt;
                  &lt;exclusion&gt;
                      &lt;groupId&gt;com.google.code.gson&lt;/groupId&gt;
                      &lt;artifactId&gt;gson&lt;/artifactId&gt;
                  &lt;/exclusion&gt;
              &lt;/exclusions&gt;
          &lt;/dependency&gt;
  
          &lt;!-- https://mvnrepository.com/artifact/com.google.code.gson/gson --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.google.code.gson&lt;/groupId&gt;
              &lt;artifactId&gt;gson&lt;/artifactId&gt;
              &lt;version&gt;${gson.version}&lt;/version&gt;
              &lt;!--&lt;scope&gt;test&lt;/scope&gt;--&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.httpcomponents&lt;/groupId&gt;
              &lt;artifactId&gt;httpclient&lt;/artifactId&gt;
              &lt;version&gt;${httpclient.version}&lt;/version&gt;
              &lt;scope&gt;test&lt;/scope&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;com.googlecode.json-simple&lt;/groupId&gt;
              &lt;artifactId&gt;json-simple&lt;/artifactId&gt;
              &lt;version&gt;1.1.1&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;!--Dependencies related to GEB SPOCK reporting--&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.athaydes&lt;/groupId&gt;
              &lt;artifactId&gt;spock-reports&lt;/artifactId&gt;
              &lt;version&gt;1.6.0&lt;/version&gt;
              &lt;scope&gt;test&lt;/scope&gt;
              &lt;!-- this avoids affecting your version of Groovy/Spock --&gt;
              &lt;exclusions&gt;
                  &lt;exclusion&gt;
                      &lt;groupId&gt;*&lt;/groupId&gt;
                      &lt;artifactId&gt;*&lt;/artifactId&gt;
                  &lt;/exclusion&gt;
              &lt;/exclusions&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.codehaus.groovy&lt;/groupId&gt;
              &lt;artifactId&gt;groovy-all&lt;/artifactId&gt;
              &lt;version&gt;${groovy.version}&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;!-- // if you don't already have slf4j-api and an implementation of it in the classpath, add this! --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.slf4j&lt;/groupId&gt;
              &lt;artifactId&gt;slf4j-api&lt;/artifactId&gt;
              &lt;version&gt;1.7.25&lt;/version&gt;
              &lt;scope&gt;test&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.slf4j&lt;/groupId&gt;
              &lt;artifactId&gt;slf4j-simple&lt;/artifactId&gt;
              &lt;version&gt;1.7.25&lt;/version&gt;
              &lt;scope&gt;test&lt;/scope&gt;
          &lt;/dependency&gt;
  
          &lt;!-- https://mvnrepository.com/artifact/org.hamcrest/hamcrest-core --&gt;
          &lt;!-- This dependency is for support of Junit latest version --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.hamcrest&lt;/groupId&gt;
              &lt;artifactId&gt;hamcrest-core&lt;/artifactId&gt;
              &lt;version&gt;1.3&lt;/version&gt;
              &lt;scope&gt;test&lt;/scope&gt;
          &lt;/dependency&gt;
  
          &lt;!-- https://mvnrepository.com/artifact/ru.yandex.qatools.ashot/ashot --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;ru.yandex.qatools.ashot&lt;/groupId&gt;
              &lt;artifactId&gt;ashot&lt;/artifactId&gt;
              &lt;version&gt;1.5.4&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;!-- https://mvnrepository.com/artifact/com.codeborne/phantomjsdriver --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.codeborne&lt;/groupId&gt;
              &lt;artifactId&gt;phantomjsdriver&lt;/artifactId&gt;
              &lt;version&gt;1.4.4&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;!-- Geb - Spock Report --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.aoe&lt;/groupId&gt;
              &lt;artifactId&gt;geb-spock-reports&lt;/artifactId&gt;
              &lt;version&gt;0.1.5&lt;/version&gt;
              &lt;type&gt;pom&lt;/type&gt;
          &lt;/dependency&gt;
  
      &lt;/dependencies&gt;
  
      &lt;build&gt;
          &lt;plugins&gt;
  
              &lt;!-- Maven surefire plugin--&gt;
              &lt;!-- Uncommnet below for invoking parallel execution --&gt;
  
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-surefire-plugin&lt;/artifactId&gt;
                  &lt;version&gt;${surefire.plugin.version}&lt;/version&gt;
                  &lt;dependencies&gt;
                      &amp;lt;!&amp;ndash;SPOCK This is to force to use JUnit 4.7+ Runner &amp;ndash;&amp;gt;
                      &lt;dependency&gt;
                          &lt;groupId&gt;org.apache.maven.surefire&lt;/groupId&gt;
                          &lt;artifactId&gt;surefire-junit47&lt;/artifactId&gt;
                          &lt;version&gt;${surefire.plugin.version}&lt;/version&gt;
                      &lt;/dependency&gt;
                  &lt;/dependencies&gt;
                  &lt;configuration&gt;
                      &lt;skipTests&gt;${skipITTests}&lt;/skipTests&gt;
                      &lt;includes&gt;
                          &lt;include&gt;*Spec.*&lt;/include&gt;
                      &lt;/includes&gt;
                      &lt;systemPropertyVariables&gt;
                          &lt;geb.build.reportsDir&gt;target/test-reports/geb&lt;/geb.build.reportsDir&gt;
                      &lt;/systemPropertyVariables&gt;
  
                      &lt;parallel&gt;classes&lt;/parallel&gt;
                      &lt;forkCount&gt;5&lt;/forkCount&gt;
                      &lt;reuseForks&gt;false&lt;/reuseForks&gt;
                      &lt;useUnlimitedThreads&gt;true&lt;/useUnlimitedThreads&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
  
  
  
  
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
                  &lt;version&gt;3.6.0&lt;/version&gt;
                  &lt;configuration&gt;
                      &lt;source&gt;1.8&lt;/source&gt;
                      &lt;target&gt;1.8&lt;/target&gt;
                      &lt;!-- IMPORTANT --&gt;
                      &lt;useIncrementalCompilation&gt;false&lt;/useIncrementalCompilation&gt;
                      &lt;encoding&gt;${project.build.sourceEncoding}&lt;/encoding&gt;
                      &lt;compilerId&gt;groovy-eclipse-compiler&lt;/compilerId&gt;
                  &lt;/configuration&gt;
                  &lt;dependencies&gt;
                      &lt;dependency&gt;
                          &lt;groupId&gt;org.codehaus.groovy&lt;/groupId&gt;
                          &lt;artifactId&gt;groovy-eclipse-compiler&lt;/artifactId&gt;
                          &lt;version&gt;${version.groovy-eclipse-compiler}&lt;/version&gt;
                      &lt;/dependency&gt;
                      &lt;dependency&gt;
                          &lt;groupId&gt;org.codehaus.groovy&lt;/groupId&gt;
                          &lt;artifactId&gt;groovy-eclipse-batch&lt;/artifactId&gt;
                          &lt;version&gt;${version.groovy-eclipse-batch}&lt;/version&gt;
                      &lt;/dependency&gt;
                  &lt;/dependencies&gt;
              &lt;/plugin&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.codehaus.groovy&lt;/groupId&gt;
                  &lt;artifactId&gt;groovy-eclipse-compiler&lt;/artifactId&gt;
                  &lt;version&gt;${version.groovy-eclipse-compiler}&lt;/version&gt;
                  &lt;extensions&gt;true&lt;/extensions&gt;
              &lt;/plugin&gt;
  
          &lt;/plugins&gt;
      &lt;/build&gt;
  
  
  &lt;/project&gt;
  </code></pre>
  
  <p>Please look into this issue. Thanks</p>