Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Integrate Play Framework in IntelliJ Idea

DZone's Guide to

Integrate Play Framework in IntelliJ Idea

· Java Zone
Free Resource

Learn how to troubleshoot and diagnose some of the most common performance issues in Java today. Brought to you in partnership with AppDynamics.

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/

Understand the needs and benefits around implementing the right monitoring solution for a growing containerized market. Brought to you in partnership with AppDynamics.

Topics:

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}