Restore Maven resource filtering

This partly reverts bd027cf837d20051854a215fd47ce692d0f0b726 which broke our usage
of the git-commit-id-plugin. Filtering of test resources was removed correctly.