Class GAVConvertor


  • public final class GAVConvertor
    extends Object
    Performs the functions required for converting GAV (group, artefact, version) coordinates into a URI.
    Author:
    Andrew Pielage
    • Method Detail

      • getArtefactMapEntry

        public static Map.Entry<String,​URI> getArtefactMapEntry​(String GAV,
                                                                      Collection<String> repositoryURIs)
                                                               throws URISyntaxException
        Returns a valid URI for a provided GAV (GroupId, ArtifactId, Version).
        Parameters:
        GAV - A comma separated list of the groupId, artifactId, and version number
        repositoryURIs - A collection of repository URIs to search for the target artefact in
        Returns:
        A URI matching the provided GAV
        Throws:
        URISyntaxException - Thrown if an artefact cannot be found for the provided GAV