Integrate Play Framework in IntelliJ Idea
Now that I have created a Play Framework first application, it’s time to integrate it in IntelliJ Idea. This is made really easy because Play provides a command to create the Iml module file for the project. You can use the command play idealize app_name to create a iml module file.
So let’s try :
wichtounet@Linux-Desktop:~/dev/play$ play idealize hello/
~ _ _
~ _ __ | | __ _ _ _| |
~ | '_ \| |/ _' | || |_|
~ | __/|_|\____|\__ (_)
~ |_| |__/
~
~ play! 1.0.3, http://www.playframework.org
~
~ OK, the application is ready for Intellij Idea
~ Use File/New Module/Import Existing module
~
wichtounet@Linux-Desktop:~/dev/play$
If you go to the hello folder, you’ll found a “Hello World.iml” file. “Hello World” is the name of the application. So you just have to add it to a IntelliJ Idea project. And it’s almost done.

Play Framework Project in Idea
The libraries are well configured, and the test folder is already configured as a test folder. But a thing we can do is to ignore the logs and tmp folders, as these are not really useful during development.

Ignore the logs and tmp folders
And last, the sources of the Play Framework aren’t linked, so we can add them :

Add the sources of the framework
And now we’ve a fully configured Play Framework Project in our editor :

Complete Play Framework Integration
From http://www.baptiste-wicht.com/2010/07/integrate-play-framework-intellij-idea/(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)





