Skip to content

Sub dependency with exclusion cause problem with DependencyConvergence #895

@marwin1991

Description

@marwin1991

Affected version

3.5.0

Bug description

Dependency convergence error for org.apache.commons:commons-text:jar:1.11.0 paths to dependency are:
+-pl.bbb.aaa:cccc:jar:1.4.0-SNAPSHOT
  +-org.liquibase:liquibase-core:jar:4.31.1:compile
    +-com.opencsv:opencsv:jar:5.9:compile
      +-org.apache.commons:commons-text:jar:1.11.0:compile
and
+-pl.bbb.aaa:cccc:jar:1.4.0-SNAPSHOT
  +-org.liquibase:liquibase-core:jar:4.31.1:compile
    +-org.apache.commons:commons-text:jar:1.13.0:compile

But when with - X there is no duplication (because commons-text:jar:1.11.0 is excluded)

[DEBUG]    org.liquibase:liquibase-core:jar:4.31.1:compile
[DEBUG]       com.opencsv:opencsv:jar:5.9:compile
[DEBUG]       org.yaml:snakeyaml:jar:2.4:compile (version managed from 2.3)
[DEBUG]       javax.xml.bind:jaxb-api:jar:2.3.1:compile
[DEBUG]       org.apache.commons:commons-collections4:jar:4.4:compile
[DEBUG]       org.apache.commons:commons-text:jar:1.13.0:compile
[DEBUG]       commons-io:commons-io:jar:2.18.0:compile
[DEBUG]    com.h2database:h2:jar:2.3.232:test

I have even reported issue to liquibase what caused fix:
liquibase/liquibase#5826 (comment)
https://github.com/liquibase/liquibase/blob/v4.31.1/liquibase-standard/pom.xml#L128

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions