parse external pom.xml with CustomPomParser to handle multiple definitions.

Fixes #758.  This is the same issue fixed by 74c07c64a78447274be47804a6f5f5019c571dab
but in this case the cause was the top-level pom.xml, which didn't go through CustomPomParser.