If you're having problems when upgrading from an older version of Surefire to a newer version, try setting useSystemClassLoader=false to see if that helps.
Debugging Classpath Problems
If you've read this far, you're probably fully equipped to diagnose problems that may occur during classloading. Here's some general tips to try:
- Run mvn with --debug (aka -X) to get more detailed output
- If useSystemClassLoader=true, look at the surefire booter jar. Open it up (it's just a zip) and read its manifest.
- Run mvn with -Dmaven.surefire.debug, and attach to the running process with a debugger.