Creating an IntelliJ IDEA project
Start IntelliJ, create a new project with the "Import project from external model" option, and "Maven" as the type, give it the
magnolia-subversion-repo/community directory as its root. Once IntelliJ has figured out all the modules which are in there, it will ask which ones you want to import. Take your pick, but make sure you uncheck the archetypes skeletons(which are easily recognizable, as their group and artifact IDs contains $'s. You don't need to select a specific profile. Now go get a coffee. Or smoke a cigarette. Or do something healthier if you are so inclined, but this is gonna take a moment, as it will import all the projects you just checked out and selected.
To get hot-swap on FreeMarker files (and probably other resources), you need to "make module". Somehow, as soon as a webapp module is present in your project, the resources are "packaged" (as opposed to "compiled"), and therefore not copied anymore to the module's own output folder, but rather to the webapp's.
See http://devnet.jetbrains.net/message/5317525#5317525 for updates. Turns out we don't even need to do anything to FreeMarker caching nor template loaders, but as far as my experiments go, the only way to get the template to be refreshed is to "make module".
I advise assigning a keyboard shortcut to "make module" such as ⌘-M or Alt-M.
We've attached a file with code style settings to configure Intellij to best support our coding convention.
Import Settings, then check
Code style schemes to import them.