You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by "Sergei Ivanov (JIRA)" <ji...@apache.org> on 2011/05/04 03:11:03 UTC

[jira] [Issue Comment Edited] (IVY-1278) Published XML Schema misses declaration for /ivy-module/configurations/@defaultconf attribute

    [ https://issues.apache.org/jira/browse/IVY-1278?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13028537#comment-13028537 ] 

Sergei Ivanov edited comment on IVY-1278 at 5/4/11 1:10 AM:
------------------------------------------------------------

I can confirm that the latest published schema is ok with regards to the 'defaultconf' attribute, and my test ivy.xml file now validates correctly.

      was (Author: sergei_ivanov):
    I can confirm that the latest published schema is ok with regards to the 'defaultconf' attribute, and my test ivy.xml file now validates correctly.
Can anyone please delete the comment above (dated 03/May/11 22:51)?
  
> 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
>            Assignee: Maarten Coene
>            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 will be 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