Discuss New Concept,New Technic,New Tools, Including EAI,BPM,SOA,Tibco,IBM MQ,Tuxedo, Cloud,Hadoop,NoSQL,J2EE,Ruby,Scala,Python, Performance,Scalability,Distributed,HA, Social Network,Machine Learning.

Eclipse-Scala

Oct 032012
 
 [repost ]sbteclipse  October 3, 2012  Posted by on October 3, 2012 at 3:06 pm Eclipse-Scala, Scala-Tools Tagged with: , , ,  No Responses »

original:https://github.com/typesafehub/sbteclipse

sbteclipse

Plugin for sbt to create Eclipse project definitions. Please see the Documentation for information about installing and using sbteclipse. Information about mailing lists, contribution policy and license can be found below.

For the impatient

  • sbteclipse requires sbt 0.11.3-2 or 0.12!
  • Add sbteclipse to your plugin definition file. You can use either the global one at ~/.sbt/plugins/plugins.sbt or the project-specific one at PROJECT_DIR/project/plugins.sbt:
    addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "2.1.0")
  • In sbt use the command eclipse to create Eclipse project files:
    > eclipse
  • In Eclipse use the Import Wizard to import Existing Projects into Workspace

Mailing list

Please use the sbt mailing list and prefix the subject with “[sbteclipse]“.

 

Installing sbteclipse

sbteclipse is a plugin for sbt 0.11.3 and 0.12.0. Please make sure that you are using a supported sbt release. In order to download and install sbt, please refer to the sbt Getting Started Guide / Setup.

As sbteclipse is a plugin for sbt, it is installed like any other sbt plugin, that is by mere configuration. For details about using sbt plugins, please refer to the sbt Getting Started Guide / Using Plugins.

Most probably you can skip the details and just add sbteclipse to your global or local plugin definition. Global plugin are defined in a plugins.sbtfile in the ~/.sbt/plugins/ directory and local plugins are defined in a plugins.sbt file in the project/ folder of your project.

In order to add the sbteclipse plugin, just add the below setting to the relevant plugin definition, paying attention to blank lines between settings:

addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "2.1.0")

Attention: Make sure you use sbteclipse-plugin! There is also an artifact sbteclipse-core, which doesn’t add the command eclipse automatically and is mainly meant for integration purpose.

After adding the sbteclipse plugin like this, you should either start sbt or, if it was already started, reload the current session by executing thereload command. If everything worked, you should have the new command eclipse available. Now read on about how to use sbteclipse.