Module wide exclude must be at the end?
---------------------------------------

                 Key: IVY-1311
                 URL: https://issues.apache.org/jira/browse/IVY-1311
             Project: Ivy
          Issue Type: Bug
          Components: Core
    Affects Versions: 2.2.0
            Reporter: Oliver Wang


While I try to turn off commons-logging from Spring using IVY's module wide 
exclude.
If I put *exclude* right after <dependencies>

{{
   <dependencies>
      <exclude module="commons-logging" conf="*" />
      <dependency org="org.springframework" name="spring-context"
            rev="${spring.version}" transitive="true" conf="base->default">
      </dependency>
      ....
    </dependencies>
}}

then, ivy:resolve will issue a parsing error:

{{
dep:
[ivy:resolve] :: Ivy 2.2.0 - 20100923230623 :: http://ant.apache.org/ivy/ ::
[ivy:resolve] [xml parsing: ivy.xml:17:55: cvc-complex-type.2.4.a: Invalid 
content was found starting with element 'dependency'. One of '{exclude, 
override, conflict}' is expected. in file:/Users/oliver/test/ivy.xml
[ivy:resolve] ]

BUILD FAILED
}}

However, if I move the exclude to the end, right before the closing tag, the 
error goes away.
I think this is some sort of bug, please confirm.


{{
   <dependencies>
      <dependency org="org.springframework" name="spring-context"
            rev="${spring.version}" transitive="true" conf="base->default">
      </dependency>
      ....
    <exclude module="commons-logging" conf="*" />
    </dependencies>
}}



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

        

Reply via email to