I was just having the same problem with Maven SureFire 2.4.3 and TestNG 5.8 and
Stripes. It works fine in Eclipse but not in Surefire. I have solved the
problem. Apparently Maven Surefire changed their classloader defaults between
2.3.and 2.4. The new default does not put everything into an isolated
classloader like 2.3 did. Once I enabled the <useSystemClassLoader> property my
tests ran fine just like they do in Eclipse.
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<groupId>org.apache.maven.plugins</groupId>
<configuration>
<useSystemClassLoader>false</useSystemClassLoader>
</configuration>
</plugin>
Hope this helps other people
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users