ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xavier Hanin" <xavier.ha...@gmail.com>
Subject Re: New errors messages in log since update to Ivy-beta2
Date Wed, 05 Mar 2008 14:26:20 GMT
On Wed, Mar 5, 2008 at 2:51 PM, Hans Dockter <mail@dockter.biz> wrote:

>
> On Mar 5, 2008, at 2:26 PM, Xavier Hanin wrote:
>
> > On Wed, Mar 5, 2008 at 2:20 PM, Hans Dockter <mail@dockter.biz> wrote:
> >
> >>
> >> On Mar 5, 2008, at 1:59 PM, Xavier Hanin wrote:
> >>
> >>> On Wed, Mar 5, 2008 at 1:09 PM, Hans Dockter <mail@dockter.biz>
> >>> 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.
> >
> > This is strange. Maybe you have a different xml parser in each
> > environment?
> >
> > Xavier
>
> I just found out that I only get the error messages when I start my
> build tool from IntelliJ via the Main class. When I start it from the
> command line with its startup script I don't get these messages. The
> JDK is the same.
>
> For what it's worth, here the different commands:
>
> This is the command started by IntelliJ (I'm on a Mac)
>
> /System/Library/Frameworks/JavaVM.framework/Home/bin/java -
> Dgradle.home=/Users/hans/IdeaProjects/gradle/gradle-core/target/dist/
> gradle-0.1-snapshot -Dfile.encoding=MacRoman -classpath /System/
> Library/Frameworks/JavaVM.framework/Home/lib/deploy.jar:/System/
> Library/Frameworks/JavaVM.framework/Home/lib/dt.jar:/System/Library/
> Frameworks/JavaVM.framework/Home/lib/jce.jar:/System/Library/
> Frameworks/JavaVM.framework/Home/lib/plugin.jar:/System/Library/
> Frameworks/JavaVM.framework/Home/lib/sa-jdi.jar:/System/Library/
> Frameworks/JavaVM.framework/Home/../Classes/charsets.jar:/System/
> Library/Frameworks/JavaVM.framework/Home/../Classes/classes.jar:/
> System/Library/Frameworks/JavaVM.framework/Home/../Classes/dt.jar:/
> System/Library/Frameworks/JavaVM.framework/Home/../Classes/jce.jar:/
> System/Library/Frameworks/JavaVM.framework/Home/../Classes/
> jconsole.jar:/System/Library/Frameworks/JavaVM.framework/Home/../
> Classes/jsse.jar:/System/Library/Frameworks/JavaVM.framework/Home/../
> Classes/laf.jar:/System/Library/Frameworks/JavaVM.framework/Home/../
> Classes/ui.jar:/System/Library/Frameworks/JavaVM.framework/Home/lib/
> ext/apple_provider.jar:/System/Library/Frameworks/JavaVM.framework/
> Home/lib/ext/dnsns.jar:/System/Library/Frameworks/JavaVM.framework/
> Home/lib/ext/localedata.jar:/System/Library/Frameworks/
> JavaVM.framework/Home/lib/ext/sunjce_provider.jar:/System/Library/
> Frameworks/JavaVM.framework/Home/lib/ext/sunpkcs11.jar:/Users/hans/
> IdeaProjects/gradle/out/production/gradle-core:/Users/hans/java/
> groovy-1.5.4/embeddable/groovy-all-1.5.4.jar:/Users/hans/.ivy/cache/
> ch.qos.logback/logback-classic/jars/logback-classic-0.9.8.jar:/Users/
> hans/.ivy/cache/org.slf4j/slf4j-api/jars/slf4j-api-1.4.3.jar:/Users/
> hans/.ivy/cache/ch.qos.logback/logback-core/jars/logback-
> core-0.9.8.jar:/Users/hans/.ivy/cache/commons-io/commons-io/jars/
> commons-io-1.3.1.jar:/Users/hans/java/groovy/lib/ant-1.7.0.jar:/Users/
> hans/java/groovy/lib/ant-launcher-1.7.0.jar:/Users/hans/.ivy2/cache/
> commons-cli/commons-cli/jars/commons-cli-1.0.jar:/Users/hans/.ivy2/
> cache/org.apache.ant/ant-junit/jars/ant-junit-1.7.0.jar:/Users/hans/
> java/junit4.4/junit-4.4.jar:/Users/hans/.ivy2/cache/commons-lang/
> commons-lang/jars/commons-lang-2.3.jar:/Users/hans/java/apache-
> ivy-2.0.0-beta2/ivy-2.0.0-beta2.jar org.gradle.ToolsMain -i -s -p/
> Users/hans/IdeaProjects/gradle/gradle-core -Dgradle.test.skip=true
> install
>
> My startup script (where I don't get the error messages) does not
> explicitly put the JDK jars on the classpath. It executes the following:
>
> /System/Library/Frameworks/JavaVM.framework/Home/bin/java -
> Xdock:name=Gradle -classpath /Users/hans/java/gradle/lib/
> ant-1.7.0.jar:/Users/hans/java/gradle/lib/ant-junit-1.7.0.jar:/Users/
> hans/java/gradle/lib/ant-launcher-1.7.0.jar:/Users/hans/java/gradle/
> lib/commons-cli-1.0.jar:/Users/hans/java/gradle/lib/commons-
> io-1.3.1.jar:/Users/hans/java/gradle/lib/commons-lang-2.3.jar:/Users/
> hans/java/gradle/lib/gradle-0.1-snapshot.jar:/Users/hans/java/gradle/
> lib/groovy-all-1.5.4.jar:/Users/hans/java/gradle/lib/
> ivy-2.0.0.beta2_20080103202250.jar:/Users/hans/java/gradle/lib/
> junit-4.4.jar:/Users/hans/java/gradle/lib/logback-classic-0.9.8.jar:/
> Users/hans/java/gradle/lib/logback-core-0.9.8.jar:/Users/hans/java/
> gradle/lib/slf4j-api-1.4.3.jar -Dgradle.home=/Users/hans/java/gradle -
> Dtools.jar=/System/Library/Frameworks/JavaVM.framework/Home/lib/
> tools.jar org.gradle.ToolsMain -i compile

It seems you don't use the same ivy.jar in both cases. Is
ivy-2.0.0.beta2_20080103202250.jar a home made build, or a copy from
ivy-2.0.0-beta2.jar?

Xavier



>
> - Hans
>
> >
> >
> >>
> >>
> >> - 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/
> >>
> >>
> >
> >
> > --
> > Xavier Hanin - Independent Java Consultant
> > http://xhab.blogspot.com/
> > http://ant.apache.org/ivy/
> > http://www.xoocode.org/
>
>


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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message