ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas R. (JIRA)" <j...@apache.org>
Subject [jira] Created: (IVY-1101) ivy.xml: ivy-module dependencies cannot be parsed if there are both dependency and override elements present.
Date Wed, 08 Jul 2009 16:57:14 GMT
ivy.xml: ivy-module dependencies cannot be parsed if there are both dependency and override
elements present.
-------------------------------------------------------------------------------------------------------------

                 Key: IVY-1101
                 URL: https://issues.apache.org/jira/browse/IVY-1101
             Project: Ivy
          Issue Type: Bug
    Affects Versions: 2.1.0-RC1
         Environment: Windows XP, Apache Ant version 1.7.1.
            Reporter: Andreas R.
            Priority: Minor


When trying to use the override element (http://ant.apache.org/ivy/history/2.1.0-rc1/ivyfile/override.html)
with the following ivy.xml:
<?xml version="1.0" encoding="ISO-8859-1"?>
<ivy-module version="2.0">
	<info organisation="org.test" module="b" />
	<configurations>
		<conf name="default"/>
		<conf name="test"/>
	</configurations>
	<publications>
		<artifact name="b" />
	</publications>
	<dependencies>
		<override org="org.test" module="a" rev="1.0.3.0" />
		<dependency org="junit" name="junit" rev="3.8.2" conf="test->default" />
	</dependencies>
</ivy-module>
and the following build.xml:
<project name="test" xmlns:ivy="antlib:org.apache.ivy.ant">
	<target name="resolve">
		<ivy:resolve />
	</target>
</project>
, parsing fails at resolve time with the following error:

resolve:
No ivy:settings found for the default reference 'ivy.instance'.  A default instance will be
used
no settings file found, using default...
[ivy:resolve] :: Ivy 2.1.0-rc1 - 20090319213629 :: http://ant.apache.org/ivy/ ::
:: loading settings :: url = jar:file:/C:/Program%20Files/apache-ant-1.7.1/lib/ivy-2.1.0-rc1.jar!/org/apache/ivy/core/settings/ivysettings.xml
[ivy:resolve] [xml parsing: ivy.xml:16:75: cvc-complex-type.2.4.a: Invalid content was found
starting with element 'dependency'. One of '{override, conflict}' is expected. in file:/C:/override_not_working_with_dependency/ivy.xml
[ivy:resolve] ]
BUILD FAILED
C:\override_not_working_with_dependency\build.xml:3: syntax errors in ivy file: java.text.ParseException:
[xml parsing:
ivy.xml:16:75: cvc-complex-type.2.4.a: Invalid content was found starting with element 'dependency'.
One of '{override,
conflict}' is expected. in file:/C:/override_not_working_with_dependency/ivy.xml
]

It parses fine if either the override or dependency element is omitted.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message