Intellij (2020.3 Beta, but the same is true for earlier versions) is having a difficult time with importing maven modules. In this very large project (2800 maven modules, using sparse checkout to minimize this) intellij is not able to succesfully import all projects (I did set the correct memory options so it no longer runs out of memory during the import). It seems to import everything but when for instance I want to run a test a start a session of whack-a-mole where I have to reimport individual modules (can not go further out than 1 parent) until Intellij understands all the dependencies again.
I would like to understand the cause of this whack-a-mole so I can mitigate the problem.
There is also another problem that Intellij seems to no longer understand when profiles are used to enable modules (the previous new project -> import from existing sources -> select pom file did allow me to select the profiles back in late 2018?). In my specific case:
I use this because I am doing sparse checkouts skipping as many modules as I can, which means I would for instance omit the entire /Constants directory if it is not required (example chosen due to it not containing any company specific file names))