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

Fix #5847: missing Log4j Core plugin descriptor #5848

Merged
merged 3 commits into from
Apr 10, 2024

Conversation

ppkarwasz
Copy link
Contributor

@ppkarwasz ppkarwasz commented Mar 31, 2024

Description

Fix #5847
Due to a misconfiguration of the Maven Bundle Plugin, the Log4j Core plugin descriptor:

META-INF/org/apache/logging/log4j/core/config/plugins/Log4j2Plugins.dat

file is missing in the generated JAR.

This PR fixes the Maven configuration and adds a simple integration test to prevent ensure that PluginManager is able to detect the Kubernetes Lookup.

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • Feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change
  • Chore (non-breaking change which doesn't affect codebase;
    test, version modification, documentation, etc.)

Checklist

  • Code contributed by me aligns with current project license: Apache 2.0
  • I Added CHANGELOG entry regarding this change
  • I have implemented unit tests to cover my changes
  • I have added/updated the javadocs and other documentation accordingly
  • No new bugs, code smells, etc. in SonarCloud report
  • I tested my code in Kubernetes
  • I tested my code in OpenShift

ppkarwasz added a commit to ppkarwasz/kubernetes-client that referenced this pull request Mar 31, 2024
@ppkarwasz ppkarwasz marked this pull request as ready for review March 31, 2024 21:00
@manusa manusa added this to the 6.12.0 milestone Apr 10, 2024 — with automated-tasks
Copy link
Member

@manusa manusa left a comment

Choose a reason for hiding this comment

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

LGTM, thx!

Due to a misconfiguration of the Maven Bundle Plugin, the Log4j Core
plugin descriptor:

```
META-INF/org/apache/logging/log4j/core/config/plugins/Log4j2Plugins.dat
```

file is missing in the generated JAR.

This PR fixes the Maven configuration and adds a simple integration test
to prevent ensure that `PluginManager` is able to detect the Kubernetes
Lookup.
@manusa manusa force-pushed the fix/missing-log4j-descriptor branch from 5274bb2 to 19974ff Compare April 10, 2024 11:20
@manusa manusa self-requested a review April 10, 2024 11:20
Copy link

sonarcloud bot commented Apr 10, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@manusa manusa merged commit fb0683e into fabric8io:main Apr 10, 2024
17 of 19 checks passed
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.

kubernetes-log4j doesn't generate Log4j2Plugins.dat
4 participants