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

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

Open
fniephaus opened this issue Sep 16, 2024 · 2 comments

Comments

@fniephaus
Copy link

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
Copy link

albrechtflo-hg commented Oct 14, 2024

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

@soulmakh
Copy link

soulmakh commented Nov 8, 2024

in micronaut-platform-4.6.x.pom they are importing the same dependency org.apache.kafka:kafka-clients with different version !!! :

<dependency>
        <groupId>org.apache.kafka</groupId>
        <artifactId>kafka-clients</artifactId>
        <version>${kafka.compat.version}</version>
</dependency>
<dependency>
        <groupId>org.apache.kafka</groupId>
        <artifactId>kafka-clients</artifactId>
        <version>${kafka.version}</version>
</dependency>

with

<kafka.compat.version>3.8.0</kafka.compat.version>
<kafka.version>3.7.0</kafka.version>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants