I already extensively use sbt for building scala projects, and have sbt-idea set up in my ~/.sbt/plugins/build.sbt:
addSbtPlugin("com.github.mpeltonen" % "sbt-idea" % "0.11.0")
One of the great things about sbt-idea is that it automatically downloads sources and javadoc for any libraries included. I'm using the binary download for play 2.0 beta and it almost all just works: the gen-idea command is available, and it does build the intellij project. However it can't find the sources:
$ ~/tools/play-2.0-beta/play
...
[news-demo] $ gen-idea
[info] Trying to create an Idea module news-demo
[warn] [NOT FOUND ] org.scala-lang#scala-library;2.9.1!scala-library.jar(doc) (1ms)
[warn] ==== local: tried
[warn] /home/graham/tools/play-2.0-beta/framework/../repository/local/org.scala-lang/scala-library/2.9.1/docs/scala-library-javadoc.jar
[warn] [NOT FOUND ] org.scala-lang#scala-library;2.9.1!scala-library.jar(src) (0ms)
[warn] ==== local: tried
[warn] /home/graham/tools/play-2.0-beta/framework/../repository/local/org.scala-lang/scala-library/2.9.1/srcs/scala-library-sources.jar
[warn] [NOT FOUND ] play#play_2.9.1;2.0-beta!play_2.9.1.jar(src) (1ms)
[warn] ==== local: tried
[warn] /home/graham/tools/play-2.0-beta/framework/../repository/local/play/play_2.9.1/2.0-beta/srcs/play_2.9.1-sources.jar
[warn] [NOT FOUND ] play#play_2.9.1;2.0-beta!play_2.9.1.jar(doc) (0ms)
[
...
Presumably because dependencies are resolved from the local repository provided rather than a central repository. I can't see where this magic happens, but especially while in beta I really want the play sources set up in intelliJ.
Is there an easy way to make this work? I can set them up manually, of course, but this is a pain to do every time I re-generate the IntelliJ project file.
Thanks,
g