1、SBT添加插件
.sbt/0.13/plugins/plugins.sbt 没用手工创建
addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "2.5.0")
addSbtPlugin("com.github.mpeltonen" % "sbt-idea" % "1.6.0")
2、创建项目:
mkdir -p helloworld/project
cd helloworld
3、构建文件:
vi build.sbt
name := "spark"
version := "1.0"
scalaVersion := "2.10.4"
libraryDependencies += "org.apache.spark" % "spark-core_2.10" % "1.0.2"
4、生成Eclipse项目或Intellij IDEA项目:
sbt
>gen-idea 或 eclipse
// TODO
时间: 2024-10-12 12:34:59