Use configurations. Specify the source artifact as part of a source
configuration, like so:

    <configurations>
        <conf name="core" description="core artifact" transitive="false"/>
        <conf name="runtime" description="runtime dependencies not required
for compile" extends="core"/>
        <conf name="provided" description="provided by the environment at
runtime"/>
        <conf name="sources" description="source files archive for this
library, if any"/>
        <conf name="javadoc" description="javadoc files archive for this
library, if any"/>
    </configurations>

    <publications>
        <artifact type="jar" ext="jar" conf="core"/>
        <artifact type="src" ext="jar" conf="sources"/>
        <artifact type="javadoc" ext="jar" conf="javadoc"/>
    </publications>

-Jonathan

On Wed, Apr 13, 2011 at 10:30 AM, Richard_Senior
<[email protected]>wrote:

>
> Hello,
>
> How do I tell ivy that even though a dependancy stipulates a source jar as
> part of it's published artifacts, I don't want the source jars downloading?
> --
> View this message in context:
> http://old.nabble.com/how-do-I-exclude-the-downloading-of-source-jars--tp31388590p31388590.html
> Sent from the ivy-user mailing list archive at Nabble.com.
>
>

Reply via email to