@Component(role=ArtifactTransformation.class, hint="snapshot") public class SnapshotTransformation extends AbstractVersionTransformation
repositoryMetadataManager, wagonManagerROLE| Constructor and Description |
|---|
SnapshotTransformation() |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
constructVersion(org.apache.maven.artifact.repository.metadata.Versioning versioning,
java.lang.String baseVersion) |
java.lang.String |
getDeploymentTimestamp() |
static java.text.DateFormat |
getUtcDateFormatter() |
void |
transformForDeployment(org.apache.maven.artifact.Artifact artifact,
org.apache.maven.artifact.repository.ArtifactRepository remoteRepository,
org.apache.maven.artifact.repository.ArtifactRepository localRepository)
Take in a artifact and return the transformed artifact for distributing to remote repository.
|
void |
transformForInstall(org.apache.maven.artifact.Artifact artifact,
org.apache.maven.artifact.repository.ArtifactRepository localRepository)
Take in a artifact and return the transformed artifact for locating in the local repository.
|
void |
transformForResolve(org.apache.maven.artifact.Artifact artifact,
org.apache.maven.artifact.repository.RepositoryRequest request)
Take in a artifact and return the transformed artifact for locating in the remote repository.
|
resolveVersion, resolveVersion, transformForResolvepublic void transformForResolve(org.apache.maven.artifact.Artifact artifact,
org.apache.maven.artifact.repository.RepositoryRequest request)
throws org.apache.maven.artifact.resolver.ArtifactResolutionException
ArtifactTransformationartifact - Artifact to be transformed.request - the repositories to checkorg.apache.maven.artifact.resolver.ArtifactResolutionExceptionpublic void transformForInstall(org.apache.maven.artifact.Artifact artifact,
org.apache.maven.artifact.repository.ArtifactRepository localRepository)
ArtifactTransformationartifact - Artifact to be transformed.localRepository - the local repository it will be stored inpublic void transformForDeployment(org.apache.maven.artifact.Artifact artifact,
org.apache.maven.artifact.repository.ArtifactRepository remoteRepository,
org.apache.maven.artifact.repository.ArtifactRepository localRepository)
throws ArtifactDeploymentException
ArtifactTransformationartifact - Artifact to be transformed.remoteRepository - the repository to deploy tolocalRepository - the local repositoryArtifactDeploymentExceptionpublic java.lang.String getDeploymentTimestamp()
protected java.lang.String constructVersion(org.apache.maven.artifact.repository.metadata.Versioning versioning,
java.lang.String baseVersion)
constructVersion in class AbstractVersionTransformationpublic static java.text.DateFormat getUtcDateFormatter()