Uploaded image for project: 'Quarkus'
  1. Quarkus
  2. QUARKUS-1340

Quarkus Maven Plugin Dependency Tree is not resolving the versions correctly

    XMLWordPrintable

Details

    Description

      Github issue: https://github.com/quarkusio/quarkus/issues/20661

      Building the dependency-tree using the Quarkus Maven plugin and following the instructions from here: https://quarkus.io/guides/maven-tooling#logging-quarkus-application-build-classpath-tree

      Command:

      mvn com.redhat.quarkus.platform:quarkus-maven-plugin:2.2.3.Final-redhat-00013:dependency-tree -Dquarkus.platform.group-id=com.redhat.quarkus.platform -Dquarkus.platform.artifact-id=quarkus-bom -Dquarkus.platform.version=2.2.3.Final-redhat-00013
      

      Even when using the right Quarkus Maven plugin version, the resolved dependencies are not replacing the versions correctly (it's using the version declared in the pom.xml file):

      [INFO] --- quarkus-maven-plugin:2.2.3.Final-redhat-00013:dependency-tree (default-cli) @ kafka-panache-reactive-quickstart ---
      [INFO] Quarkus application DEV mode build dependency tree:
      [INFO] org.acme:kafka-panache-reactive-quickstart:pom:1.0.0-SNAPSHOT
      [INFO] ├─ io.quarkus:quarkus-smallrye-reactive-messaging-kafka-deployment:jar:2.2.2.Final (compile) -- SEE HERE
      [INFO] │  ├─ io.quarkus:quarkus-core-deployment:jar:2.2.2.Final (compile)
      [INFO] │  │  ├─ org.aesh:readline:jar:2.1 (compile)
      

      Using the dependency:tree command from Maven directly, this is working as expected:

      mvn dependency:tree -Dquarkus.platform.group-id=com.redhat.quarkus.platform -Dquarkus.platform.artifact-id=quarkus-bom -Dquarkus.platform.version=2.2.3.Final-redhat-00013
      

      With output:

      [INFO] --- maven-dependency-plugin:2.8:tree (default-cli) @ kafka-panache-reactive-quickstart ---
      [INFO] org.acme:kafka-panache-reactive-quickstart:jar:1.0.0-SNAPSHOT
      [INFO] +- io.quarkus:quarkus-smallrye-reactive-messaging-kafka:jar:2.2.3.Final-redhat-00013:compile
      [INFO] |  +- io.quarkus:quarkus-kafka-client:jar:2.2.3.Final-redhat-00013:compile
      [INFO] |  |  \- io.quarkus:quarkus-caffeine:jar:2.2.3.Final-redhat-00013:compile
      [INFO] |  |     \- com.github.ben-manes.caffeine:caffeine:jar:2.9.2.redhat-00001:compile
      

      Attachments

        Activity

          People

            olubyans@redhat.com Alexey Loubyansky
            jcarvaja@redhat.com Jose Carvajal Hilario
            Fedor Dudinskii Fedor Dudinskii
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: