I am using JDK build 171 and have to add extra modules when launching tests in my project.
So I added this block of configuration in my build script:
jvmArgs ‘–add-modules java.xml.bind’
However when I run the tests I get an error: “Unrecognized option: --add-modules java.xml.bind”
However if I append this argument(–add-modules java.xml.bind) to JAVA_JDK_OPTIONS tests are run successfully.