[
https://issues.apache.org/jira/browse/SUREFIRE-2207?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17781912#comment-17781912
]
Slawomir Jaranowski commented on SUREFIRE-2207:
-----------------------------------------------
Updating plexus-java from 1.1.2 to 1.2.0 should resolve this issue.
ASM in new plexus-java was update to 9.6 -
https://github.com/codehaus-plexus/plexus-languages/releases/tag/plexus-languages-1.2.0
Your example project pass with the latest snapshot version.
> Fails with modular project with Java 21
> ---------------------------------------
>
> Key: SUREFIRE-2207
> URL: https://issues.apache.org/jira/browse/SUREFIRE-2207
> Project: Maven Surefire
> Issue Type: Bug
> Reporter: Frank Ulbricht
> Priority: Major
> Fix For: version-next
>
> Attachments: example_java21.zip
>
>
> In a modular Java 21 project Surefire fails to execute tests that require
> access to the module. It seems, Surefire tries to patch the module but
> somehow the module is not known by Java.
> I added a minimal example to demonstrate the problem. Just run "mvnw test" to
> reproduce.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)