Yeah - I've found profiles to be really frustrating and annoying in this regard.  We could do it with a profile, but this is how we're doing it in guava, and it's been stable and introduces fewer constructs into the build. I'm ok if you want to do it with profiles instead - I can rewrite it.