运行“SBT程序集”时的问题:
[错误]合并java.lang.runtimeException时遇到3个错误:删除重复:在以下位置找到不同的文件内容:.vlasakakis/.ivy2/cache/ch.qos.logback/logback-classic/jars/logback-classic-1.1.2.jar:org/slf4j/impl/staticMDCBinder.class/users/aris.vlasakakis/.ivy2/cache/org.slf4j/slf4j-log4j12/jars/slf4j-log4j12/jars/slf4j-log4j12-1.6.1.jar:org/slf4j/impl/staticMDCBinder.class deduplicate:在以下文件中可以找到不同的文件内容:-classic-1.1.2.jar:org/slf4j/impl/staticmarkerbinder.class/users/aris.vlasakakis/.ivy2/cache/org.slf4j/slf4j-log4j12/jars/slf4j-log4j12-1.61.jar:org/slf4j/impl/staticmarkerbinder.class at sbtAssembly.Assembly.Assembly.Assembly.Assembly.Assembly.x$1$lzyCompute$1(Assembly.Scala:140)at sbtAssembly.Assembly.x$1$lzyCompute$1(Assembly.Scala:25)at sbtAssembly.Assembly.Assembly.x$1$1(Assembly.Scala:23)at y.assembly$.inputs$1(assembly.scala:57)
...诸如此类
I am using SBT-assembly 0.13.0, and here is the build.sbt
name := "metamorphosis"
version := "0.10.0"
scalaVersion := "2.10.4"
lazy val common = RootProject(file("../"))
val main = Project(id = "bridge", base = file(".")).dependsOn(common)
//excludeDependencies += "org.apache.logging.log4j"
resolvers ++= Seq(
// "Akka Snapshot Repository" at "http://repo.akka.io/snapshots/",
"Typesafe Releases" at "http://repo.typesafe.com/typesafe/releases/",
"Sonatype OSS Releases" at "http://oss.sonatype.org/content/repositories/releases/"
)
libraryDependencies ++= Seq(
"com.github.nscala-time" %% "nscala-time" % "1.8.0",
"com.sclasen" %% "akka-kafka" % "0.0.10" % "compile",
"com.typesafe.akka" %% "akka-actor" % "2.3.2",
"org.codehaus.groovy" % "groovy" % "2.3.7",
"com.typesafe.scala-logging" %% "scala-logging-slf4j" % "2.1.2",
"ch.qos.logback" % "logback-classic" % "1.1.2",
"ch.qos.logback.contrib" % "logback-json-classic" % "0.1.2",
"ch.qos.logback.contrib" % "logback-jackson" % "0.1.2",
"org.slf4j" % "slf4j-api" % "1.7.7",
"com.fasterxml.jackson.core" % "jackson-databind" % "2.2.2",
"org.clapper" %% "argot" % "1.0.3",
"com.typesafe" % "config" % "1.2.1",
"net.ceedubs" %% "ficus" % "1.0.1",
"com.typesafe.play" %% "anorm" % "2.3.6",
"org.json4s" %% "json4s-native" % "3.2.10",
"org.json4s" %% "json4s-jackson" % "3.2.10",
"com.github.tototoshi" %% "scala-csv" % "1.1.2",
"org.scalatest" %% "scalatest" % "2.2.2",
"junit" % "junit" % "4.11",
"org.apache.kafka" %% "kafka" % "0.8.1.1"
exclude("javax.jms", "jms")
exclude("com.sun.jdmk", "jmxtools")
exclude("com.sun.jmx", "jmxri")
exclude("org.slf4j", "slf4j-simple")
)
mainClass in assembly := Some("com.company.kafka.agent.MetamorphosisActor")
关于如何解决这个合并问题,有什么线索吗?
谢谢!
我的错误:
[error] (project/*:assembly) deduplicate: different file contents found in the following:
[error] /home/user/.ivy2/cache/ch.qos.logback/logback-classic/jars/logback-classic-1.2.3.jar:org/slf4j/impl/StaticLoggerBinder.class
[error] /home/user/.ivy2/cache/org.slf4j/slf4j-log4j12/jars/slf4j-log4j12-1.7.10.jar:org/slf4j/impl/StaticLoggerBinder.class
[error] deduplicate: different file contents found in the following:
[error] /home/user/.ivy2/cache/ch.qos.logback/logback-classic/jars/logback-classic-1.2.3.jar:org/slf4j/impl/StaticMDCBinder.class
[error] /home/user/.ivy2/cache/org.slf4j/slf4j-log4j12/jars/slf4j-log4j12-1.7.10.jar:org/slf4j/impl/StaticMDCBinder.class
[error] deduplicate: different file contents found in the following:
[error] /home/user/.ivy2/cache/ch.qos.logback/logback-classic/jars/logback-classic-1.2.3.jar:org/slf4j/impl/StaticMarkerBinder.class
[error] /home/user/.ivy2/cache/org.slf4j/slf4j-log4j12/jars/slf4j-log4j12-1.7.10.jar:org/slf4j/impl/StaticMarkerBinder.class
追踪相互冲突的依赖项。例如,我不希望这些类:
org.slf4j/slf4j-log4j12/jars/slf4j-log4j12-1.7.10.jar:org/slf4j/impl/StaticLoggerBinder.class
org.slf4j/slf4j-log4j12/jars/slf4j-log4j12-1.7.10.jar:org/slf4j/impl/StaticMDCBinder.class
org.slf4j/slf4j-log4j12/jars/slf4j-log4j12-1.7.10.jar:org/slf4j/impl/StaticMarkerBinder.class
调用sbt
(并确保使用sbt-dependency-graph插件):
whatDependsOn org.slf4j slf4j-log4j12 1.7.10
[info] org.slf4j:slf4j-log4j12:1.7.10
[info] +-org.apache.hadoop:hadoop-auth:2.8.0
[info] | +-org.apache.hadoop:hadoop-common:2.8.0
[info] | +-com.github.atais:test_2.11:0.0.3 [S]
[info] |
[info] +-org.apache.hadoop:hadoop-common:2.8.0
[info] | +com.github.atais:test_2.11:0.0.3 [S]
[info] |
[info] +-org.apache.zookeeper:zookeeper:3.4.6
[info] +-org.apache.curator:curator-client:2.7.1
[info] | +-org.apache.curator:curator-framework:2.7.1
[info] | | +-org.apache.curator:curator-recipes:2.7.1
[info] | | | +-org.apache.hadoop:hadoop-common:2.8.0
[info] | | | +-com.github.atais:test_2.11:0.0.3 [S]
[info] | | |
[info] | | +-org.apache.hadoop:hadoop-auth:2.8.0
[info] | | +-org.apache.hadoop:hadoop-common:2.8.0
[info] | | +-com.github.atais:test_2.11:0.0.3 [S]
[info] | |
[info] | +-org.apache.hadoop:hadoop-common:2.8.0
[info] | +-com.github.atais:test_2.11:0.0.3 [S]
[info] |
[info] +-org.apache.curator:curator-framework:2.7.1
[info] | +-org.apache.curator:curator-recipes:2.7.1
[info] | | +-org.apache.hadoop:hadoop-common:2.8.0
[info] | | +-com.github.atais:test_2.11:0.0.3 [S]
[info] | |
[info] | +-org.apache.hadoop:hadoop-auth:2.8.0
[info] | +-org.apache.hadoop:hadoop-common:2.8.0
[info] | +-com.github.atais:test_2.11:0.0.3 [S]
[info] |
[info] +-org.apache.curator:curator-recipes:2.7.1
[info] | +-org.apache.hadoop:hadoop-common:2.8.0
[info] | +-com.github.atais:test_2.11:0.0.3 [S]
[info] |
[info] +-org.apache.hadoop:hadoop-auth:2.8.0
[info] | +-org.apache.hadoop:hadoop-common:2.8.0
[info] | +-com.github.atais:test_2.11:0.0.3 [S]
[info] |
[info] +-org.apache.hadoop:hadoop-common:2.8.0
[info] +-com.github.atais:test_2.11:0.0.3 [S]
libraryDependencies += "org.apache.hadoop" % "hadoop-common" % "2.8.1" exclude("org.slf4j", "slf4j-log4j12")
assemblyMergeStrategy in assembly := {
...
case PathList("org", "slf4j", xs@_*) => MergeStrategy.first
case x => (assemblyMergeStrategy in assembly).value(x)
}
当我尝试在华为P9上运行我的应用程序时,我得到了一个错误 日志: 07-04 10:42:56.045:W/System.err(955):java.lang.NullPoInterException:尝试对空对象引用调用虚拟方法“int com.huawie.lcagent.client.logCollectManager.GetUserType()”07-04 10:42:56.046:W/S
在过去的几个星期里,我使用下面的gCloud命令成功地创建了dataproc集群: gcloud dataproc--区域us-east1群集创建测试1--子网默认值--区域us-east1-c--主机类型n1-standard-4--主机启动磁盘大小250--工作机数量10--工作机类型n1-standard-4--工作机启动磁盘大小200--工作机本地SSD数量1--映像版本1.2--作用域h
我正试图从Angular 7编写的前端登录到django rest框架编写的后端。每当我尝试登录时,都会出现一个错误 CORS策略阻止从http://localhost:8000/api-auth/loginhttp://localhost:4200访问XMLHttpRequest:对预飞行请求的响应不通过权限改造检查:预飞行请求不允许重定向。 当我尝试相同的API从邮递员,我得到了另一个错误-
我刚刚创建了一个新的模板与与reactv17包括,我安装了eslint依赖,因为我以前,这是我的package.json文件 这是我的eslintrc.json:(注意我还没有添加所有的规则) 当我运行应用程序时,由于以下错误,应用程序将无法编译: 我在以前的项目中工作过,代码中显示了eslint错误,但没有导致应用程序崩溃。有人能指出我把事情弄糟的地方吗? 谢谢
所有com.android.support库必须使用完全相同的版本规范(混合版本会导致运行时崩溃)。找到版本27.0.2、26.1.0.示例包括com.android.support:support-compat:27.0.2和com.android.support:animated-vector-drawable:26.1。 应用插件:“com.android.application” 当我运行
使用在嵌套目录中部署带有处理程序的lambda时遇到问题。 我执行以下步骤: > 包装: sam包——模板。yaml——打包的输出模板文件。yaml--s3铲斗 创建我在下一步中使用的packaged.yaml。 部署: AWS部署模板文件 /Users/localuser/Do/learn-sam/dynamo-stream-lambda/packaged.yaml 错误 云信息/SAM模板 目