How to apply custom resolution to pom generation

I got the same problem (only we are using empty version instead of “default”). Currently overriding the version directly in the POM spec, but would have appreciated an easy way to enforce the resolved versions if the declared version is empty.