How to setup eclipse-ide work on the playframework 2.0

playframework-2.0, scala

Solution

THIS SOLUTION WAS FOR PLAY 2.0, you can't use it directly in 2.1! at least the command build-repository isn't valid anymore.

git clone git://github.com/playframework/Play20.git

Add

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

to `play20/framework/project/plugins.sbt`, so you get

logLevel := Level.Warn

resolvers += Classpaths.typesafeResolver

addSbtPlugin("com.typesafe.sbtscalariform" % "sbtscalariform" % "0.3.0")

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

Then make the normal build processes.

$ cd Play20/framework
$ ./build
> build-repository
> eclipse

Create a Scala-IDE give her enough Space, choose the 64-bit variant if you can!

Import projects from `play20/framework/src`

Add `/Play/target/scala-2.9.1/src_managed/main` as source folder.

You will end up with less than 10 compilation errors :-(, but will have the most of the code in eclipse.

Problem

On Github there is an description how to build the framework from scratch. How ever I want to understand how somethings work internally so I want to setup the Eclipse-IDE to make this as comfortable as possible. Has anyone a description how this can be easily done? To make it clear, I don't want to know how to setup eclipse for working on play-project.

Original source