Fix the POM build when there are SNAPSHOT dependencies in the hierarchy