Ask a question related to maven.

I have introduced a local jar package into my maven project, as shown in figure

clipboard.png

jarslf4jslf4j:

clipboard.png

is there a way to sort the slf4j referenced in my jar package? exclusions should not work here.

Mar.31,2021

Hello, reply to the invitation to answer the question.
1. Have you tried exclustions? Really? Here are two references
remove the slf4j of zookeeper
maven dependency leads to package repeated loading and conflicts

2, maven method to remove repeated reports-use plugin

<groupId>org.apache.maven.plugins</groupId>

    <artifactId>maven-war-plugin</artifactId>

    <version>2.0.2</version>

    <configuration>

          <warSourceExcludes>WEB-INF/lib/javassist-3.11.0.GA.jar</warSourceExcludes>

   </configuration>

or you can replace groupId,. I hope it helps you

Menu