IntelliJ & Maven: Why does IntelliJ add projects no longer referenced by pom file?

I've noticed something recently as I was trying to clean up some code.  I see that when I create a new IntelliJ project based off of an existing pom file, some old (no longer referenced by the pom) projects are added to the IntelliJ project structure.  The code still exists in our cvs repository (and thus under my source root dir), but the pom of that sub-project is not referenced by any other pom file.  It wouldn't be such a big deal, but I've recently started using Inspection builds in TeamCity.  Errors in those old (no longer maintained) pom files keep showing up in our Inspection report. I don't want to have to maintain those old files (I can't remove them from source right now) just to get a clean Inspection build.

So my question is why are those still picked up by IntelliJ and added to the project structure?  Or better yet, what can I do to specifically exclude/hide them from IntelliJ?

Thanks,
davesaus

2 comments
Comment actions Permalink

Did you try opening Project Structure view, click the module representing your root pom file and exclude the folder for the submodule. That should work.

0
Comment actions Permalink

Thanks.  That's exactly what I was looking for.

0

Please sign in to leave a comment.