Skip to content

Fix warnings from the build of project#152

Merged
im-konge merged 1 commit into
strimzi:mainfrom
im-konge:fix-warnings-build
Feb 19, 2026
Merged

Fix warnings from the build of project#152
im-konge merged 1 commit into
strimzi:mainfrom
im-konge:fix-warnings-build

Conversation

@im-konge
Copy link
Copy Markdown
Member

This PR fixes warnings when building the project:

[WARNING] Discovered module-info.class. Shading will break its strong encapsulation.
[WARNING] Discovered module-info.class. Shading will break its strong encapsulation.
[WARNING] jackson-databind-2.18.3.jar, jackson-core-2.18.3.jar, picocli-4.7.7.jar, snakeyaml-2.0.jar, slf4j-api-2.0.17.jar, jackson-datatype-jsr310-2.15.2.jar, slf4j-nop-2.0.17.jar, jackson-dataformat-yaml-2.15.2.jar define 1 overlapping classes: 
[WARNING]   - META-INF.versions.9.module-info
[WARNING] maven-shade-plugin has detected that some class files are
[WARNING] present in two or more JARs. When this happens, only one
[WARNING] single version of the class is copied to the uber jar.
[WARNING] Usually this is not harmful and you can skip these warnings,
[WARNING] otherwise try to manually exclude artifacts based on
[WARNING] mvn dependency:tree -Ddetail=true and the above output.
[WARNING] See http://maven.apache.org/plugins/maven-shade-plugin/

which is due to having the shaded jar.

[WARNING] log4j-slf4j2-impl-2.24.3.jar, log4j-slf4j-impl-2.24.0.jar define 9 overlapping classes: 
[WARNING]   - org.apache.logging.slf4j.message.ThrowableConsumingMessageFactory
[WARNING]   - org.apache.logging.slf4j.message.package-info
[WARNING]   - org.apache.logging.slf4j.Log4jMDCAdapter
[WARNING]   - org.apache.logging.slf4j.package-info
[WARNING]   - org.apache.logging.slf4j.Log4jMarker
[WARNING]   - org.apache.logging.slf4j.Log4jLogger
[WARNING]   - org.apache.logging.slf4j.Log4jLoggerFactory
[WARNING]   - org.apache.logging.slf4j.SLF4JLoggingException
[WARNING]   - org.apache.logging.slf4j.Log4jMarkerFactory

which is because data-generator is bringing log4j-slf4j-impl and we are using log4j-slf4j2-impl.

Signed-off-by: Lukas Kral <lukywill16@gmail.com>
@im-konge im-konge requested a review from a team February 19, 2026 11:46
@im-konge im-konge self-assigned this Feb 19, 2026
@im-konge im-konge added this to the 0.13.0 milestone Feb 19, 2026
@im-konge im-konge merged commit cb134e4 into strimzi:main Feb 19, 2026
4 checks passed
@im-konge im-konge deleted the fix-warnings-build branch February 19, 2026 15:37
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

Successfully merging this pull request may close these issues.

3 participants