I have a project with dozens of modules here. I compile all the modules into 1 place by seeting module compilating path to that foulder.
However, once in a while something causes IJ to reset those paths to some default value <module>/target/classes. This causes me some pain to
1st figure out my error is caused by the issue, 2nd - go in and revert the paths to my location.