DevOps / Maven Surefire Plugin Interview Questions
Why might a ClassNotFoundException appear only when tests run via Surefire, not in the IDE?
This usually points to a classpath mismatch between the forked test JVM and your IDE's own runtime — often caused by a dependency scoped as provided that tests actually need at runtime, shaded/relocated dependencies, or useSystemClassLoader settings that change how the classpath is assembled for the fork.
More Related questions...