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"?>
<ivy-module
        version="2.0"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
        xsi:noNamespaceSchemaLocation="ivy.xsd"
>
        <info
                organisation="org.apache"
                module="hello-ivy" />
        <dependencies>
                <dependency
                        org="net.sourceforge.stripes"
                        name="stripes"
                        rev="1.5.1"
                        transitive="true" conf="default->master,runtime"/>
        </dependencies>
</ivy-module>
<conf name="master" visibility="public" description="contains only the
artifact published by this module itself, with no transitive
dependencies"/>
 <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,
Richard

On Wed, Jun 10, 2009 at 3:52 PM, Kirby Files<[email protected]> 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
>

Reply via email to