用sbt创建eclipseIDE项目
来源:互联网 发布:淘宝一元秒杀网 编辑:程序博客网 时间:2024/04/29 02:37
分为两个步骤:
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")
0 0
- 用sbt创建eclipseIDE项目
- 使用sbt创建scala项目
- IntelliJ IDEA创建 SBT项目
- 手把手用 IntelliJ IDEA 和 SBT 创建 scala 项目
- 手把手用 IntelliJ IDEA 和 SBT 创建 scala 项目
- 手把手用 IntelliJ IDEA 和 SBT 创建 scala 项目
- sbt笔记三 用IDEA和Eclipse开发sbt项目
- 用IDEA创建sbt的Scala工程
- Scala基础教程--1 使用sbt创建scala项目
- Windows环境配置SBT并创建Scala项目
- sbt 构建scala 项目
- 新建sbt项目
- sbt构建scala项目
- SBT构建Akka项目
- SBT项目构建
- sbt编译项目
- EclipseIDE初始化
- 用sbt构建Spark项目——WordCount
- <MFC多线程> 某培训机构的多线程练习题
- fedramp
- web框架之Spring-MVC环境搭建
- Android TextView中 字体加粗方法
- 手把手图文教你eclipse下如何配置tomcat
- 用sbt创建eclipseIDE项目
- ng-book 1DataBinding and First AngularJS Web Application
- java多线程池实例
- 那个房间换个房间空间
- android 添加新的键值,自定义按键
- Linux下查询单个进程I/O信息
- "黑马程序员" 用java语言打印三角形
- 求 最小公倍数 与 最大公约数
- ubuntu 安装输入法