Check release tag in maven-metadata.xml unless snapshots are requested

Most maven-metadata.xml files include a release tag with the latest released version as the content.  This change checks that tag for content and short circuits the version tag check unless snapshots are requested.  If snapshots are requested, all version tags are collected instead.