jarパケット依存競合解決プロセスを記述する

877 ワード

intellijを使用して、プロジェクトの開始時にjarパッケージ依存性を発見します.
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/D:/deploy/apache-maven-3.5.3/repository/ch/qos/logback/logback-classic/1.1.11/logback-classic-1.1.11.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/D:/deploy/apache-maven-3.5.3/repository/org/slf4j/slf4j-log4j12/1.7.25/slf4j-log4j12-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [ch.qos.logback.classic.util.ContextSelectorStaticBinder]

オンライン検索では、jarパケット依存によるものとして、SLF 4 J依存は参照されているjarパケットから除外されるべきであり、pomインタフェースから依存関係図を表示し、jarパケットを検索してexclusion操作を実行することができるが、操作後も除外されないため、以下のコマンドラインを使用してmaven依存を検索し、手動で依存を排除する
      
mvn dependency:tree