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
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.
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.
And last, the sources of the Play Framework aren’t linked, so we can add them :
And now we’ve a fully configured Play Framework Project in our editor :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.)