Skip to content

Transtive dependencies are missing #1797

@cmoulliard

Description

@cmoulliard

Affected version

1.9.24

Bug description

Issue

The methods collectDependencies and resolveDependencies of the RepositorySystem only resolve partially the transitive dependencies when we create a CollecRequest with dependencies define in a pom.xml.

The following screenshot shows that some nodes of the DefaultDependencyNode contains children which are empty while they contain dependencies

Image
[INFO] +- io.quarkus:quarkus-resteasy:jar:3.18.4:compile
[INFO] |  \- io.quarkus:quarkus-resteasy-server-common:jar:3.18.4:compile
[INFO] |     +- io.quarkus:quarkus-resteasy-common:jar:3.18.4:compile
[INFO] |     |  \- org.jboss.resteasy.microprofile:microprofile-config:jar:3.0.1.Final:compile
[INFO] |     +- org.jboss.resteasy:resteasy-cdi:jar:6.2.11.Final:compile
[INFO] +- io.quarkus:quarkus-resteasy-jackson:jar:3.18.4:compile
[INFO] |  +- org.jboss.resteasy:resteasy-jackson2-provider:jar:6.2.11.Final:compile <====== it contains 2 children
[INFO] |  |  +- org.jboss.resteasy:resteasy-core-spi:jar:6.2.11.Final:compile
[INFO] |  |  +- org.jboss.resteasy:resteasy-core:jar:6.2.11.Final:compile

I created a test case reproducing the issue: https://github.com/snowdrop/rewrite-client/blob/main/src/test/java/dev/snowdrop/rewrite/cli/DependencyNodeIssue.java

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