我正在尝试使用 SBT 创建一个胖罐。它总是给出一个错误:
未找到:程序集中的值 assemblyJarName assemblyJarName := s"${name.value.replace(' ','-')}-${version.value}.jar"
我的 build.sbt 看起来是这样的:
name := "SparkExamples1"
version := "0.1"
scalaVersion := "2.11.12"
libraryDependencies += "org.apache.hadoop" % "hadoop-streaming" % "2.6.0"
libraryDependencies += "org.apache.spark" %% "spark-core_2.11" % "2.4.5"
assemblyJarName in assembly := s"${name.value.replace(' ','-')}-${version.value}.jar"
assemblyOption in assembly := (assemblyOption in assembly).value.copy(includeScala= false)
我的 assemebly.sbt 看起来像这样---
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.14.10")
scala 版本是 2.12.8,sbt 版本是 0.13.9。