ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Geoff Clitheroe <g.clithe...@gmail.com>
Subject Re: how to exclude dependency from ALL dependencies....
Date Sat, 05 Feb 2011 00:15:11 GMT
Yes,

you can use exclude
http://ant.apache.org/ivy/history/latest-milestone/ivyfile/exclude.html

<http://ant.apache.org/ivy/history/latest-milestone/ivyfile/exclude.html>e.g.,
this in my ivy.xml does exactly what you imagine

...
     <exclude org="commons-httpclient"/>
</dependencies>



FWIW I tend to put this at the end of the dependencies section - I found
that global overrides needed to be at the end of the file and I do this out
of habit now.  YMMV.

Cheers,
Geoff


On Sat, Feb 5, 2011 at 12:50 PM, Hiller, Dean (Contractor) <
dean.hiller@broadridge.com> wrote:

> I have about 6 things that depend on commons logging and I am trying to
> pull in slf4j and it's commons api, jdk api, log4j api, but I have to go
> add 6 different exclude and worse yet if we add a new dependency, we
> could end up accidentally sucking the commons jar back in again.
>
>
>
> Is there a way in ivy.xml to exclude a pattern from all dependencies
> coming in? (a simple no would be great if that is the case)
>
>
>
> Thanks,
>
> Dean
>
>
> This message and any attachments are intended only for the use of the
> addressee and
> may contain information that is privileged and confidential. If the reader
> of the
> message is not the intended recipient or an authorized representative of
> the
> intended recipient, you are hereby notified that any dissemination of this
> communication is strictly prohibited. If you have received this
> communication in
> error, please notify us immediately by e-mail and delete the message and
> any
> attachments from your system.
>
>

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