Skip to content
Advertisement

Adding module export to mvn test execution runtime

Getting this error during tests:

JavaScript

I’ve tried creating jvm.config at the root, next to pom.xml as such

JavaScript

That doesn’t change anything. So i try to configure maven compiler plugin as such:

JavaScript

for the record i even tried it so:

JavaScript

Nothing. Then i tried surefire plugin like so :

JavaScript

Two days working on this and failing miserably. Please help. Using OpenJdk11

Advertisement

Answer

Thank to the other answers, it helped me to dig deeper. I managed to solve it with the following changes in pom

JavaScript

Basically i had to put the argline in properties. Compiler doesn’t seem to need it because it’s not picking it up from there. But surefire does, it’s reading the argline from maven’s properties.

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement