I'm using IntelliJ 2017.2.3 Ultimate.
Our project has - for historical reasons - Hibernate mapping files under the source folder. Because of that, I seem unable to mark their containing directory as a Resource directory - I can only exclude it.
Preferences > Build > Compiler > Clear output directory on rebuild is selected
When I run a unit test (Before launch: Build, Activate tool window), the resource files aren't copied - causing failing tests, because changes aren't picked up.
It's a multi-module maven project. I don't want to build everything, and I'd rather not do a mvn clean install -DskipTests instead of a Build.
How can I fix the issue (and make IntelliJ copy the changed hbm files)?
Also, why is the target folder not cleared, even though the compiler settings say it should be?