@Component(role=ArtifactTransformation.class, hint="latest") public class LatestArtifactTransformation extends AbstractVersionTransformation
repositoryMetadataManager, wagonManagerROLE| Constructor and Description |
|---|
LatestArtifactTransformation() |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
constructVersion(Versioning versioning,
java.lang.String baseVersion) |
void |
transformForDeployment(Artifact artifact,
ArtifactRepository remoteRepository,
ArtifactRepository localRepository)
Take in a artifact and return the transformed artifact for distributing to remote repository.
|
void |
transformForInstall(Artifact artifact,
ArtifactRepository localRepository)
Take in a artifact and return the transformed artifact for locating in the local repository.
|
void |
transformForResolve(Artifact artifact,
RepositoryRequest request)
Take in a artifact and return the transformed artifact for locating in the remote repository.
|
resolveVersion, resolveVersion, transformForResolvepublic void transformForResolve(Artifact artifact, RepositoryRequest request) throws ArtifactResolutionException, ArtifactNotFoundException
ArtifactTransformationartifact - Artifact to be transformed.request - the repositories to checkArtifactResolutionExceptionArtifactNotFoundExceptionpublic void transformForInstall(Artifact artifact, ArtifactRepository localRepository)
ArtifactTransformationartifact - Artifact to be transformed.localRepository - the local repository it will be stored inpublic void transformForDeployment(Artifact artifact, ArtifactRepository remoteRepository, ArtifactRepository localRepository)
ArtifactTransformationartifact - Artifact to be transformed.remoteRepository - the repository to deploy tolocalRepository - the local repositoryprotected java.lang.String constructVersion(Versioning versioning, java.lang.String baseVersion)
constructVersion in class AbstractVersionTransformation