Comments (5)
Stevo Slavić commented
+1
For spring framework modules, logging implementation, log4j, is marked as compile scope optional dependency. Related ticket: SPR-5327
from spring-data-commons.
Pablo Alcaraz commented
In my case, I am using slf4j + logback
I had to put a weird exclusion in my pom.xml to wipe slf4j-log4j12
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-commons-core</artifactId>
<version>1.0.0.M3</version>
<exclusions>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
</exclusion>
</exclusions>
I think we have to follow the SLF4J facade recommendation. Extracted from SLF4J Manual:
As of SLF4J version 1.6.0, if no binding is found on the class path, then slf4j-api will default to a no-operation implementation discarding all log requests. Thus, instead of throwing a NoClassDefFoundError because the org.slf4j.impl.StaticLoggerBinder class is missing, SLF4J version 1.6.0 and later will emit a single warning message about the absence of a binding and proceed to discard all log requests without further protest. For example, let Wombat be some biology-related framework depending on SLF4J for logging. In order to avoid imposing a logging framework on the end-user, Wombat's distribution includes slf4j-api.jar but no binding. Even in the absence of any SLF4J binding on the class path, Wombat's distribution will still work out-of-the-box, and without requiring the end-user to download a binding from SLF4J's web-site. Only when the end-user decides to enable logging will she need to install the SLF4J binding corresponding to the logging framework chosen by the end-user.
from spring-data-commons.
Oliver Drotbohm commented
Reduced scope of all but the SLF4J API module to test scope which should then resolve yll off the issues you mentioned. Feel free to give it a try and report back if you still face problems
from spring-data-commons.
Oliver Drotbohm commented
Log4J dependency is still in runtime scope due to reverted fix inside a merge commit
from spring-data-commons.
Oliver Drotbohm commented
Should be fixed by Jon's latest commit that makes us using Commons Logging again
from spring-data-commons.
Related Issues (20)
- KPropertyPath doesn't support Iterables HOT 1
- Scroll API - Example Code Problem and Question HOT 3
- Extend license header copyright years to 2024
- Extend license header copyright years to 2024
- Extend license header copyright years to 2024
- Extend license header copyright years to 2024
- Add support to provide default values for `QuerydslBindings`
- Document Window<T> as a query return type
- `Parameter.isDynamicProjectionParameter` does not properly resolve generics of containing class
- Release 3.1.9 (2023.0.9)
- Release 3.2.3 (2023.1.3)
- Limit::equals can throw an exception HOT 1
- Provide means to render simplified JSON representations of `PageImpl` easily
- Missing native-image reflection hint for `org.springframework.data.domain.Unpaged` HOT 6
- IteratorSpliterator returns estimateSize which violates Spliterator's contract breaking parallel stream processing HOT 7
- Document `ExtensionAwareEvaluationContextProvider` mechanism
- Provide out of the box client-side support for Pageable/Page encoding/deserialization HOT 1
- `NoClassDefFoundError` when processing reflection hints for `PageModule`
- ParameterizedTypeReference<CollectionModel<EntityModel<>>> returns empty content from RestTemplate / WebClient HOT 2
- Invalid parent parameter provided to static inner class constructors HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spring-data-commons.