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

PHOENIX-7091 Cleanup and ban log4j and related jars from phoenix-quer… #140

Closed
wants to merge 2 commits into from

Conversation

NihalJain
Copy link
Contributor

…y-server

  • Add maven-enforcer-plugin and use it to ban commons-logging and other logging framework related jars
  • Remove all traces of log4j:log4j, org.slf4j:slf4j-log4j12 and commons-logging:commons-logging from dependency list
  • Replace log4j.properties with log4j2.properties (copied from hbase project)
  • Fix issue where IT logs where not getting logged in surefire reports due to "Failed to load class "org.slf4j.impl.StaticLoggerBinder"
  • Fix log4j duplicate dependency warning in pom.xml

…y-server

- Add maven-enforcer-plugin and use it to ban commons-logging and other logging framework related jars
- Remove all traces of log4j:log4j, org.slf4j:slf4j-log4j12 and commons-logging:commons-logging from dependency list
- Replace log4j.properties with log4j2.properties (copied from hbase project)
- Fix issue where IT logs where not getting logged in surefire reports due to "Failed to load class "org.slf4j.impl.StaticLoggerBinder"
  - See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
- Fix log4j duplicate dependency warning in pom.xml
@NihalJain
Copy link
Contributor Author

My bad, didnot fail locally as had a local 5.1.3 build with log4j remediated. Dropped patched jars from local repo. Will update PR with fix.

@NihalJain
Copy link
Contributor Author

Code is ready for review. Please review. Also, please let me know if banning jars seems too agressive (FYI HBase does the same).
CC: @stoty, @richardantal, @chrajeshbabu

Copy link
Contributor

@stoty stoty left a comment

Choose a reason for hiding this comment

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

+1 LGTM.

pom.xml Show resolved Hide resolved
pom.xml Show resolved Hide resolved
@stoty stoty closed this Nov 13, 2023
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.

2 participants