-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Surefire can't find class org.apache.maven.plugin.surefire.log.api.ConsoleLogger
#1367
Comments
Copied from #801 (comment) written by @joakime -- There are 4 separate projects.
So, there's 2 Scenario 1: forkCount with reuseForks <plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.21.0</version>
<configuration>
<forkCount>1</forkCount>
<reuseForks>false</reuseForks>
</configuration>
</plugin> Scenario 1: forkMode = always <plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.21.0</version>
<configuration>
<forkMode>always</forkMode>
</configuration>
</plugin> |
I am also seeing this. If |
In any case the error is consistent with OP's: |
This is still broken. Have we an ETA when this will be fixed? These are versions of plugins and JUnit 5 I'm using:
|
This issue will be solved as soon as Surefire has native support for the JUnit platform (cf. apache/maven-surefire#184). For now, please add the following to the <dependency>
<groupId>org.apache.maven.surefire</groupId>
<artifactId>surefire-logger-api</artifactId>
<version>2.21.0</version>
<!-- to get around bug https://github.com/junit-team/junit5/issues/1367 -->
<scope>test</scope>
<optional>true</optional>
</dependency> |
@joakime @triceo @bigkahuna1uk @chibenwa As Surefire 2.22.0 is released, may you please re-run your setup and verify if the issue still persists using the latest-and-greatest version with native JUnit Platform support? Thanks in advance. |
Works like a charm, @sormuras. Thanks! |
@sormuras we have enabled Surefire 2.22.0 in our junit5 branch - jetty/jetty.project@af7b52d So far, with nearly a dozen features disabled, it seems to be working. |
@joakime Just tried it and…I'm still using 2.19.1! |
Brings native JUnit 5 support, fixing junit-team/junit5#1367
When you update to Surefire 2.20.0, make sure to remove your |
@sormuras I think we can fix this issue now that Surefire 2.22.0 is released with native support for JUnit Platform, right? |
Closing this issue -- please report new issues at https://maven.apache.org/surefire/issue-tracking.html |
Using [email protected] and versions of junit-jupiter(5.2.0) and junit-platform(1.2.0) here. When enabling <forkCount>3</forkCount>
<reuseForks>true</reuseForks> the plugin still fails with the same error. |
As @sormuras mentioned:
I am therefore locking this issue. Further discussions regarding Maven Surefire's support for the JUnit Platform should take place in the Maven Surefire issue tracker. |
Follow-up from #801 (comment)
The text was updated successfully, but these errors were encountered: