code: private static Document getMavenMetadata(URL repoBaseURL, String mavenGroupID, String mavenArtifactID)
              throws JDOMException, IOException {
          return new SAXBuilder().build(new URL(repoBaseURL.toString() + "/" + mavenGroupID.replace('.', '/')
                  + "/" + mavenArtifactID + "/maven-metadata.xml"));
      }
docs: Get a DOM of mavens {@code maven-metadata.xml}-file of the specified
  artifact.
  
  @param repoBaseURL     The base url where the repo can be reached. For Maven Central,
  this is <a href="http://repo1.maven.org/maven/">http://repo1.maven.org/maven/</a>
  @param mavenGroupID    The groupID of the artifact to be looked up.
  @param mavenArtifactID The artifactId of the artifact to be looked up.
  @return A JDOM {@link Document} representation of mavens
  {@code maven-metadata.xml}
  @throws JDOMException If mavens {@code maven-metadata.xml} is not parseable (Which
  will never be the case unless you don't modify it manually).
  @throws IOException   In case mavens {@code maven-metadata.xml} cannot be retrieved
  for any other reason.