Handle <dependencyManagement> inheritance/override blah blah.
Some tidying.