0
slf4jの依存関係に問題があります。 pom.xmlにslf4jの依存関係を削除できません
、私はこの宣言:
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>1.7.12</version>
<exclusions>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.7.12</version>
</dependency>
をしかし、私はこのエラーメッセージ満たす:これらdirectortiesオンとMavenの依存関係
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in
[jar:file:/C:/Users/r.rossi/.m2/repository/org/slf4j/slf4j-
nop/1.5.3/slf4j-nop-1.5.3.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in
[jar:file:/C:/Users/r.rossi/.m2/repository/org/slf4j/slf4j-
jdk14/1.5.6/slf4j-jdk14-
1.5.6.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in
[jar:file:/C:/Users/r.rossi/.m2/repository/org/slf4j/slf4j-
log4j12/1.7.12/slf4j-log4j12-
1.7.12.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an
explanation.
SLF4J: slf4j-api 1.6.x (or later) is incompatible with this binding.
SLF4J: Your binding is version 1.5.5 or earlier.
SLF4J: Upgrade your binding to version 1.6.x.
を私は1.5のバージョンを持っていますが、私は(あなたが見ることができるように)POM.xmlファイルにそれらを持っていないので、私はそれらを削除する方法を知らない。私がディレクトリを削除すると、それは動作しますが、プロジェクトが再び1.5バージョンをダウンロードする次のエスケーションです。それらの卑劣な1.5バージョンをどのように削除できますか?
リポジトリキャッシュを実行してクリーニングする前にビルドをクリーンアップしようとしましたか? – Nico