olamy commented on issue #2151: URL: https://github.com/apache/maven-surefire/issues/2151#issuecomment-5364346523
The problem is coming from this `<forkCount>2C</forkCount>`. If you were not using this, you would not have any problem. But since you are asking for multiple forks, Surefire needs to know the list of test classes to run to balance them across the pool of forks. To accomplish this, Surefire is using this method https://github.com/apache/maven-surefire/blob/08573646a29088ee6b01deda269b43a034371889/surefire-providers/surefire-junit-platform/src/main/java/org/apache/maven/surefire/junitplatform/JUnitPlatformProvider.java#L195 . The problem is actually this is running inside the same jvm as Maven itself is running to fix your issue this sould be running in a forked process started with the jdk defined by your toolchain. So forked process means find some communicate the result of the finding to the original process, etc... -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
