i wonder if it couldn't be solved by a maven profile attribute (in a different PR )