title: Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin
body: <p>I am executing a selenium webdriver maven project on remote webdrivers and everytime I run it the actual test case passes but the build fails due to the following error </p>
  
  <p>This is the output of my run in console. Please can someone help me to resolve this issue.</p>
  
  <pre><code>Running TestSuite
  log4j:WARN No appenders could be found for logger (org.apache.http.client.protocol.RequestAddCookies).
  log4j:WARN Please initialize the log4j system properly.
  log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
  Oct 02, 2014 1:03:47 PM com.test.perioddelay.Log info
  INFO: ##################################
  Oct 02, 2014 1:03:47 PM com.test.perioddelay.Log info
  INFO: This is Silverscreentest-men
  Maximize the browser-window
  Wait for 6 seconds
  Wait for 6 seconds
  Click on order now- period delay
  Confirm checkbox is pre-selected
  Wait for 6 seconds
  Wait for 6 seconds
  Wait for 6 seconds
  Wait for 6 seconds
  Wait for 6 seconds
  Wait for 6 seconds
  Wait for 6 seconds
  Wait for 6 seconds
  Wait for 6 seconds
  Wait for 6 seconds
  Wait for 6 seconds
  Wait for 6 seconds
  Wait for 6 seconds
  Wait for 6 seconds
  Wait for 6 seconds
  Wait for 6 seconds
  Wait for 6 seconds
  Switch to frame
  Wait for 6 seconds
  Wait for 6 seconds
  Wait for 6 seconds
  Take screenshot
  Wait for 6 seconds
  Oct 02, 2014 1:05:04 PM com.test.perioddelay.Log info
  INFO: ##################################
  Oct 02, 2014 1:05:04 PM com.test.perioddelay.Log info
  INFO: This is Silverscreentest-men
  Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 120.671 sec
  
  Results :
  
  Tests run: 1, Failures: 0, Errors: 0, Skipped: 0
  
  [INFO] ------------------------------------------------------------------------
  [INFO] BUILD FAILURE
  [INFO] ------------------------------------------------------------------------
  [INFO] Total time: 2:47.092s
  [INFO] Finished at: Thu Oct 02 13:05:04 BST 2014
  [INFO] Final Memory: 9M/122M
  [INFO] ------------------------------------------------------------------------
  [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.1:test (default-test) on project com.test: Error occurred in starting fork, check output in log -&gt; [Help 1]
  [ERROR] 
  [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
  [ERROR] Re-run Maven using the -X switch to enable full debug logging.
  [ERROR] 
  [ERROR] For more information about the errors and possible solutions, please read the following articles:
  [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionExc`enter code here`eption
  
  Process finished with exit code 1
  </code></pre>
  
  <p>Below is my 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;perioddelay&lt;/groupId&gt;
      &lt;artifactId&gt;com.test&lt;/artifactId&gt;
      &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
      &lt;dependencies&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.seleniumhq.selenium&lt;/groupId&gt;
              &lt;artifactId&gt;selenium-java&lt;/artifactId&gt;
              &lt;version&gt;2.42.2&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.testng&lt;/groupId&gt;
              &lt;artifactId&gt;testng&lt;/artifactId&gt;
              &lt;version&gt;6.8.8&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;junit&lt;/groupId&gt;
              &lt;artifactId&gt;junit&lt;/artifactId&gt;
              &lt;version&gt;4.12-beta-1&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;log4j&lt;/groupId&gt;
              &lt;artifactId&gt;log4j&lt;/artifactId&gt;
              &lt;version&gt;1.2.17&lt;/version&gt;
          &lt;/dependency&gt;
  
  
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.seleniumhq.selenium&lt;/groupId&gt;
              &lt;artifactId&gt;selenium-server&lt;/artifactId&gt;
              &lt;version&gt;2.42.2&lt;/version&gt;
              &lt;scope&gt;compile&lt;/scope&gt;
          &lt;/dependency&gt;
      &lt;/dependencies&gt;
  
      &lt;build&gt;
          &lt;pluginManagement&gt;
              &lt;plugins&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;2.12.1&lt;/version&gt;
                      &lt;configuration&gt;
                          &lt;skipTests&gt;false&lt;/skipTests&gt;
                          &lt;testFailureIgnore&gt;true&lt;/testFailureIgnore&gt;
                          &lt;forkMode&gt;once&lt;/forkMode&gt;
                        &lt;suiteXmlFiles&gt;
                              &lt;suiteXmlFile&gt;src/main/resources/testng.xml&lt;/suiteXmlFile&gt;
                          &lt;/suiteXmlFiles&gt;
                      &lt;/configuration&gt;
                  &lt;/plugin&gt;
  
              &lt;/plugins&gt;
          &lt;/pluginManagement&gt;
      &lt;/build&gt;
  
  
  
  
  
  
  &lt;/project&gt;
  </code></pre>