ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From groovenarula <gnaru...@la-z-boy.com>
Subject Noobie question - retrieve does not seem to copy all libraries
Date Wed, 14 Dec 2011 19:16:10 GMT

Hello,

I'm new to Ivy, so if this question has been answered before, please excuse
the duplicate. 

The situation that I'm running into is that a specific jar (jboss's
netty.jar) does not get copied into my lib folder when I do an . I can see
that the dependency is getting resolved :


[ivy2:resolve] 	found org.hornetq#hornetq-jms-client;2.2.5.Final in shared
[ivy2:resolve] 	found org.jboss.netty#netty;3.2.7.Final in shared
[ivy2:resolve] 	found com.google.protobuf#protobuf-java;2.4.1 in shared

Yet, after I do a retrieve, the jar does not seem to get 'downloaded' into
my lib folder. I've defined the dependency as follows in ivy.xml :

         
         
         
         

The project's build.xml has the following targets :

        
                
                
        

        
                
                
        

The summary report of the 'resolve' process is :

[ivy2:resolve] 	:: evicted modules:
[ivy2:resolve] 	javax.mail#mail;1.4 by [javax.mail#mail;1.4.1] in [runtime]
[ivy2:resolve] 	javax.servlet#servlet-api;2.4 by
[javax.servlet#servlet-api;2.5] in [runtime]
[ivy2:resolve] 	xerces#xercesImpl;2.6.0 by [xerces#xercesImpl;2.8.1] in
[runtime]
[ivy2:resolve] 	xml-apis#xml-apis;1.0.b2 by [xml-apis#xml-apis;1.3.03] in
[runtime]
[ivy2:resolve] 	javax.servlet#servlet-api;2.3 by
[javax.servlet#servlet-api;2.4] in [runtime]
[ivy2:resolve] 	log4j#log4j;1.2.14 by [log4j#log4j;1.2.16] in [runtime]
[ivy2:resolve] 	commons-logging#commons-logging;1.1 by
[commons-logging#commons-logging;1.1.1] in [runtime]
[ivy2:resolve] 	log4j#log4j;1.2.12 by [log4j#log4j;1.2.14] in [runtime]
[ivy2:resolve] 	log4j#log4j;1.2.13 by [log4j#log4j;1.2.14] in [runtime]
	---------------------------------------------------------------------
	|                  |            modules            ||   artifacts   |
	|       conf       | number| search|dwnlded|evicted|| number|dwnlded|
	---------------------------------------------------------------------
	|      runtime     |   71  |   1   |   0   |   9   ||   58  |   0   |
	---------------------------------------------------------------------

What I did notice is that there are a total of '58' artifacts that were
resolved out of total listing of 71 modules. And sure enough, the retrieve
target also indicates that 58 artifacts were copied :

[ivy2:retrieve] :: retrieving :: foo#bar
[ivy2:retrieve] 	confs: [runtime]
[ivy2:retrieve] 	0 artifacts copied, 58 already retrieved (0kB/53ms)

So retrieve is coping the same number of artifacts that resolve seems to
identify. The question is how do I figure out why the resolve is not
processing 13 of the 71 modules ?

Any help to figure out what's causing the 13 modules to be ignored would be
appreciated. When I run ant in debug mode the output (filtering out just the
netty specific lines) I get is :

[ivy2:resolve] == resolving dependencies
foo#bar;working@devserver.na.bar.hq->org.jboss.netty#netty;3.2.7.Final
[runtime->*]
[ivy2:resolve] loadData of org.jboss.netty#netty;3.2.7.Final of
rootConf=runtime
[ivy2:resolve] 	using default to resolve org.jboss.netty#netty;3.2.7.Final
[ivy2:resolve] default: Checking cache for: dependency:
org.jboss.netty#netty;3.2.7.Final {*=[*]}
[ivy2:resolve] No entry is found in the ModuleDescriptorCache :
/root/.ivy2/cache/org.jboss.netty/netty/ivy-3.2.7.Final.xml
[ivy2:resolve] 	found ivy file in cache for
org.jboss.netty#netty;3.2.7.Final (resolved by shared):
/root/.ivy2/cache/org.jboss.netty/netty/ivy-3.2.7.Final.xml
[ivy2:resolve] default: module revision found in cache:
org.jboss.netty#netty;3.2.7.Final
[ivy2:resolve] 	found org.jboss.netty#netty;3.2.7.Final in shared
[ivy2:resolve] == resolving dependencies
foo#bar;working@devserver.na.bar.hq->org.jboss.netty#netty;3.2.7.Final
[runtime->runtime]
[ivy2:resolve] loadData of org.jboss.netty#netty;3.2.7.Final of
rootConf=runtime
[ivy2:resolve] == resolving dependencies
foo#bar;working@devserver.na.bar.hq->org.jboss.netty#netty;3.2.7.Final
[runtime->compile]
[ivy2:resolve] loadData of org.jboss.netty#netty;3.2.7.Final of
rootConf=runtime
[ivy2:resolve] == resolving dependencies
foo#bar;working@devserver.na.bar.hq->org.jboss.netty#netty;3.2.7.Final
[runtime->master]
[ivy2:resolve] loadData of org.jboss.netty#netty;3.2.7.Final of
rootConf=runtime
[ivy2:resolve] == resolving dependencies
foo#bar;working@devserver.na.bar.hq->org.jboss.netty#netty;3.2.7.Final
[runtime->compile]
[ivy2:resolve] loadData of org.jboss.netty#netty;3.2.7.Final of
rootConf=runtime
[ivy2:resolve] == resolving dependencies
org.jboss.netty#netty;3.2.7.Final->com.google.protobuf#protobuf-java;2.4.1
[optional->master(*)]
[ivy2:resolve] == resolving dependencies
org.jboss.netty#netty;3.2.7.Final->com.google.protobuf#protobuf-java;2.4.1
[optional->compile(*)]
[ivy2:resolve] == resolving dependencies
org.jboss.netty#netty;3.2.7.Final->javax.servlet#servlet-api;2.5
[optional->master(*)]
[ivy2:resolve] == resolving dependencies
org.jboss.netty#netty;3.2.7.Final->javax.servlet#servlet-api;2.5
[optional->compile(*)]
[ivy2:resolve] == resolving dependencies
org.jboss.netty#netty;3.2.7.Final->javax.servlet#servlet-api;2.5
[optional->runtime]
[ivy2:resolve] == resolving dependencies
org.jboss.netty#netty;3.2.7.Final->javax.servlet#servlet-api;2.5
[optional->compile]
[ivy2:resolve] == resolving dependencies
org.jboss.netty#netty;3.2.7.Final->javax.servlet#servlet-api;2.5
[optional->runtime(*)]
[ivy2:resolve] == resolving dependencies
org.jboss.netty#netty;3.2.7.Final->javax.servlet#servlet-api;2.5
[optional->compile]
[ivy2:resolve] == resolving dependencies
org.jboss.netty#netty;3.2.7.Final->javax.servlet#servlet-api;2.5
[optional->javadoc]
[ivy2:resolve] == resolving dependencies
org.jboss.netty#netty;3.2.7.Final->javax.servlet#servlet-api;2.5
[optional->sources]
[ivy2:resolve] == resolving dependencies
org.jboss.netty#netty;3.2.7.Final->javax.servlet#servlet-api;2.5
[optional->system]
[ivy2:resolve] == resolving dependencies
org.jboss.netty#netty;3.2.7.Final->javax.servlet#servlet-api;2.5
[optional->default]
[ivy2:resolve] == resolving dependencies
org.jboss.netty#netty;3.2.7.Final->javax.servlet#servlet-api;2.5
[optional->runtime]
[ivy2:resolve] == resolving dependencies
org.jboss.netty#netty;3.2.7.Final->javax.servlet#servlet-api;2.5
[optional->compile]
[ivy2:resolve] == resolving dependencies
org.jboss.netty#netty;3.2.7.Final->javax.servlet#servlet-api;2.5
[optional->master]
[ivy2:resolve] == resolving dependencies
org.jboss.netty#netty;3.2.7.Final->javax.servlet#servlet-api;2.5
[optional->provided(*)]
[ivy2:resolve] == resolving dependencies
org.jboss.netty#netty;3.2.7.Final->javax.servlet#servlet-api;2.5
[optional->optional]
[ivy2:resolve] == resolving dependencies
org.jboss.netty#netty;3.2.7.Final->javax.servlet#servlet-api;2.5
[optional->provided]
[ivy2:resolve] == resolving dependencies
org.jboss.netty#netty;3.2.7.Final->org.apache.felix#org.osgi.core;1.4.0
[optional->master(*)]
[ivy2:resolve] == resolving dependencies
org.jboss.netty#netty;3.2.7.Final->org.apache.felix#org.osgi.core;1.4.0
[optional->compile(*)]
[ivy2:resolve] == resolving dependencies
org.jboss.netty#netty;3.2.7.Final->org.apache.felix#org.osgi.compendium;1.4.0
[optional->master(*)]
[ivy2:resolve] == resolving dependencies
org.jboss.netty#netty;3.2.7.Final->org.apache.felix#org.osgi.compendium;1.4.0
[optional->compile(*)]
[ivy2:resolve] == resolving dependencies
org.jboss.netty#netty;3.2.7.Final->org.slf4j#slf4j-api;1.6.4
[optional->master(*)]
[ivy2:resolve] == resolving dependencies
org.jboss.netty#netty;3.2.7.Final->org.slf4j#slf4j-api;1.6.4
[optional->compile(*)]
[ivy2:resolve] == resolving dependencies
org.jboss.netty#netty;3.2.7.Final->commons-logging#commons-logging;1.1.1
[optional->master(*)]
[ivy2:resolve] == resolving dependencies
org.jboss.netty#netty;3.2.7.Final->commons-logging#commons-logging;1.1.1
[optional->compile(*)]
[ivy2:resolve] == resolving dependencies
org.jboss.netty#netty;3.2.7.Final->commons-logging#commons-logging;1.1.1
[optional->runtime(*)]
[ivy2:resolve] == resolving dependencies
org.jboss.netty#netty;3.2.7.Final->commons-logging#commons-logging;1.1.1
[optional->compile]
[ivy2:resolve] == resolving dependencies
org.jboss.netty#netty;3.2.7.Final->org.jboss.logging#jboss-logging-spi;2.1.2.GA
[optional->master(*)]
[ivy2:resolve] == resolving dependencies
org.jboss.netty#netty;3.2.7.Final->org.jboss.logging#jboss-logging-spi;2.1.2.GA
[optional->compile(*)]
[ivy2:resolve] == resolving dependencies
org.jboss.netty#netty;3.2.7.Final->log4j#log4j;1.2.16 [optional->master(*)]
[ivy2:resolve] == resolving dependencies
org.jboss.netty#netty;3.2.7.Final->log4j#log4j;1.2.16 [optional->compile(*)]
[ivy2:resolve] == resolving dependencies
org.jboss.netty#netty;3.2.7.Final->log4j#log4j;1.2.16 [optional->runtime]
[ivy2:resolve] == resolving dependencies
org.jboss.netty#netty;3.2.7.Final->log4j#log4j;1.2.16 [optional->compile]
[ivy2:resolve] == resolving dependencies
org.jboss.netty#netty;3.2.7.Final->log4j#log4j;1.2.16 [optional->runtime(*)]
[ivy2:resolve] == resolving dependencies
org.jboss.netty#netty;3.2.7.Final->log4j#log4j;1.2.16 [optional->compile]
[ivy2:resolve] == resolving dependencies
org.jboss.netty#netty;3.2.7.Final->log4j#log4j;1.2.16 [optional->javadoc]
[ivy2:resolve] == resolving dependencies
org.jboss.netty#netty;3.2.7.Final->log4j#log4j;1.2.16 [optional->sources]
[ivy2:resolve] == resolving dependencies
org.jboss.netty#netty;3.2.7.Final->log4j#log4j;1.2.16 [optional->system]
[ivy2:resolve] == resolving dependencies
org.jboss.netty#netty;3.2.7.Final->log4j#log4j;1.2.16 [optional->default]
[ivy2:resolve] == resolving dependencies
org.jboss.netty#netty;3.2.7.Final->log4j#log4j;1.2.16 [optional->runtime]
[ivy2:resolve] == resolving dependencies
org.jboss.netty#netty;3.2.7.Final->log4j#log4j;1.2.16 [optional->compile]
[ivy2:resolve] == resolving dependencies
org.jboss.netty#netty;3.2.7.Final->log4j#log4j;1.2.16 [optional->master]
[ivy2:resolve] == resolving dependencies
org.jboss.netty#netty;3.2.7.Final->log4j#log4j;1.2.16 [optional->optional]
[ivy2:resolve] == resolving dependencies
org.jboss.netty#netty;3.2.7.Final->log4j#log4j;1.2.16 [optional->provided]
[ivy2:resolve] == resolving dependencies
foo#bar;working@devserver.na.bar.hq->org.jboss.netty#netty;3.2.7.Final
[runtime->system]
[ivy2:resolve] loadData of org.jboss.netty#netty;3.2.7.Final of
rootConf=runtime
[ivy2:resolve] == resolving dependencies
foo#bar;working@devserver.na.bar.hq->org.jboss.netty#netty;3.2.7.Final
[runtime->default]
[ivy2:resolve] loadData of org.jboss.netty#netty;3.2.7.Final of
rootConf=runtime
[ivy2:resolve] == resolving dependencies
foo#bar;working@devserver.na.bar.hq->org.jboss.netty#netty;3.2.7.Final
[runtime->runtime]
[ivy2:resolve] loadData of org.jboss.netty#netty;3.2.7.Final of
rootConf=runtime
[ivy2:resolve] == resolving dependencies
foo#bar;working@devserver.na.bar.hq->org.jboss.netty#netty;3.2.7.Final
[runtime->compile]
[ivy2:resolve] loadData of org.jboss.netty#netty;3.2.7.Final of
rootConf=runtime
[ivy2:resolve] == resolving dependencies
foo#bar;working@devserver.na.bar.hq->org.jboss.netty#netty;3.2.7.Final
[runtime->master]
[ivy2:resolve] loadData of org.jboss.netty#netty;3.2.7.Final of
rootConf=runtime
[ivy2:resolve] == resolving dependencies
foo#bar;working@devserver.na.bar.hq->org.jboss.netty#netty;3.2.7.Final
[runtime->optional]
[ivy2:resolve] loadData of org.jboss.netty#netty;3.2.7.Final of
rootConf=runtime
[ivy2:resolve] == resolving dependencies
foo#bar;working@devserver.na.bar.hq->org.jboss.netty#netty;3.2.7.Final
[runtime->provided]
[ivy2:resolve] loadData of org.jboss.netty#netty;3.2.7.Final of
rootConf=runtime
[ivy2:resolve] == resolving dependencies
foo#bar;working@devserver.na.bar.hq->org.jboss.netty#netty;3.2.7.Final
[runtime->javadoc]
[ivy2:resolve] loadData of org.jboss.netty#netty;3.2.7.Final of
rootConf=runtime
[ivy2:resolve] == resolving dependencies
foo#bar;working@devserver.na.bar.hq->org.jboss.netty#netty;3.2.7.Final
[runtime->sources]
[ivy2:resolve] loadData of org.jboss.netty#netty;3.2.7.Final of
rootConf=runtime
[ivy2:resolve] Sort dependencies of : org.jboss.netty#netty;3.2.7.Final /
Number of dependencies = 12
[ivy2:resolve] Non matching revision detected when sorting. 
org.jboss.netty#netty depends on junit#junit;4.10, doesn't match
junit#junit;4.1
[ivy2:resolve] Sort done for : org.jboss.netty#netty;3.2.7.Final
[ivy2:resolve] no report found for
org.jboss.netty#netty;3.2.7.Final!netty.jar(source)
[ivy2:resolve] no report found for
org.jboss.netty#netty;3.2.7.Final!netty.jar(bundle)
[ivy2:resolve] Sort dependencies of : org.jboss.netty#netty;3.2.7.Final /
Number of dependencies = 12
[ivy2:resolve] Non matching revision detected when sorting. 
org.jboss.netty#netty depends on junit#junit;4.10, doesn't match
junit#junit;4.1
[ivy2:resolve] Sort done for : org.jboss.netty#netty;3.2.7.Final

Not sure what to do next. I'd appreciate if someone can help shed some light
as to why the jars are not getting picked up.

Thanks in advance. If it matters, I'm using Ivy 2.0.0. I ran into some
issues with sources getting included when I tried to use 2.2.0. I had to
revert back to 2.0.0 to get it working.

Groove


-- 
View this message in context: http://old.nabble.com/Noobie-question---retrieve-does-not-seem-to-copy-all-libraries-tp32975353p32975353.html
Sent from the ivy-user mailing list archive at Nabble.com.

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