Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The quarkus-maven-plugin:dependency-tree not resolving the dependencies versions correctly #20661

Closed
Sgitario opened this issue Oct 11, 2021 · 1 comment · Fixed by #20673
Closed
Assignees
Labels
area/maven kind/bug Something isn't working
Milestone

Comments

@Sgitario
Copy link
Contributor

Describe the bug

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

Expected behavior

No response

Actual behavior

No response

How to Reproduce?

No response

Output of uname -a or ver

No response

Output of java -version

No response

GraalVM version (if different from Java)

No response

Quarkus version or git rev

2.2 and Main

Build tool (ie. output of mvnw --version or gradlew --version)

No response

Additional information

No response

@Sgitario Sgitario added the kind/bug Something isn't working label Oct 11, 2021
@quarkus-bot
Copy link

quarkus-bot bot commented Oct 11, 2021

/cc @quarkusio/devtools

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/maven kind/bug Something isn't working
Projects
None yet
3 participants