NoSuchMethodException when setting forkCount=0 in maven-surefire-plugin #34756
Labels
area/maven
kind/bug
Something isn't working
triage/needs-reproducer
We are waiting for a reproducer.
Describe the bug
Hello,
I am facing issue when tests include third-party shared libraries. Hence, I want to disable all devservices (and Testcontainers shenanigans).
I disable the devservices by inserting the following in my application.yaml:
Expected behavior
The tests (
mvn quarkus:test
) are running the same asmvn quarkus:dev
is running on my machine (that has all third-party dependencies installed).Running surefire with forkCount=0 is not throwing a hard error...
Actual behavior
mvn quarkus:test
is crashing the JVM with a SIGSEGV error.mvn test
is failing due to:When setting 0 in the maven-surefire-plugin as some StackOverflow posts suggest, I'll receive:
Runtime java.lang.RuntimeException: java.lang.NoSuchMethodException: io.quarkus.runner.bootstrap.AugmentActionImpl.<init>(io.quarkus.bootstrap.app.CuratedApplication,java.util.List)
How to Reproduce?
No response
Output of
uname -a
orver
Linux CDE1103 5.19.0-46-generic #47~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Jun 21 15:35:31 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
Output of
java -version
openjdk version "17.0.7" 2023-04-18 OpenJDK Runtime Environment (build 17.0.7+7-Ubuntu-0ubuntu122.04.2) OpenJDK 64-Bit Server VM (build 17.0.7+7-Ubuntu-0ubuntu122.04.2, mixed mode, sharing)
GraalVM version (if different from Java)
No response
Quarkus version or git rev
3.2.0.Final
Build tool (ie. output of
mvnw --version
orgradlew --version
)Apache Maven 3.9.3
Additional information
No response
The text was updated successfully, but these errors were encountered: