Moved POM parsing logic into Maven resolver.