You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ivy-user@ant.apache.org by Gareth Western <ga...@garethwestern.com> on 2009/01/14 13:51:59 UTC

Problem with ivy.xml included in the root directory for ivy distribution?

Hi,

I've just downloaded the ivy-2.0.0-rc2 binary zip file (without deps).
I ran "ant" in the root directory (apache-ivy-2.0.0-rc2) and got the
following error message:

gareth@deathstar:~/software/apache-ivy-2.0.0-rc2$ ant
Buildfile: build.xml

init-ivy:

retrieve-all:
No ivy:settings found for the default reference 'ivy.instance'.  A
default instance will be used
     [null] no settings file found, using default...
     [null] :: Ivy 2.0.0-beta2 - 20080225093827 :: http://ant.apache.org/ivy/ ::
     [null] :: loading settings :: url =
jar:file:/usr/share/ant/lib/ivy-2.0.0-beta2.jar!/org/apache/ivy/core/settings/ivysettings.xml
[ivy:retrieve] [xml parsing:
file:/home/gareth/software/apache-ivy-2.0.0-rc2/ivy.xml:52:112:
cvc-complex-type.3.2.2: Attribute 'revConstraint' is not allowed to
appear in element 'dependency'. in
file:/home/gareth/software/apache-ivy-2.0.0-rc2/ivy.xml
[ivy:retrieve] ]

BUILD FAILED
/home/gareth/software/apache-ivy-2.0.0-rc2/build.xml:55: syntax errors
in ivy file: java.text.ParseException: [xml parsing:
file:/home/gareth/software/apache-ivy-2.0.0-rc2/ivy.xml:52:112:
cvc-complex-type.3.2.2: Attribute 'revConstraint' is not allowed to
appear in element 'dependency'. in
file:/home/gareth/software/apache-ivy-2.0.0-rc2/ivy.xml
]


The script works if I remove the "revConstraint" attribute on line 52
of the ivy.xml file. Does this mean it's a bug in the script or is my
environment just set up incorrectly somehow?

Thanks,

Gareth

Re: Problem with ivy.xml included in the root directory for ivy distribution?

Posted by Gareth Western <ga...@garethwestern.com>.
Sorry, nevermind, it was a problem with my environment. I had a copy
of an older version of ivy in my $ANT_HOME/lib directory. >:(

On Wed, Jan 14, 2009 at 12:51 PM, Gareth Western
<ga...@garethwestern.com> wrote:
> Hi,
>
> I've just downloaded the ivy-2.0.0-rc2 binary zip file (without deps).
> I ran "ant" in the root directory (apache-ivy-2.0.0-rc2) and got the
> following error message:
>
> gareth@deathstar:~/software/apache-ivy-2.0.0-rc2$ ant
> Buildfile: build.xml
>
> init-ivy:
>
> retrieve-all:
> No ivy:settings found for the default reference 'ivy.instance'.  A
> default instance will be used
>     [null] no settings file found, using default...
>     [null] :: Ivy 2.0.0-beta2 - 20080225093827 :: http://ant.apache.org/ivy/ ::
>     [null] :: loading settings :: url =
> jar:file:/usr/share/ant/lib/ivy-2.0.0-beta2.jar!/org/apache/ivy/core/settings/ivysettings.xml
> [ivy:retrieve] [xml parsing:
> file:/home/gareth/software/apache-ivy-2.0.0-rc2/ivy.xml:52:112:
> cvc-complex-type.3.2.2: Attribute 'revConstraint' is not allowed to
> appear in element 'dependency'. in
> file:/home/gareth/software/apache-ivy-2.0.0-rc2/ivy.xml
> [ivy:retrieve] ]
>
> BUILD FAILED
> /home/gareth/software/apache-ivy-2.0.0-rc2/build.xml:55: syntax errors
> in ivy file: java.text.ParseException: [xml parsing:
> file:/home/gareth/software/apache-ivy-2.0.0-rc2/ivy.xml:52:112:
> cvc-complex-type.3.2.2: Attribute 'revConstraint' is not allowed to
> appear in element 'dependency'. in
> file:/home/gareth/software/apache-ivy-2.0.0-rc2/ivy.xml
> ]
>
>
> The script works if I remove the "revConstraint" attribute on line 52
> of the ivy.xml file. Does this mean it's a bug in the script or is my
> environment just set up incorrectly somehow?
>
> Thanks,
>
> Gareth
>