ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ataggart <>
Subject Re: How to exclude source and javadoc download
Date Fri, 09 Jan 2009 20:19:46 GMT

Is there some way to do this globally?  

We just updated from ivy-2.0.0-beta2 to ivy-2.0.0-rc2 and every one of our
builds started failing due to not finding dependent class files.  I did some
digging after noticing that Ivy was downloading 'source' and 'javadoc' jars
in addition to the binary jars (which, by the way was a huge waste of
bandwidth and time), and I can only guess that our ivy:retrieve pattern
(/[artifact]-[revision].[ext]) was resulting in each of the 3 jars getting
written to the same file name, resulting in the 'javadoc' jar being the only
one left.

Defaulting to pulling down all available source and javadoc jars for every
dependency in the entire graph may be a useful feature to someone, but it is
horrible for us.  For now we've had to revert back to ivy-2.0.0-beta2.

Maarten Coene wrote:
> The sources and javadocs are part of the "sources" and "javadoc"
> configurations.
> If you exclude these in your configurationmapping, they won't be
> downloaded:
> <dependency org="commons-lang" name="commons-lang" rev="2.0"
> conf="*->*,!sources,!javadoc" />
> Maarten
> ----- Original Message ----
> From: Coolboykl <>
> To:
> Sent: Wednesday, December 3, 2008 9:10:36 AM
> Subject: How to exclude source and javadoc download
> Hi all
> I am using ivy2-RC2, using the hello-ivy as an example, could anyone tell
> me
> how to exclude javadoc and source download? below is the ivy.xml
> <ivy-module version="2.0">
>     <info organisation="org.apache" module="hello-ivy"/>
>     <dependencies>
>         <dependency org="commons-lang" name="commons-lang" rev="2.0"/>
>         <dependency org="commons-cli" name="commons-cli" rev="1.0"/>
>     </dependencies>
> </ivy-module>
> When I run ant resolve, it always download the jar, the source, and the
> javadoc. Is there anywhere to exclude those?
> Cheers
> -- 
> View this message in context:
> Sent from the ivy-user mailing list archive at

View this message in context:
Sent from the ivy-user mailing list archive at

View raw message