No need to reinvent what is already in the dependency tree: info.aduna.io.MavenUtil
thanks @ansell for the pointer!
Some implementation tweaks pointed out by @ansell. Thanks!