ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claudio Miranda <clau...@claudius.com.br>
Subject Re: Why ivy doesn't download these dependencies ?
Date Sun, 09 Aug 2009 15:56:48 GMT


I did some modifications to ivy.xml, but didn't work. Can you see if there
is some misconfiguration ?


Claudio Miranda wrote:
> 
> ant resolve doesn't download spring, eclipselink and other dependencies.
> Other dependencies are downloaded
> 
> my system:
>  Java 6u14
>  Ivy 2.1.0-rc2
>  Ant 1.7.1
> 
> ============ ivysettings.xml
> <?xml version="1.0" encoding="UTF-8"?>
> <ivysettings>
>     <settings defaultResolver="default"/>
>     <resolvers>
>         <filesystem name="main">
>             <artifact
> pattern="${user.home}/.ivy2/[organisation]/[artifact]-[revision].[ext]" />
>             <ivy pattern="${user.home}/.ivy2/[module]-[revision].xml" />
>         </filesystem>
>         <ibiblio name="m2repo" m2compatible="true" />
>         <ibiblio name="public" root="http://repo1.maven.org/maven2/"
> m2compatible="true" />
>         <ibiblio name="java.net.2"
> root="http://download.java.net/maven/2/" m2compatible="true" />
>         <ibiblio name="java.net.1"
> root="http://download.java.net/maven/1/"
>                 
> pattern="[organisation]/[type]s/[artifact]-[revision].[ext]"/>
>         <ibiblio name="eclipse-link"
> root="http://eclipse.c3sl.ufpr.br/rt/eclipselink/maven.repo/"
>                 m2compatible="true" />
>                 
>         <chain name="default" returnFirst="true">
>             <resolver ref="eclipse-link"/>
>             <resolver ref="main"/>
>             <resolver ref="m2repo"/>
>             <resolver ref="public"/>
>             <resolver ref="java.net.2"/>
>             <resolver ref="java.net.1"/>
>         </chain>
>     </resolvers>
> </ivysettings>
> 
> ============ ivy.xml
> <?xml version="1.0" encoding="UTF-8"?>
> <ivy-module version="2.0">
>     <info module="evconf" organisation="evconf" revision="0.1"/>
>     <configurations>
>         <conf name="compile"/>
>         <conf name="runtime"/>
>         <conf name="compile-test"/>
>         <conf name="runtime-test"/>
>     </configurations>
>     <dependencies>
>         <dependency org="org.apache.wicket" name="wicket" rev="1.4.0"
> conf="compile" />
>         <dependency org="org.apache.wicket" name="wicket-extensions"
> rev="1.4.0" conf="compile" />
>         <dependency org="org.apache.wicket" name="wicket-auth-roles"
> rev="1.4.0" conf="compile" />
>         <dependency org="org.apache.wicket" name="wicket-datetime"
> rev="1.4.0" conf="compile" />
>         <dependency org="org.apache.wicket" name="wicket-spring"
> rev="1.4.0" conf="compile" />
>         <dependency org="org.apache.wicket" name="wicket-ioc" rev="1.4.0"
> conf="compile" />
>         <dependency org="org.slf4j" name="slf4j-api" rev="1.5.8"
> conf="compile" />
>         <dependency org="org.slf4j" name="slf4j-ext" rev="1.5.8"
> conf="compile" />
>         <dependency org="org.slf4j" name="jcl-over-slf4j" rev="1.5.8"
> conf="compile" />
>         <dependency org="org.slf4j" name="log4j-over-slf4j" rev="1.5.8"
> conf="compile" />
>         <dependency org="ch.qos.logback" name="logback-classic"
> rev="0.9.16" conf="compile" />
>         <dependency org="ch.qos.logback" name="logback-core" rev="0.9.16"
> conf="compile" />
>         <dependency org="org.springframework" name="spring" rev="2.5.6"
> conf="compile" />
>         <dependency org="junit" name="junit" rev="4.5" conf="" />
>         <dependency org="org.eclipse.persistence"
> name="org.eclipse.persistence.jpa" rev="1.1.2" conf="compile" />
>     </dependencies>
> </ivy-module>
> 
> ========== build.xml
>     <target name="resolve" description="--> retrieve dependencies with
> ivy">
>     	<ivy:retrieve />
>     </target>
> 
> $ ant resolve
> Buildfile: build.xml
> 
> resolve:
> [ivy:retrieve] :: Ivy 2.1.0-rc2 - 20090704004254 ::
> http://ant.apache.org/ivy/ ::
> [ivy:retrieve] :: loading settings :: file =
> /home/claudio/alphaworks/projects/soujava/eventos/evconf/ivysettings.xml
> [ivy:retrieve] :: resolving dependencies :: evconf#evconf;0.1
> [ivy:retrieve]  confs: [compile, runtime, compile-test, runtime-test]
> [ivy:retrieve]  found org.apache.wicket#wicket;1.4.0 in m2repo
> [ivy:retrieve]  found org.slf4j#slf4j-api;1.4.2 in m2repo
> [ivy:retrieve]  found org.apache.wicket#wicket-extensions;1.4.0 in m2repo
> [ivy:retrieve]  found org.apache.wicket#wicket-auth-roles;1.4.0 in m2repo
> [ivy:retrieve]  found org.apache.wicket#wicket-datetime;1.4.0 in m2repo
> [ivy:retrieve]  found joda-time#joda-time;1.4 in m2repo
> [ivy:retrieve]  found org.apache.wicket#wicket-spring;1.4.0 in m2repo
> [ivy:retrieve]  found org.apache.wicket#wicket-ioc;1.4.0 in m2repo
> [ivy:retrieve]  found cglib#cglib-nodep;2.1_3 in m2repo
> [ivy:retrieve]  found org.slf4j#slf4j-api;1.5.8 in m2repo
> [ivy:retrieve]  found org.slf4j#slf4j-ext;1.5.8 in m2repo
> [ivy:retrieve]  found org.slf4j#jcl-over-slf4j;1.5.8 in m2repo
> [ivy:retrieve]  found org.slf4j#log4j-over-slf4j;1.5.8 in m2repo
> [ivy:retrieve]  found ch.qos.logback#logback-classic;0.9.16 in m2repo
> [ivy:retrieve]  found ch.qos.logback#logback-core;0.9.16 in m2repo
> [ivy:retrieve]  found org.springframework#spring;2.5.6 in m2repo
> [ivy:retrieve]  found commons-logging#commons-logging;1.1.1 in m2repo
> [ivy:retrieve]  found junit#junit;4.5 in m2repo
> [ivy:retrieve]  found
> org.eclipse.persistence#org.eclipse.persistence.jpa;1.1.2 in eclipse-link
> [ivy:retrieve] :: resolution report :: resolve 1449ms :: artifacts dl 20ms
> [ivy:retrieve]  :: evicted modules:
> [ivy:retrieve]  org.slf4j#slf4j-api;1.4.2 by [org.slf4j#slf4j-api;1.5.8]
> in [compile]
>        
> ---------------------------------------------------------------------
>         |                  |            modules            ||   artifacts  
> |
>         |       conf       | number| search|dwnlded|evicted||
> number|dwnlded|
>        
> ---------------------------------------------------------------------
>         |      compile     |   19  |   0   |   0   |   1   ||   9   |   0  
> |
>         |      runtime     |   1   |   0   |   0   |   0   ||   2   |   0  
> |
>         |   compile-test   |   1   |   0   |   0   |   0   ||   2   |   0  
> |
>         |   runtime-test   |   1   |   0   |   0   |   0   ||   2   |   0  
> |
>        
> ---------------------------------------------------------------------
> [ivy:retrieve] :: retrieving :: evconf#evconf
> [ivy:retrieve]  confs: [compile, runtime, compile-test, runtime-test]
> [ivy:retrieve]  0 artifacts copied, 9 already retrieved (0kB/56ms)
> 
> BUILD SUCCESSFUL
> Total time: 2 seconds
> 
> The downloaded jar files
> $ find lib/ -name \*.jar
> lib/cglib-nodep-2.1_3.jar
> lib/commons-logging-1.1.1.jar
> lib/logback-core-0.9.16.jar
> lib/wicket-ioc-1.4.0.jar
> lib/slf4j-api-1.5.8.jar
> lib/wicket-1.4.0.jar
> lib/joda-time-1.4.jar
> lib/junit-4.5.jar
> lib/junit-4.5-sources.jar
> 
> $ find /home/claudio/.ivy2/ -name \*.jar -type f
> /home/claudio/.ivy2/cache/org.apache.wicket/wicket-ioc/jars/wicket-ioc-1.4.0.jar
> /home/claudio/.ivy2/cache/org.apache.wicket/wicket/jars/wicket-1.4.0.jar
> /home/claudio/.ivy2/cache/junit/junit/sources/junit-4.5-sources.jar
> /home/claudio/.ivy2/cache/junit/junit/jars/junit-4.5.jar
> /home/claudio/.ivy2/cache/commons-logging/commons-logging/jars/commons-logging-1.1.1.jar
> /home/claudio/.ivy2/cache/org.slf4j/slf4j-api/jars/slf4j-api-1.5.8.jar
> /home/claudio/.ivy2/cache/joda-time/joda-time/jars/joda-time-1.4.jar
> /home/claudio/.ivy2/cache/ch.qos.logback/logback-core/jars/logback-core-0.9.16.jar
> /home/claudio/.ivy2/cache/cglib/cglib-nodep/jars/cglib-nodep-2.1_3.jar
> 
> 


-----
Claudio Miranda
http://weblogs.java.net/blog/claudio
http://www.claudius.com.br/blog
-- 
View this message in context: http://www.nabble.com/Why-ivy-doesn%27t-download-these-dependencies---tp24835816p24888452.html
Sent from the ivy-user mailing list archive at Nabble.com.


Mime
View raw message