Error: Could not find or load main class org.apache.maven.surefire.booter.ForkedBooter

Just ran into this issue when trying to run Maven tests on one of our modules.

Looks like due to a bug in the latest Java OpenJDK release:

Following one of the suggests in the above post, I added this flag to the surefire configuration and it did appear to resolve the issue:

for example, see:

fyi @dkayiwa it looks like you may have run into this with the REST module today.

1 Like

As you can see here: New Bamboo agent available for tests

We have been using this successfully to all modules:

But it turned out to introduce more test failures for the webservices rest module. So i have instead applied your fix and it worked:

Thanks @mogoodrich :slight_smile:

cc @cintiadr

1 Like

Thanks for posting this @mogoodrich - helped me with metadatadeploy today :slight_smile:

It works! Thanks!