playframework 2.0 - Intellij Play make project error: not found: object Keys -
intellij idea 12.1, play 2.0.4
i got error running build...make project:
scala: not found: object keys import keys._
this existing play 2.0.4 project typically run eclipse , command line using "sbt ..." instead of "play ...". use paul sbt-extras script https://github.com/paulp/sbt-extras
plugins.sbt has line
addsbtplugin("play" % "sbt-plugin" % "2.0.4")
the error in build.scala file has typical first few lines of play project like
import sbt._ import keys._ import playproject._
i think need specify play configuration home , working directory not sure put in them.
in case ran same issue, had few things.
note: using sbt version 0.11.3-2
1) plugins.sbt
changes
- added resolver:
"sbt-idea-repo" @ "http://mpeltonen.github.com/maven/",
- added
sbt-idea
plugin: addsbtplugin("com.github.mpeltonen" % "sbt-idea" % "1.1.0") - downgraded play plugin
2.0.1
: addsbtplugin("play" % "sbt-plugin" % "2.0.1")
2) sbt gen-idea
3) if error
scala: output path /users/rngu/ij/admin-tools/project/target/scala_2.9.1 shared between: module 'admin-tools-build' production, module 'admin-tools-build' tests external scala compiler prohibits output path sharing. either disable external build mode or configure separate output paths. tip: can use project artifacts combine compiled classes.
to fix this, intellij…file…project structure… add /classes
output path
, /test-classes
test output path
.
4) build...make project
should work now.
Comments
Post a Comment