Uploaded image for project: 'Ivy'
  1. Ivy
  2. IVY-837

Ivy unit tests fail because 'classifier' attribute of 'artifacts' element is missing in ivy.xsd

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0-RC1
    • 2.0-RC1
    • Core
    • None

    Description

      Currently the ivy unit tests fail because 'classifier' attribute of 'artifacts' element is missing in ivy.xsd:

      Test report of class org.apache.ivy.plugins.parser.m2.PomModuleDescriptorParserTest indicates a failure of testDependenciesWithClassifier:

      [xml parsing: test-write.xml:23:86: cvc-complex-type.3.2.2: Attribute 'classifier' is not allowed to appear in element 'artifact'. in file:/D:/java-apps/ivy/build/test/test-write.xml , xml parsing: test-write.xml:24:87: cvc-complex-type.3.2.2: Attribute 'classifier' is not allowed to appear in element 'artifact'. in file:/D:/java-apps/ivy/build/test/test-write.xml ]
      
      java.text.ParseException: [xml parsing: test-write.xml:23:86: cvc-complex-type.3.2.2: Attribute 'classifier' is not allowed to appear in element 'artifact'. in file:/D:/java-apps/ivy/build/test/test-write.xml
      , xml parsing: test-write.xml:24:87: cvc-complex-type.3.2.2: Attribute 'classifier' is not allowed to appear in element 'artifact'. in file:/D:/java-apps/ivy/build/test/test-write.xml
      ]
      at org.apache.ivy.plugins.parser.AbstractModuleDescriptorParser$AbstractParser.checkErrors(AbstractModuleDescriptorParser.java:89)
      at org.apache.ivy.plugins.parser.AbstractModuleDescriptorParser$AbstractParser.getModuleDescriptor(AbstractModuleDescriptorParser.java:342)
      at org.apache.ivy.plugins.parser.xml.XmlModuleDescriptorParser.parseDescriptor(XmlModuleDescriptorParser.java:100)
      at org.apache.ivy.plugins.parser.AbstractModuleDescriptorParser.parseDescriptor(AbstractModuleDescriptorParser.java:48)
      at org.apache.ivy.plugins.parser.m2.PomModuleDescriptorParserTest.testDependenciesWithClassifier(PomModuleDescriptorParserTest.java:211)
      

      Also note that some documentation about the intentions behind this new attribute would not be amiss.

      Attachments

        1. IVY-837-patch.txt
          1 kB
          Erik-Berndt Scheper

        Issue Links

          Activity

            People

              xavier Xavier Hanin
              fbascheper Erik-Berndt Scheper
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: