I have a 'logs' directory on the same level as my project is and Intellij Idea, and I can open these logs from Idea. Files in this directory are a couple of gigs, so when I try to search a string in a project it results into a minute or so search, whereas I expect it to be instant. So I mark it as 'Excluded' in Idea.
The problem is that every time there is a change to pom and project is reloaded, I need to mark this dir as 'Excluded' again. So it's becoming a bit annoying because sometimes I forget to do this.
There is a similar question: Exclude folder in intellij idea using Maven. However I'm not using this plugin, because it would be easier for me to always mark this folder as Excluded in Idea on every pom change.