Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-4006

[regression] Test failures while building plexus-i18n

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0-alpha-2
    • Fix Version/s: 3.0-alpha-2
    • Component/s: POM
    • Labels:
      None

      Description

      While building plexus-i18n with 3.x trunk (r737917), the following test fail (see attached Surefire report):

      Tests in error:
        testLocalization(org.codehaus.plexus.i18n.DefaultI18NTest)
        testLocalizedMessagesWithFormatting(org.codehaus.plexus.i18n.DefaultI18NTest)
        testLocalizedMessagesWithNonStandardLocale(org.codehaus.plexus.i18n.DefaultI18NTest)
      

      Some diffs of the build with 2.0.9:
      3.0-alpha-2:

      [INFO] [dependency:tree]
      [INFO] org.codehaus.plexus:plexus-i18n:jar:1.0-beta-11-SNAPSHOT
      [INFO] +- org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1:compile
      [INFO] |  \- classworlds:classworlds:jar:1.1-alpha-2:compile
      [INFO] +- org.codehaus.plexus:plexus-utils:jar:1.5.5:compile
      [INFO] \- junit:junit:jar:3.8.2:test
      [DEBUG]   (f) classpathElements = [
      	M:\maven\plexus\plexus-components\plexus-i18n/target/test-classes, 
      	M:\maven\plexus\plexus-components\plexus-i18n/target/classes, 
      	U:\local-repo\org\codehaus\plexus\plexus-container-default\1.0-alpha-9-stable-1\plexus-container-default-1.0-alpha-9-stable-1.jar, 
      	U:\local-repo\org\codehaus\plexus\plexus-utils\1.5.5\plexus-utils-1.5.5.jar, 
      	U:\local-repo\classworlds\classworlds\1.1-alpha-2\classworlds-1.1-alpha-2.jar, 
      	U:\local-repo\junit\junit\3.8.2\junit-3.8.2.jar
      	]
      [DEBUG] Test Classpath :
      [DEBUG]   U:\local-repo\org\codehaus\plexus\plexus-container-default\1.0-alpha-9-stable-1\plexus-container-default-1.0-alpha-9-stable-1.jar
      [DEBUG]   U:\local-repo\org\codehaus\plexus\plexus-utils\1.5.5\plexus-utils-1.5.5.jar
      [DEBUG]   U:\local-repo\classworlds\classworlds\1.1-alpha-2\classworlds-1.1-alpha-2.jar
      [DEBUG]   U:\local-repo\junit\junit\3.8.2\junit-3.8.2.jar
      [DEBUG]   M:\maven\plexus\plexus-components\plexus-i18n\target\classes
      [DEBUG]   M:\maven\plexus\plexus-components\plexus-i18n\target\test-classes
      

      2.0.9:

      [INFO] [dependency:tree]
      [INFO] org.codehaus.plexus:plexus-i18n:jar:1.0-beta-11-SNAPSHOT
      [INFO] +- org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1:compile
      [INFO] |  \- classworlds:classworlds:jar:1.1-alpha-2:compile
      [INFO] +- org.codehaus.plexus:plexus-utils:jar:1.5.5:compile
      [INFO] \- junit:junit:jar:3.8.2:test
      [DEBUG]   (f) classpathElements = [
      	M:\maven\plexus\plexus-components\plexus-i18n\target\test-classes, 
      	M:\maven\plexus\plexus-components\plexus-i18n\target\classes, 
      	U:\local-repo\org\codehaus\plexus\plexus-container-default\1.0-alpha-9-stable-1\plexus-container-default-1.0-alpha-9-stable-1.jar, 
      	U:\local-repo\junit\junit\3.8.2\junit-3.8.2.jar, 
      	U:\local-repo\org\codehaus\plexus\plexus-utils\1.5.5\plexus-utils-1.5.5.jar, 
      	U:\local-repo\classworlds\classworlds\1.1-alpha-2\classworlds-1.1-alpha-2.jar
      	]
      [DEBUG] Test Classpath :
      [DEBUG]   M:\maven\plexus\plexus-components\plexus-i18n\target\test-classes
      [DEBUG]   M:\maven\plexus\plexus-components\plexus-i18n\target\classes
      [DEBUG]   U:\local-repo\org\codehaus\plexus\plexus-container-default\1.0-alpha-9-stable-1\plexus-container-default-1.0-alpha-9-stable-1.jar
      [DEBUG]   U:\local-repo\junit\junit\3.8.2\junit-3.8.2.jar
      [DEBUG]   U:\local-repo\org\codehaus\plexus\plexus-utils\1.5.5\plexus-utils-1.5.5.jar
      [DEBUG]   U:\local-repo\classworlds\classworlds\1.1-alpha-2\classworlds-1.1-alpha-2.jar
      

      Note the forward slashes in the paths to the project's main/test classes output by Maven 3.x. This might trigger a badly coded file equality check in Surefire, possibly the cause for the different test class paths.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              bentmann Benjamin Bentmann
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: