You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Fl...@gmx.de on 2008/12/30 11:35:18 UTC

Surefire loads old version of lib where my tests depend on a newer one

Hi all,

maybe somebody has an idea on how to solve this one:

My tests depend on commons-lang 2.4.
When running my tests with surefire in the manifest-only-jar-mode, the classpath in the jar is contains commons-lang twice:
- Once commons-lang-2.1 at the top with all the other surefire stuff as a dependency of surefire itself.
- Once commons-lang-2.4 more to the bottom - that's my dependency.

Now it depends on where a class is loaded from, and in all my tests always the 2.1-version is loaded. Leaving my tests (which depend on methods which only exist in 2.4 of classes which also exist in 2.1) fail with method not found exceptions.

Thanks in advance,

Flo

-- 
Sensationsangebot verlängert: GMX FreeDSL - Telefonanschluss + DSL 
für nur 16,37 Euro/mtl.!* http://dsl.gmx.de/?ac=OM.AD.PD003K1308T4569a

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org