Has anyone found a productive way to work with multiple open project frames and maven snapshots in large projects?
My common case is that in one project I'll use maven to install a snapshot to the local repository, and in another project frame commence using that snapshot immediately (jar + source artifacts).
In IntelliJ IDEA I know of two ways to work like this:
- the default is allow intellij to detect changes automatically on frame activation. A modal dialog "updating modified files" appears and blocks input in both frames while intellij does its work.
If maven touched a large number of files visible to IntelliJ, this can take a significant amount of time; or
- disable automatic detection of changed files and instead manually instruct the maven plugin to reimport projects. This pops up a model dialog for a shorter time followed by a long-running background task. It also resets some settings back to values derived from the pom. In this case IntelliJ does much more work than necessary.
There's been massive improvements to maven integration since 7.03+, and especially in 8.01, but I'm still not "developing with pleasure" in this area.
Can anyone suggest a better way to work?
I suspect if I prevent intellij from seeing any of the files touched by maven, except the local repository, I'd getter better performance. However when the project settings are derived from the maven pom it seems there will always be some overlap, especially if both projects are open in IntelliJ.