Skip to content

Conversation

@wecharyu
Copy link
Contributor

@wecharyu wecharyu commented May 7, 2022

What changes were proposed in this pull request?

Remove the redundant slf4j dependency in kafka-handler module.

Why are the changes needed?

Currently the scope of this dependency is test, which caused the compile errors.

Does this PR introduce any user-facing change?

No

How was this patch tested?

No any more tests.

@wecharyu
Copy link
Contributor Author

wecharyu commented May 9, 2022

@pvary @deniskuzZ : Could you please review this PR?

Project compile failed in my new machine with maven 3.8.5, and I think this dependency is redundant, which can be inherited from the parent pom.

Copy link
Member

@zabetak zabetak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This dependency indeed looks wrong. The classes in the kafka-handler module are using the slf4j-api thus this dependency needs to be set at compile scope. As you correctly mentioned the parent pom declares explicitly this dep so removing it from here definitely makes sense.

Additionally there are a bunch of explicit exclusions of slf4j-api from other deps in this file which I believe are redundant. I think those should be removed as well. WDUT?

@wecharyu
Copy link
Contributor Author

Yes, these exclusions of slf4j-api are also defined in parent pom, can also be removed.

Copy link
Member

@zabetak zabetak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, I will merge this now.

@zabetak zabetak closed this in 74e3f29 May 16, 2022
DongWei-4 pushed a commit to DongWei-4/hive that referenced this pull request Oct 28, 2022
… (Wechar Yu, reviewed by Stamatis Zampetakis)

The classes in the kafka-handler module are using the slf4j-api thus
this dependency must be set at compile scope. Currently it is set at
test scope which makes the build fail in some recent maven versions (
e.g., 3.8.5).

The parent pom declares explicitly slf4j-api at compile scope so
removing all the references from kafka-handler/pom.xml is the way to
go.

Closes apache#3272
dengzhhu653 pushed a commit to dengzhhu653/hive that referenced this pull request Dec 15, 2022
… (Wechar Yu, reviewed by Stamatis Zampetakis)

The classes in the kafka-handler module are using the slf4j-api thus
this dependency must be set at compile scope. Currently it is set at
test scope which makes the build fail in some recent maven versions (
e.g., 3.8.5).

The parent pom declares explicitly slf4j-api at compile scope so
removing all the references from kafka-handler/pom.xml is the way to
go.

Closes apache#3272
shubhluck pushed a commit to acceldata-io/hive that referenced this pull request Sep 7, 2025
… (Wechar Yu, reviewed by Stamatis Zampetakis)

The classes in the kafka-handler module are using the slf4j-api thus
this dependency must be set at compile scope. Currently it is set at
test scope which makes the build fail in some recent maven versions (
e.g., 3.8.5).

The parent pom declares explicitly slf4j-api at compile scope so
removing all the references from kafka-handler/pom.xml is the way to
go.

Closes apache#3272

(cherry picked from commit 74e3f29)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants