@Component(role=ArtifactTransformation.class, hint="latest") public class LatestArtifactTransformation extends AbstractVersionTransformation
repositoryMetadataManager, wagonManagerROLE| Constructor and Description |
|---|
LatestArtifactTransformation() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
constructVersion(Versioning versioning,
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, transformForResolveenableLogging, getLogger, setupLogger, setupLogger, setupLoggerpublic LatestArtifactTransformation()
public 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 String constructVersion(Versioning versioning, String baseVersion)
constructVersion in class AbstractVersionTransformationCopyright © 2001–2014 The Apache Software Foundation. All rights reserved.