Uploaded image for project: 'Maven Surefire'
  1. Maven Surefire
  2. SUREFIRE-1589

mvn test does not run any test error: Could not find or load main class org.apache.maven.surefire.booter.ForkedBooter

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 2.22.1
    • None
    • None
    • None

    Description

      when running mvn test on a fresh jhipster* project i get the following error:

       

      Error: Could not find or load main class org.apache.maven.surefire.booter.ForkedBooter

      this is the output on console:

      [INFO] Results:
      [INFO]
      [INFO] Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
      [INFO]
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 47.236 s
      [INFO] Finished at: 2018-10-31T13:54:49+01:00
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.0:test (default-test) on project stand-bystand: There are test failures.
      [ERROR]
      [ERROR] Please refer to /home/tibi/git/mvntest/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/tibi/git/mvntest && /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java -javaagent:/home/tibi/.m2/repository/org/jacoco/org.jacoco.agent/0.8.2/org.jacoco.agent-0.8.2-runtime.jar=destfile=/home/tibi/git/mvntest/target/test-results/coverage/jacoco/jacoco.exec -Djava.security.egd=file:/dev/./urandom -Xmx256m -jar /home/tibi/git/mvntest/target/surefire/surefirebooter9169551205789441059.jar /home/tibi/git/mvntest/target/surefire 2018-10-31T13-54-48_997-jvmRun1 surefire4367139397955700461tmp surefire_09091753917082460771tmp
      [ERROR] Error occurred in starting fork, check output in log

       

       

      *jhipster is a java angular project generator. i use it for a year and mvn test worked fine up to today.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              tibi tibi
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: