It turns out, Maven supports excluding all transitive dependencies for a
given dependency. I filed a ticket in Ivy JIRA to support this in makepom
task (see https://issues.apache.org/jira/browse/IVY-1470 )

Kind regards,
Stevo Slavic


On Tue, Apr 29, 2014 at 4:54 PM, Stevo Slavić <[email protected]> wrote:

> Hello Zookeeper developers,
>
> I see in ivy.xml both on trunk and branch-3.4 that multiple dependencies
> are defined with transitive=false. Problem is that (AFAIK) Maven doesn't
> have similar support (for simply excluding all transitive dependencies for
> a given dependency), so generated and on Maven central published Zookeeper
> POM just has dependency declaration, without any exclusions.
> Adding such Zookeeper artifact as dependency brings in also all transitive
> dependencies. E.g. with Zookeeper 3.4.x as dependency will bring in jline
> 0.9.94 dependency, but also all of its dependencies, including compile
> scoped junit 3.8.1 ...
>
> If pom generation/publishing cannot be fixed to generate appropriate
> explicit exclusions automatically, please consider manually replacing all
> transitive=false dependencies in zookeeper ivy.xml with explicit exclusions.
>
> Kind regards,
> Stevo Slavic
>

Reply via email to