I've found myself the response by searching JIRA : SUREFIRE-61
Using surefire-2.4-SNAPSHOT solves my issue.
2007/9/6, nicolas de loof <[EMAIL PROTECTED]>:
>
> Hello,
>
> I've got an issue in my project that uses retrotranlator :
> http://hammerfest.svn.sourceforge.net//svnroot/hammerfest/retrotanslator-runtime13/trunk/
>
>
> The retrotranslator runtime is declared as a dependency to compile project
> classes (that is an extension to retrotranslator)
> Retrotranslator is used to process classes AND the content of this
> dependency jar into target/classes.
>
> Surefire then starts in the test phase, and fails with some "Unsupported
> major.minor version" on retrotranslator-runtime classes.
> The failing class is both present in target/classes (translated to Java1.3)
> AND in dependencies (as java
> 1.4)
>
> I added this code in my testcase :
> System.out.println( "WeakIdentityTable = "
> + getClass().getClassLoader().getResource(
> "net/sf/retrotranslator/runtime/impl/WeakIdentityTable.class" )
> );
>
> I get the unexpected behaviour to get WeakIdentityTable.class from the
> jar, and not from target/classes.
>
> Is there anyway to exclude a dependency from the test phase (make the
> dependency available ONLY for compile ?)
> OR
> Is there any way to place target/classes prior to dependecies in the test
> classpath ?
>
> Any suggestion is welcome. I've no other option than switching to an ant
> script.
>
> Nico.
>