Just ran into the same problem - my project is set up like so:
root/
.idea/
MainApp/ <-- this one is a Play 2.2.2 project
.idea/
apps/ <-- contains other Play2 projects
I was attempting to run the MainApp
project and had the same problem.
If you notice in your run error: [info] Set current project to modules (in build file:/J:/DEV/TYPESAFE/reactive-maps/.idea/modules/)
states it is setting the project to modules
. You want it to be reactive-maps
.
Mine did the same - my quick solution:
-- find the file .idea/modules/reactive-maps.iml
, move it to the root level reactive-maps/
directory.
-- Open the file, Ctrl-F
Ctrl-R
(find-and-replace)
-- Find: $MODULE_DIR$/../..
Replace with: $MODULE_DIR$/
Running the Play2 application again worked at this point.
The ideal solution would be importing it correctly (and I'm sure there is a way to do this), but this got my application running through IntelliJ quickly (although it will likely break on restart/SBT refresh).