title: How to properly import a Play 2+ project in IntelliJ 14+ with all integrated features (run, debug, test)?
body: <p>I work on a Java based Play! project for severals months now and I'd like to import it completely in IntelliJ, meaning being able to run, compile, test and debug from IntelliJ, without the need to use the command line.</p>
  
  <p>According to <a href="http://blog.jetbrains.com/idea/2012/12/getting-started-with-play-20-in-intellij-idea-12/" rel="nofollow noreferrer">this post</a> from Jetbrain, it seems to be possible, if I quote the article it says clearly : "Now you don’t need to switch between IntelliJ IDEA and Play console anymore. Everything is available right from your favorite IDE.", but I can't figure out a way to achieve this for now, even if I follow the tutorial provided by Jetbrains.</p>
  
  <p>Here are the steps I've been throught :</p>
  
  <ol>
  <li>Open my fav IDE IntelliJ ;)</li>
  <li>Go to the project list window.</li>
  <li>Import project</li>
  <li>Import from external model and choose SBT as suggested in Jetbrains tutorial. </li>
  <li>option "Use auto import" checked, option "create directories for empty content roots automatically" checked. Project SDK Java 1.7</li>
  <li>Global sbt settings : JVM From project JDK.</li>
  <li>Finish</li>
  </ol>
  
  <p>By now, if I try to make the project and launch it from IntelliJ, I'll get scala compiling errors related to routes object. Thanks to <a href="https://stackoverflow.com/questions/20235700/intellij-idea-report-highlighting-error-when-using-routes-in-controller">this post</a>, we can understand that this happens because scala routes are located to specific folders that needs to be included in IntelliJ sources settings for this project. So next step was :</p>
  
  <ol>
  <li>File -> Project Structure -> Modules</li>
  <li>Add target/scala-2.10/classes:target/scala-2.10/resources_managed:target/scala-2.10/src_managed as sources folders.</li>
  </ol>
  
  <p>But my problem remains the same, routes object being unrecognized.</p>
  
  <p>Notes : I have no scala facets in my project structure configuration nor can add one.</p>