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

Surefire 2.21.0 ClassNotFoundException: org.apache.maven.plugin.surefire.StartupReportConfiguration using reuseForks set to false

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.21.0, 2.22.0
    • 3.0.0-M4
    • Maven Surefire Plugin
    • None
    • Ubuntu 18.04
      Java 9.0.4 or Java 10.0.1
      Maven 3.5.4

    Description

      When using reuseForks set to false a ClassNotFoundException is thrown before test even start running. The tests will execute (but not pass) when reuseForks is set to true. This worked fine with Java 9.0.4 and Surefire 2.20.1:

      [INFO] — maven-surefire-plugin:2.22.0:test (default-test) @ razor —
      [INFO]
      [INFO] -------------------------------------------------------
      [INFO] T E S T S
      [INFO] -------------------------------------------------------
      [INFO]
      [INFO] Results:
      [INFO]
      [INFO] Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
      [INFO]
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 1.320 s
      [INFO] Finished at: 2018-07-05T12:32:23-06:00
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.0:test (default-test) on project razor: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.22.0:test failed: java.lang.ClassNotFoundException: org.apache.maven.plugin.surefire.StartupReportConfiguration -> [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.

      Attachments

        1. surefire-1534.zip
          9 kB
          Mark Soderquist
        2. surefire-1534.zip
          11 kB
          Mark Soderquist

        Issue Links

          Activity

            People

              tibordigana Tibor Digana
              Soderquist Mark
              Votes:
              7 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m