Hi
I am getting below error while trying to run maven build with forkcount greater than 0. It is working when we are not specifying forkcount or setting forkcount greater than 0. Due to this jacocoreport.xml is not generated.
java version : 21
maven build error:
[INFO] — maven-surefire-plugin:3.5.1:test (default-test) @ phs-service —
[INFO] Using auto detected provider org.apache.maven.surefire.junitplatform.JUnitPlatformProvider
[INFO]
[INFO] -------------------------------------------------------
[INFO] T E S T S
[INFO] -------------------------------------------------------
Unrecognized VM option ‘UseSplitVerifier’
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
[INFO]
[INFO] Results:
[INFO]
[INFO] Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 11.649 s
[INFO] Finished at: 2024-12-19T17:47:36Z
[INFO] ------------------------------------------------------------------------
Error: Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.5.1:test (default-test) on project phs-service:
Error:
Error: Please refer to /home/runner/_work/phs-service/phs-service/target/surefire-reports for the individual test results.
Error: Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.
Error: The forked VM terminated without properly saying goodbye. VM crash or System.exit called?
Error: Command was /bin/sh -c cd ‘/home/runner/_work/phs-service/phs-service’ && ‘/home/runner/_work/_tool/Java_Adopt_jdk/21.0.5-11.0.LTS/x64/bin/java’ ‘-XX:-UseSplitVerifier’ ‘-jar’ ‘/home/runner/_work/phs-service/phs-service/target/surefire/surefirebooter-20241219174736352_3.jar’ ‘/home/runner/_work/phs-service/phs-service/target/surefire’ ‘2024-12-19T17-47-36_257-jvmRun1’ ‘surefire-20241219174736352_1tmp’ ‘surefire_0-20241219174736352_2tmp’
Error: Error occurred in starting fork, check output in log
Hey there.
I don’t think this has anything to do with SonarQube, so this probably isn’t the right forum.
How’d you wind up here?
You should probably refer to the documentation for maven-surefire-plugin.