Hello,

We have a few problems with the classpath used by surefire. Some tests fail
randomly due to the order of the classpath managed by Surefire.
During the execution of unit tests, it seems that the classpath used by
maven differs from the classpath used by my IDE (IntelliJ).
In IntelliJ, resources are loaded with the following order :
/target/test-classes
/target/classes
.../aLib.jar
.../anotherLib.jar
...

But, by using maven2, the order is :
...
.../aLib.jar
/target/test-classes
/target/classes
.../anotherLib.jar
...

Our projects use Surefire2.3.
Is it possible to patch surefire to get a correct classpath (such as
IntelliJ) ? Has this bug been fixed with maven2.0.8 ?


Thanks.

Regards,
Alexandre Bunod and Olivier Catteau

Reply via email to