Class TransferUtils
- java.lang.Object
-
- org.apache.maven.shared.transfer.artifact.TransferUtils
-
public final class TransferUtils extends java.lang.ObjectUtility class- Author:
- Robert Scholte
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ArtifactCoordinatetoArtifactCoordinate(org.apache.maven.artifact.Artifact artifact)static ArtifactCoordinatetoArtifactCoordinate(org.apache.maven.model.Extension extension)Special case: an extension is always of typejar, so can be transformed to an ArtifactCoordinate.static ArtifactCoordinatetoArtifactCoordinate(org.apache.maven.model.Parent parent)Special case: a parent is always of typepom, so can be transformed to an ArtifactCoordinate.static ArtifactCoordinatetoArtifactCoordinate(org.apache.maven.model.Plugin plugin)Special case: a plugin is always of typejar, so can be transformed to an ArtifactCoordinate.static ArtifactCoordinatetoArtifactCoordinate(org.apache.maven.model.ReportPlugin plugin)Special case: a reportPlugin is always of typejar, so can be transformed to an ArtifactCoordinate.
-
-
-
Method Detail
-
toArtifactCoordinate
public static ArtifactCoordinate toArtifactCoordinate(org.apache.maven.artifact.Artifact artifact)
- Parameters:
artifact-Artifact- Returns:
ArtifactCoordinate
-
toArtifactCoordinate
public static ArtifactCoordinate toArtifactCoordinate(org.apache.maven.model.Extension extension)
Special case: an extension is always of typejar, so can be transformed to an ArtifactCoordinate.- Parameters:
extension-Extension- Returns:
ArtifactCoordinate
-
toArtifactCoordinate
public static ArtifactCoordinate toArtifactCoordinate(org.apache.maven.model.Parent parent)
Special case: a parent is always of typepom, so can be transformed to an ArtifactCoordinate.- Parameters:
parent-Parent- Returns:
ArtifactCoordinate
-
toArtifactCoordinate
public static ArtifactCoordinate toArtifactCoordinate(org.apache.maven.model.Plugin plugin)
Special case: a plugin is always of typejar, so can be transformed to an ArtifactCoordinate.- Parameters:
plugin-Plugin- Returns:
ArtifactCoordinate
-
toArtifactCoordinate
public static ArtifactCoordinate toArtifactCoordinate(org.apache.maven.model.ReportPlugin plugin)
Special case: a reportPlugin is always of typejar, so can be transformed to an ArtifactCoordinate.- Parameters:
plugin-ReportPlugin- Returns:
ArtifactCoordinate
-
-