分为两个步骤:
1. 手工建立build.sbt,用sbt compile建立sbt项目;
2. 手工建立 .\project\plugins.sbt,用sbt eclipse建立eclipse项目
3. 手工建立 .\project\assembly.sbt
eclipseIDE下导入文件类项目
具体文件如下:
1. build.sbt
name := "amtf"
version := "1.0"
scalaVersion := "2.11.1"
scalacOptions += "-deprecation"
libraryDependencies <+= (scalaVersion)("org.scala-lang" % "scala-compiler" % _)
resolvers := Seq(
"Typesafe Releases" at "http://repo.typesafe.com/typesafe/maven-releases/",
"Unidata Repository" at "https://artifacts.unidata.ucar.edu/content/repositories/unidata-releases",
MavenRepository("geotools","http://download.osgeo.org/webdav/geotools"),
"nscala-time" at "http://mvnrepository.com/artifact/com.github.nscala-time/nscala-time_2.10"
)
libraryDependencies ++= Seq(
"com.typesafe.akka" %% "akka-actor" % "2.3.3"
)
2. plugins.sbt
addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "2.5.0")
3. assembly.sbt
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.11.2")
1. 手工建立build.sbt,用sbt compile建立sbt项目;
2. 手工建立 .\project\plugins.sbt,用sbt eclipse建立eclipse项目
3. 手工建立 .\project\assembly.sbt
eclipseIDE下导入文件类项目
具体文件如下:
1. build.sbt
name := "amtf"
version := "1.0"
scalaVersion := "2.11.1"
scalacOptions += "-deprecation"
libraryDependencies <+= (scalaVersion)("org.scala-lang" % "scala-compiler" % _)
resolvers := Seq(
"Typesafe Releases" at "http://repo.typesafe.com/typesafe/maven-releases/",
"Unidata Repository" at "https://artifacts.unidata.ucar.edu/content/repositories/unidata-releases",
MavenRepository("geotools","http://download.osgeo.org/webdav/geotools"),
"nscala-time" at "http://mvnrepository.com/artifact/com.github.nscala-time/nscala-time_2.10"
)
libraryDependencies ++= Seq(
"com.typesafe.akka" %% "akka-actor" % "2.3.3"
)
2. plugins.sbt
addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "2.5.0")
3. assembly.sbt
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.11.2")