首先把咱们以前的项目hello-sbt复制两份,分别叫hello-sbt-idea和hello-sbt-eclipse。 git
addSbtPlugin("com.github.mpeltonen" % "sbt-idea" % "1.5.2") // 2013/10/28
一样的,在hello-sbt-eclipse/project/下建立plugin.sbt文件,内容为: github
addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "2.4.0") // 2013/10/28
再看一下包结构
shell
根目录下的project文件夹(图中选中项)被转换成一个模块
eclipse
$sbt > eclipse完成后,熟悉的.project和.classpath文件出现了。