title: Configuring Play 2.0 app with IDEA and SBT
body: <p>Play 2.0 uses SBT.  However it provides its own SBT action, <code>idea</code>, to create a module for a new project.  You have to create an IDEA project yourself and add the module to it.  Fine.</p>
  
  <p>What's not fine is that Play 2.0 is used from its source directory when it's unpacked, and there is a <code>repository/</code> subdirectory which is in fact an ivy repository, separate from your <code>~/.ivy2</code>.  </p>
  
  <p>How do you configure an SBT build for the app?  In the imported libraries, IDEA cannot recognize the Scala compiler.</p>
  
  <p>Play sources are not in the <code>repository/</code>.  When I do <code>publish-local</code> building Play 2.0 from git, it deposits the jar, currently at <code>2.0-RC3-SNAPSHOT</code>, there, but not sources.  Running SBT action <code>package-src</code> does produce the source jar, but it seems left in place.  Attaching it from IDEA still doesn't show source of <code>FakeRequest</code>.</p>
  
  <p>Would it be preferable to rely on the <code>gen-idea</code> in SBT instead of <code>idea</code>?</p>