ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergei Ivanov (JIRA)" <j...@apache.org>
Subject [jira] [Created] (IVY-1278) Published XML Schema misses declaration for /ivy-module/configurations/@defaultconf attribute
Date Mon, 21 Mar 2011 11:32:05 GMT
Published XML Schema misses declaration for /ivy-module/configurations/@defaultconf attribute
---------------------------------------------------------------------------------------------

                 Key: IVY-1278
                 URL: https://issues.apache.org/jira/browse/IVY-1278
             Project: Ivy
          Issue Type: Bug
    Affects Versions: 2.2.0
            Reporter: Sergei Ivanov
            Priority: Blocker


According to Ivy reference, 'defaultconf' attribute has been introduced in 2.2:
http://ant.apache.org/ivy/history/latest-milestone/ivyfile/configurations.html

However, looking at the published XML schema, it looks like it was not updated to provide
definition for the new attribute:
http://ant.apache.org/ivy/schemas/ivy.xsd

As a result, our build fails with XML validation error if we include schema reference:

[ivy:resolve]           ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve]           ::          UNRESOLVED DEPENDENCIES         ::
[ivy:resolve]           ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve]           :: org.apache#xalan;2.7.1: java.text.ParseException: [xml parsing:
ivy-2.7.1.xml.original:8:41: cvc-complex-type.3.2.2: Attribute 'defaultconf' is not allowed
to appear in element 'configurations'. in file:/opt/app/...../hudson/ivyrepo/cache/org.apache/xalan/2.7.1/ivy-2.7.1.xml.original
[ivy:resolve] ]

This is a trivial fix to the schema definition, you just need to include the following line
inside type definition for 'configurations' element:

<xs:attribute name="defaultconf" type="xs:string"/>

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message