@Component(role=ArtifactTransformation.class, hint="snapshot") public class SnapshotTransformation extends AbstractVersionTransformation
repositoryMetadataManager, wagonManager
ROLE
Constructor and Description |
---|
SnapshotTransformation() |
Modifier and Type | Method and Description |
---|---|
protected String |
constructVersion(Versioning versioning,
String baseVersion) |
String |
getDeploymentTimestamp() |
static DateFormat |
getUtcDateFormatter() |
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, transformForResolve
public void transformForResolve(Artifact artifact, RepositoryRequest request) throws ArtifactResolutionException
ArtifactTransformation
artifact
- Artifact to be transformed.request
- the repositories to checkArtifactResolutionException
public void transformForInstall(Artifact artifact, ArtifactRepository localRepository)
ArtifactTransformation
artifact
- Artifact to be transformed.localRepository
- the local repository it will be stored inpublic void transformForDeployment(Artifact artifact, ArtifactRepository remoteRepository, ArtifactRepository localRepository) throws ArtifactDeploymentException
ArtifactTransformation
artifact
- Artifact to be transformed.remoteRepository
- the repository to deploy tolocalRepository
- the local repositoryArtifactDeploymentException
public String getDeploymentTimestamp()
protected String constructVersion(Versioning versioning, String baseVersion)
constructVersion
in class AbstractVersionTransformation
public static DateFormat getUtcDateFormatter()
Copyright © 2001–2021 The Apache Software Foundation. All rights reserved.