Skip to content

How to fix unnamed module exception in project tests when I migrate to java 21? #7446

Closed Answered by 6PATyCb
6PATyCb asked this question in Q&A
Discussion options

You must be logged in to vote

I was found how to fix it:

             <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <version>3.2.5</version>
                <configuration>
                    <argLine>
                        --add-exports java.xml/com.sun.org.apache.xml.internal.serialize=ALL-UNNAMED
                    </argLine>
                </configuration>
            </plugin>

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by 6PATyCb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant