मुझे अपने प्ले 2.3.8 परीक्षण रन से logback
को छोड़कर वास्तव में कठिन समय है। मैंने कई नियमों को बाहर करने की कोशिश की है, लेकिन कुछ भी काम नहीं करता है। मैं इसे अपने निर्भरता पेड़ में भी नहीं ढूंढ सकता। मेरी एसबीटी फ़ाइल से स्निपेट:प्लेबैक को छोड़कर 2.3.8 एसबीटी खेलें
[...]
resolvers ++= Seq(
"Typesafe repository snapshots" at "http://repo.typesafe.com/typesafe/snapshots/",
"Typesafe repository releases" at "http://repo.typesafe.com/typesafe/releases/",
"Sonatype repo" at "https://oss.sonatype.org/content/groups/scala-tools/",
"Sonatype releases" at "https://oss.sonatype.org/content/repositories/releases",
"Sonatype snapshots" at "https://oss.sonatype.org/content/repositories/snapshots",
"Sonatype staging" at "http://oss.sonatype.org/content/repositories/staging",
"Java.net Maven2 Repository" at "http://download.java.net/maven/2/",
"Twitter Repository" at "http://maven.twttr.com",
"Websudos releases" at "http://maven.websudos.co.uk/ext-release-local"
)
libraryDependencies ++= {
val phantomVersion = "1.5.0"
Seq(
"net.jpountz.lz4" % "lz4" % "1.3.0",
"org.xerial.snappy" % "snappy-java" % "1.1.1.6",
"com.websudos" %% "phantom-dsl" % phantomVersion,
"com.websudos" %% "phantom-testing" % phantomVersion % Test,
"org.scalatestplus" %% "play" % "1.2.0" % Test,
"org.cassandraunit" % "cassandra-unit" % "2.1.3.1" % Test
).map(_.exclude("org.slf4j", "slf4j-jdk14"))
.map(_.excludeAll(ExclusionRule(organization = "ch.qos.logback")))
.map(_.excludeAll(ExclusionRule(organization = "QOS.ch")))
.map(_.excludeAll(ExclusionRule(artifact = "logback*")))
.map(_.excludeAll(ExclusionRule(artifact = "logback-classic")))
.map(_.exclude("ch.qos.logback", "logback-parent"))
.map(_.exclude("ch.qos.logback", "logback-core"))
.map(_.exclude("QOS.ch", "logback-parent"))
.map(_.exclude("", "logback-classic"))
}
यह किसी कारण से निर्भरता पेड़ में नहीं है:
$ activator "inspect tree test" |grep -i qos |wc -l
0
$ activator "inspect tree test" |grep -i logback |wc -l
0
फिर भी, जब मैं परीक्षण चलाने के लिए, यह पता चलता है!
$ activator test
[...]
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/Users/X/.ivy2/cache/ch.qos.logback/logback-classic/jars/logback-classic-1.1.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/Users/X/.ivy2/cache/org.slf4j/slf4j-log4j12/jars/slf4j-log4j12-1.6.1.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]
मैं अपने wits 'अंत में हूँ। मदद।
मैंने प्लगइन को 0.7.4 से 0.7.5 तक अपग्रेड किया है, और अभी भी '[त्रुटि] वैध कमांड नहीं मिला है: whatDependsOn' – kumetix
@kumetix इस तरह के कमांड का उपयोग करें:' sbt 'whatDependsOn ch.qos.logback लॉगबैक -classic 1.1.1'' इसमें बहुत अच्छा त्रुटि संदेश नहीं है, लेकिन यह –
@flavian काम करता है यह अभी भी आपके उत्तर के लिए लॉगबैक-क्लासिक – Woodz