ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Richard Hauswald <>
Subject Re: Using ivy to retrieve only required deps and the sources of the required deps
Date Wed, 10 Jun 2009 14:40:11 GMT
Thanks for the insane fast help! It pointed me in the right direction.
my projects ivy.xml now looks like this:
<?xml version="1.0" encoding="UTF-8"?>
		module="hello-ivy" />
			transitive="true" conf="default->master,runtime"/>
<conf name="master" visibility="public" description="contains only the
artifact published by this module itself, with no transitive
 <conf name="runtime" visibility="public" description="this scope
indicates that the dependency is not required for compilation, but is
for execution. It is in the runtime and test classpaths, but not the
compile classpath." extends="compile"/>
master makes ivy to download the stripes.jar and runtime makes ivy to
download commons-logging.

Source attachments are only handled by the eclipse plugin ivyde. It
automatically grabs the sources and links them with the libs.

Thanks again,

On Wed, Jun 10, 2009 at 3:52 PM, Kirby Files<> wrote:
> Kirby Files wrote on 06/10/2009 09:31 AM:
>> I'm not an expert with the way Ivy maps Maven goals to ivy
>> configurations (if you find documentation on this, let me know), but I'd
>> try:
>> conf="compile,sources->default"
> Sorry, in copy and pasting, I kept the reversed order of configuration
> mapping from your example. I of course meant:
> conf="default->compile,sources"
> Or if you want separate compile and runtime targets:
> conf="compile->compile,sources;runtime->runtime,sources"
> Read as "This module's compile configuration depends on the compile and
> sources configurations in the dependency 'stripes'; the runtime
> configuration depends on the runtime and sources configurations in the
> dependency 'stripes'".
> Thanks,
>  --kirby

View raw message