IDEA 8987: Change to Maven POM causes slow "invalidating indexes" sweep

Idea 8987, JDK 1.6.0_10

I've been extremely pleased with the Maven support in IDEA 8 EAP. It's finally getting to the point where I can rely fully on the Maven support for managing my dependencies in the editor.

I ran into a new case today, however. I have a webapp module with some Java classes and many JSPs. I added a single new dependency to the POM for the module, and re-imported. The import was OK, but following the import IDEA opened a progress dialog with a message like "Invalidating indexes...". This blocked the editor for several minutes (4-5) while the changes were applied.

I'm glad if the editor works hard for me to make my work easier. I don't often have to change this module (it's not part of my code), but it would be nice if this process could be improved. Perhaps something like: if IDEA can estimate that the invalidation is going to affect many files, prompt me to re-open the project--then drop the indexes on re-open, and just build a clean index. Don't know if that's possible, but I'm going to hesitate to make any changes to this POM unless absolutely necessary.


Please sign in to leave a comment.