question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How about excluding `commons-logging` in `spring-core` in `spring-boot-dependencies`?

See original GitHub issue

In every starter module (spring-boot-starter-*),

the following dependency keeps showing up:

        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-core</artifactId>
            <exclusions>
                <exclusion>
                    <groupId>commons-logging</groupId>
                    <artifactId>commons-logging</artifactId>
                </exclusion>
            </exclusions>
        </dependency>

How about excluding commons-logging in spring-core in spring-boot-dependencies?

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
davidkarlsencommented, Jul 6, 2018

Yeah - I think it is maybe no longer relevant for 2.x since spring started using it’s own logging abstraction which detects jcl, slf4j etc

0reactions
philwebbcommented, Jul 4, 2018

@davidkarlsen Thanks for the suggestion. We actually already include jcl-over-slf4j with the logging starter. Also later version of Spring Boot also no longer have the exclude (this is quite an old issue report).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Logging Dependencies in Spring
To switch off commons-logging is easy: just make sure it isn't on the classpath at runtime. In Maven terms you exclude the dependency, ......
Read more >
Disable Apache Commons Logging in Spring project
But if possible, look for commons-logging.jar in your /lib directory. If it's still there, then you might try deleting the file from your...
Read more >
Gradle - Exclude commons-logging from Spring - Mkyong.com
Gradle example to exclude commons-logging from Spring frameworks. A better solution is excluding commons-logging at the project level.
Read more >
Logging in Spring Boot - Baeldung
In order to use any logging library other than Logback, though, we need to exclude it from our dependencies.
Read more >
Logging in Spring Boot - HowToDoInJava
Spring boot's internal logging is written with Apache Commons Logging so it is one and only mandatory dependency. Till Spring boot version ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found