Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
2.7.2
-
None
Description
TestNG is added to the system classloader of the forked test process. Since TestNG has a dependency to Guice 2, projects using Guice 3 run into trouble because Guice 2 wins.
The problem can be fixed by commenting out line 1025 in AbstractSurefireMojo:
public void addProviderArtifactToBootClasspath( Classpath bootclasspath )
throws ArtifactResolutionException, ArtifactNotFoundException
{
// dependencyResolver.addResolvedArtifactToClasspath( bootclasspath, testNgArtifact );
}
Related discussions:
http://maven.40175.n5.nabble.com/Problems-with-Surefire-TestNG-and-Guice-3-td3384082.html
http://groups.google.com/group/testng-users/browse_thread/thread/db58d13ca498bb92