You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Mark (JIRA)" <ji...@apache.org> on 2018/07/05 18:57:00 UTC

[jira] [Updated] (SUREFIRE-1534) Surefire 2.21.0 ClassNotFoundException: org.apache.maven.plugin.surefire.StartupReportConfiguration using reuseForks set to false

     [ https://issues.apache.org/jira/browse/SUREFIRE-1534?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mark updated SUREFIRE-1534:
---------------------------
    Summary: Surefire 2.21.0 ClassNotFoundException: org.apache.maven.plugin.surefire.StartupReportConfiguration using reuseForks set to false  (was: Surefire 2.21.0 ClassNotFoundException: org.apache.maven.plugin.surefire.StartupReportConfiguration)

> Surefire 2.21.0 ClassNotFoundException: org.apache.maven.plugin.surefire.StartupReportConfiguration using reuseForks set to false
> ---------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: SUREFIRE-1534
>                 URL: https://issues.apache.org/jira/browse/SUREFIRE-1534
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: Maven Surefire Plugin
>    Affects Versions: 2.21.0, 2.22.0
>         Environment: Ubuntu 18.04
> Java 9.0.4 or Java 10.0.1
> Maven 3.5.4
>            Reporter: Mark
>            Priority: Major
>
> 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.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)