[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ivy-user
Subject:    RE: Question about excludes
From:       "David Sills" <DSills () datasourceinc ! com>
Date:       2011-07-28 10:21:21
Message-ID: A859ED91E5B64A49A34C4340328BB43D636BBA () dsource ! local
[Download RAW message or body]

All:

Many thanks for the replies. The force="true" idea didn't work (the
manager wasn't listening, I guess), but the override did.

David


-----Original Message-----
From: Tim Brown [mailto:tpbrown@gmail.com] 
Sent: Wednesday, July 27, 2011 10:28 AM
To: ivy-user@ant.apache.org
Subject: Re: Question about excludes

I think you can use Override to force the transitive dependency to the
higher version.

http://ant.apache.org/ivy/history/2.0.0/ivyfile/override.html

~Sent from my mobile device. Please pardon any oddities :-)

On Jul 27, 2011, at 4:18 AM, David Sills <DSills@datasourceinc.com>
wrote:

> All:
>
> I have a project that has a dependency on slf4j. I'm generally using
> 1.6.1 (with my own patch to fix a bug), but one of my dependencies has
a
> transitive dependency on 1.5.6. I cannot figure out how to get rid of
> this JAR file in the ivyIDE container. I am trying this:
>
> <exclude org="org.slf4j" module="com.springsource.slf4j.api"
> artifact="com.springsource.slf4j.api-1.5.6.jar" matcher="exact"/>
>
> The org and module correspond exactly to how the offending JAR file is
> stored in my repository. I know I have to be missing something, but I
> simply can't see it. Does anyone?
>
> I have tried:
>
> <exclude org="org.slf4j" module="com.springsource.slf4j.api"/>
>
> But of course that removes all versions of the JAR file, even the one
I
> want to keep. Can someone explain why there is not a "rev" attribute
in
> the exclude element? It would seem logical - don't take this revision
of
> the library.
>
> Thanks!
>
> David Sills
>

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic