Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to setup eclipse-ide work on the playframework 2.0

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.

like image 613
niels Avatar asked Apr 07 '12 09:04

niels


People also ask

Which IDES can be used for play applications?

Play supports the NetBeans, IntelliJ IDEA and Eclipse platforms.

How do I run a play framework?

To run a Play application: Create a new Run Configuration – From the main menu, select Run -> Edit Configurations. Click on the + to add a new configuration. From the list of configurations, choose “sbt Task”


1 Answers

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.

like image 158
niels Avatar answered Oct 05 '22 04:10

niels