We are converting an existing app from Java 7 to Java 9 and I'm trying to follow this page here for the minimum requirements: https://cwiki.apache.org/confluence/display/MAVEN/Java+9+-+Jigsaw
When I try to run mvn clean install on a few of our components, I keep getting:
Caused by: org.apache.maven.surefire.booter.SurefireBooterForkException: The forked VM terminated without properly saying goodbye. VM crash or System.exit called?
Command was cmd.exe /X /C ""C:\Program Files\Java\jdk-9.0.1\bin\java" --add-modules java.se.ee -XX:-UseSplitVerifier -jar
When I try to google UseSplitVerifier, I keep seeing things about StackMapTable or if UseSplitVerifier is safe to be used. But I don't really know what UseSplitVerifier is and what is the correct approach to build from J7 -> J9.
Edit
My pom.xml has this plugin:
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.20.1</version>
Looking at the https://cwiki.apache.org/confluence/display/MAVEN/Java+9+-+Jigsaw link it says minimum is to use 2.20.1 so I thought that would be ok? When I search my project, I don't see any UseSplitVerifier
argument being passed so I'm not sure what is using that command except the surefire plugin.