Just in case you try to use an exclude with Ivy and get the following message without having any problems with your ivy.xml:
Invalid content was found starting with element 'dependency'. One of '{exclude, override, conflict}' is expected.
Try to move it to the bottom of the file and build again. It's a bug in the spec and should go away just like that.