I’m a swiss Master student in Computer Science. I’m very interested in C++, open source projects, Linux, Intel Assembly and Agile. I'm currently working on Eddi, a new programming language that I created to improve my skills in C++. I've also worked a lot on Java technologies (Sprint, Osgi, Play!, ...), but I'm not currently working with Java anymore. Baptiste is a DZone MVB and is not an employee of DZone and has posted 51 posts at DZone. You can read more from them at their website. View Full User Profile

Integrate Play Framework in IntelliJ Idea

07.07.2010
| 7977 views |
  • submit to reddit

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

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

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

Add the sources of the framework

And now we’ve a fully configured Play Framework Project in our editor :

Complete Play Framework Integration

Complete Play Framework Integration

From http://www.baptiste-wicht.com/2010/07/integrate-play-framework-intellij-idea/
Published at DZone with permission of Baptiste Wicht, author and DZone MVB.

(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)