ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hans Dockter <m...@dockter.biz>
Subject Re: New errors messages in log since update to Ivy-beta2
Date Wed, 05 Mar 2008 14:51:07 GMT

On Mar 5, 2008, at 3:26 PM, Xavier Hanin wrote:

> 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?
>

You are right. I forgot to update. Now the situation is pretty much  
as described in my first mail.

When I now start Gradle from IntelliJ or from the command line I get  
the error messages. I don't get the error messages with my ant build.  
My ant-build is also using ivy-beta2 (I've made sure that there is no  
old ivy lib in the ant-home lib folder, as I install Ivy via my  
build.xml).

That is the build output of a Gradle build:

localhost:~/IdeaProjects/gradle/gradle-core hans$ gradle -i compile
gradle.home=/Users/hans/java/gradle
Current dir: /Users/hans/IdeaProjects/gradle/gradle-core
Recursive: true
Buildfilename: gradle.groovy
Plugin properties: /Users/hans/java/gradle/plugin.properties
:: loading settings :: url = jar:file:/Users/hans/java/gradle-0.1- 
snapshot/lib/ivy-2.0.0-beta2.jar!/org/apache/ivy/core/settings/ 
ivysettings.xml
:: resolving dependencies :: org.gradle#build;na
         confs: [build]
:: resolution report :: resolve 36ms :: artifacts dl 0ms
         :: modules in use:
          
---------------------------------------------------------------------
         |                  |            modules            ||    
artifacts   |
         |       conf       | number| search|dwnlded|evicted|| number| 
dwnlded|
          
---------------------------------------------------------------------
         |       build      |   0   |   0   |   0   |   0   ||   0    
|   0   |
          
---------------------------------------------------------------------
Project=: evaluated.
Executing: ["compile"] Recursive:true Startproject: :
Executing: :resources
Executing: :compile
:: resolving dependencies :: org.gradle#gradle-core;0.1-snapshot
         confs: [compile]
[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.
         found org.codehaus.groovy#groovy-all;1.5.4 in chain
[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.
         found commons-cli#commons-cli;1.0 in chain
[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.
         found commons-io#commons-io;1.3.1 in chain
[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.
         found commons-lang#commons-lang;2.3 in chain
[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.
         found ch.qos.logback#logback-classic;0.9.8 in chain
[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.
         found org.apache.ant#ant-launcher;1.7.0 in chain
[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.
         found org.apache.ant#ant-junit;1.7.0 in chain
[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.
         found junit#junit;4.4 in chain
:: resolution report :: resolve 412ms :: artifacts dl 10ms
         :: modules in use:
         ch.qos.logback#logback-classic;0.9.8 from chain in [compile]
         commons-cli#commons-cli;1.0 from chain in [compile]
         commons-io#commons-io;1.3.1 from chain in [compile]
         commons-lang#commons-lang;2.3 from chain in [compile]
         junit#junit;4.4 from chain in [compile]
         org.apache.ant#ant-junit;1.7.0 from chain in [compile]
         org.apache.ant#ant-launcher;1.7.0 from chain in [compile]
         org.codehaus.groovy#groovy-all;1.5.4 from chain in [compile]
          
---------------------------------------------------------------------
         |                  |            modules            ||    
artifacts   |
         |       conf       | number| search|dwnlded|evicted|| number| 
dwnlded|
          
---------------------------------------------------------------------
         |      compile     |   8   |   0   |   0   |   0   ||   8    
|   0   |
          
---------------------------------------------------------------------
   [groovyc] Compiling 2 source files to /Users/hans/IdeaProjects/ 
gradle/gradle-core/build/classes
:: resolving dependencies :: org.gradle#gradle-core;0.1-snapshot
         confs: [compile]
[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.
         found org.codehaus.groovy#groovy-all;1.5.4 in chain
[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.
         found commons-cli#commons-cli;1.0 in chain
[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.
         found commons-io#commons-io;1.3.1 in chain
[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.
         found commons-lang#commons-lang;2.3 in chain
[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.
         found ch.qos.logback#logback-classic;0.9.8 in chain
[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.
         found org.apache.ant#ant-launcher;1.7.0 in chain
[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.
         found org.apache.ant#ant-junit;1.7.0 in chain
[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.
         found junit#junit;4.4 in chain
:: resolution report :: resolve 138ms :: artifacts dl 5ms
         :: modules in use:
         ch.qos.logback#logback-classic;0.9.8 from chain in [compile]
         commons-cli#commons-cli;1.0 from chain in [compile]
         commons-io#commons-io;1.3.1 from chain in [compile]
         commons-lang#commons-lang;2.3 from chain in [compile]
         junit#junit;4.4 from chain in [compile]
         org.apache.ant#ant-junit;1.7.0 from chain in [compile]
         org.apache.ant#ant-launcher;1.7.0 from chain in [compile]
         org.codehaus.groovy#groovy-all;1.5.4 from chain in [compile]
          
---------------------------------------------------------------------
         |                  |            modules            ||    
artifacts   |
         |       conf       | number| search|dwnlded|evicted|| number| 
dwnlded|
          
---------------------------------------------------------------------
         |      compile     |   8   |   0   |   0   |   0   ||   8    
|   0   |
          
---------------------------------------------------------------------
   [groovyc] Compiling 2 source files to /Users/hans/IdeaProjects/ 
gradle/gradle-core/build/classes

BUILD SUCCESSFUL

Total time: 3 seconds

- Hans

Mime
View raw message