Uploaded image for project: 'Maven Surefire'
  1. Maven Surefire
  2. SUREFIRE-699

Remove TestNG from system classpath of forked process

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 2.7.2
    • 2.8
    • 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

      Attachments

        Activity

          People

            krosenvold Kristian Rosenvold
            unguiculus Reinhard Nägele
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: