how to import a play framework 2.5 project into the eclipse

Asked

Viewed 305 times

0

Hello how could I import a lay framework project into the eclipse, in previous versions only the eclipse command within the project was enough but now the documentation is a little confused in this regard.

1 answer

1

After starting the play console, call it eclipse in the project folder:

$ play new projeto_01
$ cd projeto_01
$ play

[projeto_01] $ eclipse

the eclipse command will generate the files to import the project. Then just open the eclipse and go to File->import, n window that will appear, choose General->Existing Projects into Workspace and click on Next. The next window will ask for the project path (try to leave your project play in the same directory as the eclipse projects) and select your project play and confirms.

  • your answer is for the previous versions, but for the current version not.

  • by what it says in the documentation, for all versions the configuration method is the same, have to import this plugin in build.sbt "com.typesafe.sbteclipse" % "sbteclipse-plugin" % "4.0.0". However, I took a look at the sbt repository and this plugin was not available, maybe I removed the support plugin. But you can configure the files .classpath and .project to identify how an eclipse project.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.