I have Maven multi-module project with such structure:
parent-pom-project
-- module1
-- module2
At the paren
Add a ${basedir}
in front of your resource directories:
This should fix your problem. My explanation would be that in a multi-module project it's not picking up the path correctly (for within the child module), if you're building from the top-level. Thus when trying to filter, it applies it to a different directory (the actual root-level aggregator), instead of the child.
I hope it helps.