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

Problems with logging dependencies #2634

Open
jusabatier opened this issue Oct 19, 2022 · 0 comments
Open

Problems with logging dependencies #2634

jusabatier opened this issue Oct 19, 2022 · 0 comments

Comments

@jusabatier
Copy link

I use LOG4J2 for logging in my SPring Boot project.

When I add print-lib as a dependency for the project, it replace Log4J binding by Logback one.

Also the SLF4J dependencies are not the same versions as the last Spring Boot ones, so I have to exclude them if I don't want the JVM to complains about duplicate versions.

To resolve those problems, I have to do some exclusions in the pom.xml :

<dependency>
    <groupId>org.mapfish.print</groupId>
    <artifactId>print-lib</artifactId>
    <version>3.29.4</version>
    <exclusions>
        <exclusion>
            <groupId>org.slf4j</groupId>
            <artifactId>*</artifactId>
        </exclusion>
        <exclusion>
            <groupId>ch.qos.logback</groupId>
            <artifactId>logback-classic</artifactId>
        </exclusion>
    </exclusions>
</dependency>

I think a library should not add logging dependencies when used, is it right ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants