On Mar 5, 2008, at 1:59 PM, Xavier Hanin wrote:

On Wed, Mar 5, 2008 at 1:09 PM, Hans Dockter <[EMAIL PROTECTED]> wrote:

After updating to ivy2-beta2 I get a lot of a particular error messag
in my log. The build still works fine but those messages are irritating:

Yes, this problem has already been reported, and fixed in trunk (IVY-750).

Cool

Do you have a lof of cases with these errors?

Yes, many. But they only occur when using my build tool (Gradle), which does: ResolveReport resolveReport = ivy.resolve (moduleDescriptor, resolveOptions)

In my ant build, which uses solely the cachepath task, the messages don't show up.

- Hans


Xavier




------------------------
loadData of commons-math#commons-math;1.1 of rootConf=build
       using chain to resolve commons-math#commons-math;1.1
chain: Checking cache for: dependency: commons-math#commons-math;1.1
{build=[default]}
chain: no namespace defined: using system
[Error] :43:30: cos-nonambig: "":license and WC[##any] (or elements
from their substitution group) violate "Unique Particle Attribution".
During validation against this schema, ambiguity would be created for
those two particles.

loadData of junit#junit;3.8.2 of rootConf=testCompile
       using chain to resolve junit#junit;3.8.2
chain: Checking cache for: dependency: junit#junit;3.8.2 {testCompile=
[default]}
chain: no namespace defined: using system
[Error] :43:30: cos-nonambig: "":license and WC[##any] (or elements
from their substitution group) violate "Unique Particle Attribution".
During validation against this schema, ambiguity would be created for
those two particles.

and many more
--------------------------------

They are all downloaded by a IBiblioResolver. I have deleted the old
ivy cache, but the errors are still reported.

The errors are also reported for an ivy file generated by Ivy:

------------------------------
don't use cache for org.gradle#shared;1.0: changing=true
trying /Users/hans/.ivy2/local/org.gradle/shared/1.0/ivys/ ivy.xml
               tried
/Users/hans/.ivy2/local/org.gradle/shared/1.0/ivys/ivy.xml
       local: found md file for org.gradle#shared;1.0
               =>
/Users/hans/.ivy2/local/org.gradle/shared/1.0/ivys/ivy.xml (1.0)
       parser = ivy parser
[Error] :43:30: cos-nonambig: "":license and WC[##any] (or elements
from their substitution group) violate "Unique Particle Attribution".
During validation against this schema, ambiguity would be created for
those two particles.


<?xml version="1.0" encoding="UTF-8"?>
<ivy-module version="1.0">
       <info organisation="org.gradle"
               module="shared"
               revision="1.0"
               status="release"
               publication="20080305130425"
       />
       <configurations>
               <conf name="compile" visibility="private"/>
               <conf name="runtime" visibility="private"
extends="compile"/>
               <conf name="testCompile" visibility="private"
extends="compile"/>
               <conf name="testRuntime" visibility="private"
extends="runtime,testCompile"/>
               <conf name="master" visibility="public"/>
               <conf name="default" visibility="public"
extends="runtime,master"/>
               <conf name="distribute" visibility="public"/>
       </configurations>
       <publications>
               <artifact name="shared" type="jar" ext="jar"
conf="master"/>
       </publications>
       <dependencies>
               <dependency org="junit" name="junit" rev="3.8.2"
conf="testCompile-
default"/>
       </dependencies>
</ivy-module>

- Hans




--
Xavier Hanin - Independent Java Consultant
http://xhab.blogspot.com/
http://ant.apache.org/ivy/
http://www.xoocode.org/

Reply via email to