quarkusio / quarkus

Quarkus: Supersonic Subatomic Java.
https://quarkus.io
Apache License 2.0
13.35k stars 2.56k forks source link

Quarkus update tool not resolving ${revision} in sub-module of multi-module projects #41420

Open Ruhsi opened 1 week ago

Ruhsi commented 1 week ago

Describe the bug

When I attempted to update https://github.com/Ruhsi/quarkus-multi-module (a multi-module project) the revision property in the sub-module quarkus-test-1 gets not resolved and it fails with this error message:

[ERROR] Failed to execute goal io.quarkus.platform:quarkus-maven-plugin:3.11.3:update (default-cli) on project quarkus-parent: Execution default-cli of goal io.quarkus.platform:quarkus-maven-plugin:3.11.3:update failed: Failed to initialize Quarkus Maven context: Failed to load current project at /Users/christoph.ruhsam/Documents/gepardec/quarkus-multi-module/pom.xml: Failed to resolve the effective model for /Users/christoph.ruhsam/Documents/gepardec/quarkus-multi-module/quarkus-test-1/pom.xml: 1 problem was encountered while building the effective model for at.ruhsi.quarkus:quarkus-test-1:${revision}
[ERROR] [FATAL] Non-resolvable parent POM for at.ruhsi.quarkus:quarkus-test-1:${revision}: The following artifacts could not be resolved: at.ruhsi.quarkus:quarkus-parent:pom:${revision} (absent): Could not find artifact at.ruhsi.quarkus:quarkus-parent:pom:${revision} in central (https://repo.maven.apache.org/maven2) and 'parent.relativePath' points at wrong local POM @

Commands I tried:

All three commands give the same error.

However a mvn clean installworks fine.

Expected behavior

The revision variable gets resolved and quarkus update works as expected.

Actual behavior

The revision variable does not get resolved and delivers this error:

[ERROR] Failed to execute goal io.quarkus.platform:quarkus-maven-plugin:3.11.3:update (default-cli) on project quarkus-parent: Execution default-cli of goal io.quarkus.platform:quarkus-maven-plugin:3.11.3:update failed: Failed to initialize Quarkus Maven context: Failed to load current project at /Users/christoph.ruhsam/Documents/gepardec/quarkus-multi-module/pom.xml: Failed to resolve the effective model for /Users/christoph.ruhsam/Documents/gepardec/quarkus-multi-module/quarkus-test-1/pom.xml: 1 problem was encountered while building the effective model for at.ruhsi.quarkus:quarkus-test-1:${revision}
[ERROR] [FATAL] Non-resolvable parent POM for at.ruhsi.quarkus:quarkus-test-1:${revision}: The following artifacts could not be resolved: at.ruhsi.quarkus:quarkus-parent:pom:${revision} (absent): Could not find artifact at.ruhsi.quarkus:quarkus-parent:pom:${revision} in central (https://repo.maven.apache.org/maven2) and 'parent.relativePath' points at wrong local POM @

How to Reproduce?

No response

Output of uname -a or ver

No response

Output of java -version

openjdk version "17.0.10" 2024-01-16 OpenJDK Runtime Environment Temurin-17.0.10+7 (build 17.0.10+7) OpenJDK 64-Bit Server VM Temurin-17.0.10+7 (build 17.0.10+7, mixed mode)

Quarkus version or git rev

3.10.0

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

Apache Maven 3.9.7 (8b094c9513efc1b9ce2d952b3b9c8eaedaf8cbf0) Maven home: /Users/christoph.ruhsam/.sdkman/candidates/maven/current Java version: 17.0.10, vendor: Eclipse Adoptium, runtime: /Users/christoph.ruhsam/Library/Java/JavaVirtualMachines/temurin-17.0.10/Contents/Home Default locale: de_AT, platform encoding: UTF-8 OS name: "mac os x", version: "14.5", arch: "aarch64", family: "mac"

Additional information

No response

quarkus-bot[bot] commented 1 week ago

/cc @quarkusio/devtools (maven)