// import sbt._
// import sbt.Keys._
// import java.io.File
// import AssemblyKeys._ name := "nd4s_2.10" + "-0.6.0" scalaVersion := "2.10.4" version := "0.1.0-SNAPSHOT" // resolvers += "Sonatype Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots/" // resolvers += "Typesafe" at "https://repo.typesafe.com/typesafe/releases/" libraryDependencies ++= Seq(
// "org.apache.spark" %% "spark-mllib_2.10" % "1.5.1" % Provided ,
// "org.apache.spark" %% "spark-core_2.10" % "1.5.1" % Provided
// ("com.github.nearbydelta" %% "deepspark" % "1.2.0" )
"org.nd4j" % "nd4j-native-platform" % "0.6.0",
"org.nd4j" % "nd4s_2.10" % "0.6.0"
// ("org.json4s" % "json4s-jackson_2.10" % "3.3.0" )
)
// libraryDependencies += "com.github.nearbydelta" %% "deepspark" % "1.2.0"
// libraryDependencies += "org.json4s" % "json4s-jackson_2.10" % "3.3.0" assemblyOption in assembly := (assemblyOption in assembly).value.copy(includeScala = false) assemblyMergeStrategy in assembly := {
case PathList(ps @ _*) if ps.last endsWith ".properties" => MergeStrategy.first
case PathList(ps @ _*) if ps.last endsWith ".class" => MergeStrategy.first
case x =>
val oldStrategy = (assemblyMergeStrategy in assembly).value
oldStrategy(x)
}
// val libraryDependencies = "org.json4s" % "json4s-jackson_2.10" % "3.3.0" % "provided"
// libraryDependencied ++= Seq(
// ("org.json4s" % "json4s-jackson_2.12.0-M4" % "3.3.0" % "provided").
// exclude("org.scala-lang", "scala-library")
// ) // libraryDependencies ++= Seq(
// ("org.json4s" % "json4s-jackson_2.12.0-M4" % "3.3.0" % "provided").
// exclude("org.scala-lang", "scala-library")
// ) // resolvers += "Apache repo" at "https://repository.apache.org/content/repositories/releases" // assemblySettings // mergeStrategy in assembly <<= (mergeStrategy in assembly) { (old) => {
// case x => val oldStrategy = old(x) if (oldStrategy == MergeStrategy.deduplicate) MergeStrategy.discard else oldStrategy
// }
// }

project/assembly.sbt

addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.14.3")

sbt assembly build.sbt content的更多相关文章

  1. build.sbt的定义格式

    一个简单的build.sbt文件内容如下: name := "hello" // 项目名称 organization := "xxx.xxx.xxx" // 组 ...

  2. SBT Assembly - Deduplicate error & Exclude error

    sbt assembly java.lang.RuntimeException: deduplicate: different file contents found in the following ...

  3. sbt assembly a fat jar for spark-submit cluster model

    在用spark-submit提交作业时,用sbt package打包好的jar程序,可以很好的运行在client模式,当在cluster模式, 一直报错:Exception in thread &qu ...

  4. Error while importing sbt project:--创建sbt项目导入文件出错

    错误截图如下: Error while importing sbt project: List([info] Loading global plugins from C:\Users\RYJ\.sbt ...

  5. sbt 以及 IDEA sbt 插件安装配置教程(转)

    1. 在Windows中安装sbt 下载 官网: http://www.scala-sbt.org/ github: https://github.com/sbt/sbt/releases/downl ...

  6. sbt打包error(sbt.librarymanagement.ResolveException: unresolved dependency: org.apache.spark#spark-streaming;2.3.1: not found)

    解决方法: 修改simple.sbt文件: cd /usr/local/spark/myapp/TestStream vim simple.sbt 切记:中间相连部分两个百分号一定要写上

  7. Spark(3) - External Data Source

    Introduction Spark provides a unified runtime for big data. HDFS, which is Hadoop's filesystem, is t ...

  8. 服务器上搭建spark开发环境

    1.安装相应的软件 (1)安装jdk 下载地址:http://www.Oracle.com/technetwork/java/javase/downloads/index.html (2)安装scal ...

  9. 编译安装spark 1.5.x(Building Spark)

    原文连接:http://spark.apache.org/docs/1.5.0/building-spark.html · Building with build/mvn · Building a R ...

随机推荐

  1. 【转】从RGB色转为灰度色算法

    ----本文摘自作者ZYL910的博客 一.基础  对于彩色转灰度,有一个很著名的心理学公式: Gray = R*0.299 + G*0.587 + B*0.114 二.整数算法 而实际应用时,希望避 ...

  2. Ring3无敌进程让你的进程变得和smss.exe一样支持64

    本帖最后由 奋斗丶小Z 于 2016-6-6 13:39 编辑 此函数可以启用或关闭开启之后变得和系统进程一样被杀系统直接蓝屏系统进程也是此函数实现的上图 可以用于进程保护 <ignore_js ...

  3. vmware虚拟机检测

    jpg改rar 

  4. Java会出现"unreachable code"错误的几个例子

    public class exam { static int num=5; static int m1(){ try{ num=6; throw new NullPointerException(); ...

  5. ASP.NET中的GridView自带的编辑更新功能

    string ConStr = ConfigurationManager.ConnectionStrings["NorthwindConnectionString"].Connec ...

  6. nefu558 bfs

    Description AC小公主很喜欢设计迷宫,她设计的迷宫只有两个口,一个入口,一个出口.但小公主有时候很调皮,她会让挑战者走不出迷宫.现在给你AC小公主的迷宫请你判断挑战者能否成功从出口走出迷宫 ...

  7. express-20 REST API和JSON

    简介 "Web服务"是一个通用术语,指任何可以通过HTTP访问的应用程序编程界面(API); 我们的重点是提供"REST风格"的服务,与其交互要更直接得多. R ...

  8. Editthiscookie

    Editthiscookie,联调,.s环境加cookie才能访问.laravel

  9. 8659 Mine Sweeping

    时间限制:500MS  内存限制:65535K提交次数:37 通过次数:15 题型: 编程题   语言: G++;GCC Description The opening ceremony of the ...

  10. 原生Ajax写法(GET)

    ajax的GET提交方式的原生代码: var xhr = null; if(window.XMLHttpRequest){ xhr = new XMLHttpRequest(); }else if(w ...