Package fish.payara.deployment.util
Class GAVConvertor
- java.lang.Object
-
- fish.payara.deployment.util.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 Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Map.Entry<String,URI>
getArtefactMapEntry(String GAV, Collection<String> repositoryURIs)
Returns a valid URI for a provided GAV (GroupId, ArtifactId, Version).
-
-
-
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 numberrepositoryURIs
- 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
-
-