ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hezjing <>
Subject How to download only the required JARs?
Date Tue, 06 Jan 2009 16:25:57 GMT
I want to test Logback.

Without Ivy, my project has one compile JAR:

and two runtime JARs:


With Ivy, I configured the following ivy.xml:

<ivy-module version="1.0">
  <info organisation="com.dummy" module="hello" />
    <conf name="build" visibility="private" description="compilation only
need jar" />
    <dependency org="ch.qos.logback" name="logback-classic" rev="0.9.14" />

and here is the Ant's task to download the dependencies:

  <target name="resolve" description="retrieve dependencies">
    <ivy:retrieve pattern="${lib}/[conf]/[artifact].[ext]" />

Do you know why when Ant run, it start downloading the following JARs?
[ivy:retrieve]  found ch.qos.logback#logback-classic;0.9.14 in public
[ivy:retrieve]  found ch.qos.logback#logback-core;0.9.14 in public
[ivy:retrieve]  found org.slf4j#slf4j-api;1.5.6 in public
[ivy:retrieve]  found javax.mail#mail;1.4 in public
[ivy:retrieve]  found javax.activation#activation;1.1 in public
[ivy:retrieve]  found janino#janino;2.4.3 in public
[ivy:retrieve]  found org.apache.geronimo.specs#geronimo-jms_1.1_spec;1.0 in
[ivy:retrieve]  found javax.servlet#servlet-api;2.5 in public

What I want to do is to configure a 'build' configuration, that gives
me slf4j-api-1.5.6.jar
and a 'runtime' configuration, that gives me logback-core-0.9.14.jar
and logback-classic-0.9.14.jar (which also extends the 'build'



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