This actually sounds like "fighting the bad fight with maven" to me, it is a management tool, not a part of your bl(please correct me if I got this wrong). I doubt there is a way to do this in a way I would call "clean". However, as anybody has rights to fight bad fights, you could configure your resource plugin to filter the sources in the copy resources phase or whatever, exclude the unfiltered sources for compilation and include the filtered ones.
Never done this, never will do this, but it propably works.
