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

test fails (due to bad plexus isolation?) after upgrading from 2.3 to latest 2.4 SNAPSHOT

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Incomplete
    • 2.4
    • None
    • classloading
    • None

    Description

      If I upgrade surefire in the Mowebstart plugin project, I get test failures:

      Caused by: java.lang.NoSuchMethodError: org.codehaus.plexus.util.cli.CommandLineUtils.getSystemEnvVars()Ljava/util/Properties;
      at org.apache.maven.project.interpolation.RegexBasedModelInterpolator.<init>(RegexBasedModelInterpolator.java:63
      )
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
      at java.lang.Class.newInstance0(Class.java:350)
      at java.lang.Class.newInstance(Class.java:303)
      at org.codehaus.plexus.component.factory.java.JavaComponentFactory.newInstance(JavaComponentFactory.java:44)
      ... 43 more

      It sounds like SUREFIRE-347.

      Note that my build was broke on Windows. I usually build on Linux so I didn't notice the problem. Maybe it has been there for a while. I also attach here the error I was getting when building with 2.3 on Windows. So I removed the useSystemClassLoader config (that was introduced to work-around SUREFIRE-347 w/ surefire 2.3...) in my POM and the build passed again on Windows (didn't try on Linux).

      Then I upgraded to surefire plugin 2.4 and started to see failures in test. I added the useSystemClassLoader=true section in the surefire plugin config still the same issue.

      I will try on linux when I get the time...

      Attachments

        1. mvn_2.3_with_systemClassLoader.log
          185 kB
          Jerome Lacoste
        2. mvn_2.3_without_systemClassLoader.log
          189 kB
          Jerome Lacoste
        3. mvn_2.4_with_systemClassLoader.log
          184 kB
          Jerome Lacoste
        4. mvn_2.4_without_systemClassLoader.log
          184 kB
          Jerome Lacoste
        5. pom_2.4_with_systemClassLoader.xml
          8 kB
          Jerome Lacoste
        6. pom.diff
          0.9 kB
          Jerome Lacoste
        7. svn_info.txt
          0.4 kB
          Jerome Lacoste
        8. test-failure-2.4.txt
          10 kB
          Jerome Lacoste

        Activity

          People

            Unassigned Unassigned
            lacostej Jerome Lacoste
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: