1. 程式人生 > >在eclipse配置scala專案

在eclipse配置scala專案

sbteclipseBuild Status

Plugin forsbtto createEclipseproject definitions. Please see theDocumentationfor information about installing and using sbteclipse. Information about contribution policy and license can be found below.

For sbt 0.13 and up

  • Add sbteclipse to your plugin definition file (or create one if doesn't exist). You can use either:
    • the global file (for version 0.13 and up) at~/.sbt/0.13/plugins/plugins.sbt
    • the project-specific file atPROJECT_DIR/project/plugins.sbt

For the latest beta version:

addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "4.0.0-RC2")

For the stable version:

addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "3.0.0")
  • In sbt use the commandeclipseto create Eclipse project files
> eclipse
  • In Eclipse use theImport Wizardto importExisting Projects into Workspace

For sbt 0.12 and earlier

  • Add sbteclipse to the old global file at~/.sbt/plugins/plugins.sbtor to the project-specific file (see above).
  • Use an earlier version of sbteclipse:
sbt version sbteclipse version
0.12 2.1.2
0.11.3 2.1.1
0.11.2 2.0.0

Contribution policy

Contributions via GitHub pull requests are gladly accepted from their original author. Before we can accept pull requests, you will need to agree to theTypesafe Contributor License Agreementonline, using your GitHub account - it takes 30 seconds.