mvn install:install-file -Dfile=spark-redis-master-assembly-0.1.0.jar -DgroupId=com.redislabs -DartifactId=spark-redis -Dversion=0.5.1 -Dpackaging=jar
Put resolvers += Resolver.mavenLocal
in your build.sbt file
name := "Wordy"
version := "1.0"
scalaVersion := "2.10.4"
resolvers += Resolver.mavenLocal
resolvers += Resolver.url("sbt-plugin-releases-scalasbt", url("https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/"))
resolvers += Resolver.url("spark-redis-mvn-repo", url("https://raw.github.com/RedisLabs/spark-redis/mvn-repo/"))
libraryDependencies ++= Seq(
("org.apache.hbase" % "hbase-common" % "1.1.2")
.exclude("org.mortbay.jetty", "servlet-api")
.exclude("org.mortbay.jetty", "jsp-2.1")
.exclude("org.mortbay.jetty", "jsp-api-2.1")
.exclude("org.mortbay.jetty", "servlet-api-2.5")
.exclude("commons-beanutils", "commons-beanutils-core")
.exclude("commons-collections", "commons-collections")
.exclude("commons-logging", "commons-logging")
.exclude("org.apache.hadoop", "hadoop-yarn-api")
.exclude("com.esotericsoftware.minlog", "minlog")
.exclude("org.eclipse.jetty.orbit", "javax.transaction")
.exclude("org.eclipse.jetty.orbit", "javax.mail.glassfish")
.exclude("org.eclipse.jetty.orbit", "javax.servlet")
.exclude("javax.servlet", "javax.servlet-api")
)
libraryDependencies += "org.apache.hadoop" % "hadoop-core" % "1.2.1"
libraryDependencies += "com.redislabs" % "spark-redis" % "0.5.1"
assemblyMergeStrategy in assembly := {
case PathList("META-INF", "MANIFEST.MF") => MergeStrategy.discard
case _ => MergeStrategy.last
}