Skip to content

Quarkus update command rewrites unrelated dependencies #44529

Open
@siewp

Description

Describe the bug

The Quarkus update command removes versions which are unrelated to Quarkus (but are dependencies specified in the Quarkus BOM). An example is protobuf-java. See also the discussion here.

Expected behavior

After executing the Quarkus Update command, only Quarkus related dependency versions should be changed. Other dependency versions like protobuf-java should not get changed.

Actual behavior

While the Quarkus Update command rewrites Quarkus dependencies, it is also rewriting other dependencies which are unrelated. Versions seem to be removed, if the version in the pom.xml is equal to the version in the Quarkus BOM.

How to Reproduce?

Reproducer: quarkus-update-issue-reproducer.zip
Notice that the pom.xml contains a protobuf-java dependency with a specified version.

Steps to reproduce:

  1. Execute the Quarkus Update command e.g. with ./mvnw io.quarkus.platform:quarkus-maven-plugin:3.16.3:update -N
  2. After the update command was executed successfully, the version of protobuf-java is gone.

Output of uname -a or ver

No response

Output of java -version

21.0.5

Quarkus version or git rev

No response

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

3.9.9

Additional information

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

area/devtoolsIssues/PR related to maven, gradle, platform and cli tooling/pluginskind/bug-thirdpartyBugs that are caused by third-party components and not causing a major dysfunction of core Quarkus.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions