DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones AWS Cloud
by AWS Developer Relations
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones
AWS Cloud
by AWS Developer Relations
  1. DZone
  2. Coding
  3. Tools
  4. Configuring IntelliJ IDEA for PlayFramework 2.0 Beta

Configuring IntelliJ IDEA for PlayFramework 2.0 Beta

Dominik Dorn user avatar by
Dominik Dorn
·
Nov. 16, 11 · Interview
Like (0)
Save
Tweet
Share
10.90K Views

Join the DZone community and get the full member experience.

Join For Free

So this is what you'll have to do to get a play 2.0 beta JAVA app running.


Create a new project using play new sampleTest

Play 2.0 Beta PlayFramework folder structure

in this example, it would be
$APP=/home/domdorn/work/play/



and I have play 2.0 beta installed in

$PLAY=/home/domdorn/work/playframework/play-2.0-beta

In IDEA, create a new project and select "Create Java Project from
existing sources"
Create a new Play 2.0 Project
 
and click next until the window disappears.

next, open up the module settings and configure it like here

Configure the Module of your Playframework 2.0 Application Source folders:
$APP/app

then add a new library
 
Configure the PlayFramework dependency
with the following paths

JAR-Directories
$PLAY/framework/sbt/boot/scala-2.9.1/play/play/2.0-beta/
$PLAY/framework/sbt/boot/scala-2.9.1/lib/

Source-Folders:
$PLAY/framework/play/src/main/java/


For the module

then add another dependency (single entry library)
(you might have to compile your play app first using play compile)
and configure it like in this screenshot
Configure the local generated classses as dependencies
- $APP/target/scala-2.9.1/classes
- $APP/target/scala-2.9.1/classes-managed
 
voila, you can now develop with play 2.0 in your favorite IDEa ;)


I hope this helps some of you!
 
p.s.: on the Play Framework Mailing list, Francisco Canedo mentioned to instead of manually configuring IDEA you should integrate with the IDEA SBT Plugin. See this thread for further information.
 
 
intellij BETA (programming language)

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • Understanding and Solving the AWS Lambda Cold Start Problem
  • Choosing the Right Framework for Your Project
  • Fixing Bottlenecks in Your Microservices App Flows
  • Best CI/CD Tools for DevOps: A Review of the Top 10

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends: