Maven native-test failing with No instances of org.junit.platform.launcher.core.ServiceLoaderRegistry are allowed in the image heap as this class should be initialized at image runtime
#358
Labels
question
Further information is requested
Describe the problem
I have an issue when running native tests with the Maven plugin and JUnit 5.9.1. I am not sure if i am doing something wrong, so any help would be appreciated!
Running
mvn -Pnative test
fails with the following:Full stack trace
My understanding was that the plugin was handling some specific JUnit support, which is why i am not sure whether it's a bug or me doing something wrong.
Additional context
Failing Github build log: https://github.com/gotson/sqlite-jdbc/actions/runs/3392382458/jobs/5638526201
POM: https://github.com/gotson/sqlite-jdbc/blob/fix-native-test/pom.xml
System Info (please complete the following information):
To Reproduce
Pull repo https://github.com/gotson/sqlite-jdbc/tree/fix-native-test and run
mvn -Pnative test
with the proper GraalVMThe text was updated successfully, but these errors were encountered: