micronaut-projects / micronaut-platform

Micronaut Bill Of Materials and Version Catalog
Apache License 2.0
14 stars 10 forks source link

"must be unique" warnings: version ${kafka.compat.version} vs ${kafka.version} #1683

Open fniephaus opened 1 month ago

fniephaus commented 1 month ago

Expected Behavior

No warning is printed.

Actual Behaviour

A warning appears as part of the build log:

Warning:  
Warning:  Some problems were encountered while building the effective model for com.example:demo:native-image:0.1
Warning:  'dependencyManagement.dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.apache.kafka:kafka-clients:jar -> version ${kafka.compat.version} vs ${kafka.version} @ io.micronaut.platform:micronaut-platform:4.6.1, /home/runner/.m2/repository/io/micronaut/platform/micronaut-platform/4.6.1/micronaut-platform-4.6.1.pom, line 2107, column 19
Warning:  
Warning:  It is highly recommended to fix these problems because they threaten the stability of your build.
Warning:  
Warning:  For this reason, future Maven versions might no longer support building such malformed projects.
Warning:

Steps To Reproduce

Compile a Micronaut starter into a JAR or native.

Environment Information

No response

Example Application

https://github.com/graalvm/graalvm-demos/actions/runs/10888287911/job/30212429591#step:4:12

Version

4.6.1

albrechtflo-hg commented 3 weeks ago

Also in 4.6.2 and 4.6.3. Seems to be related to #1690 .