Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
jonashackt opened this issue Dec 19, 2018 · 5 comments

Comments

@jonashackt
Copy link

I'am using rultor to release my Open Source project https://github.com/codecentric/cxf-spring-boot-starter to Maven Central, which workes great most of the time. Only today I'am facing this error in rultor, popping up after a successful Maven compile phase (full log here):

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

The tests won´t start up and so seams to already have described the reason: According to the answer (on Oct. 26 2018) this is an openJDK bug, which is fixed in 8u191-b12.

The issue is more for documentation purposes since I guess rultor cannot do so much about it. Rultor uses (according to the log) the Docker image maven:3-jdk-8 which it self is derived via FROM openjdk:8-jdk from openjdk:8-jdk, which has been build at Oct. 26 2018. My guess is, to either just wait for openJDK to bring a new Docker image to DockerHub which is based on 8u191-b12 or higher - or to change the used Docker image in Rultor (which I wouldn't really preferr, since I also use this image quite a lot in my own projects).

@0crat
Copy link
Collaborator

0crat commented Dec 19, 2018

@yegor256/z please, pay attention to this issue

@0crat
Copy link
Collaborator

0crat commented Dec 19, 2018

@jonashackt/z this project will fix the problem faster if you donate a few dollars to it; just click here and pay via Stripe, it's very fast, convenient and appreciated; thanks a lot!

@yegor256
Copy link
Owner

@jonashackt you can submit a pull request with the changes to our Dockerfile

jonashackt added a commit to codecentric/cxf-spring-boot-starter that referenced this issue Jan 29, 2019
jonashackt added a commit to codecentric/cxf-spring-boot-starter that referenced this issue Jan 29, 2019
…h to yegor maven Docker image, since standard jdk-11 image doesn't seem to be compatible with this project right now)
jonathangarcia414 added a commit to jonathangarcia414/spring-boot-starter that referenced this issue Nov 8, 2022
jonathangarcia414 added a commit to jonathangarcia414/spring-boot-starter that referenced this issue Nov 8, 2022
…h to yegor maven Docker image, since standard jdk-11 image doesn't seem to be compatible with this project right now)
@pnatashap
Copy link
Contributor

@yegor256 looks like this issue is not actual any more as JDK 11 and 17 are installed in docker
https://github.com/yegor256/rultor-image/blob/master/Dockerfile#L155

@yegor256
Copy link
Owner

@jonashackt indeed, we have JDK inside our Docker image now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants