Class AbstractVersionTransformation
java.lang.Object
org.codehaus.plexus.logging.AbstractLogEnabled
org.apache.maven.repository.legacy.resolver.transform.AbstractVersionTransformation
- All Implemented Interfaces:
ArtifactTransformation
,org.codehaus.plexus.logging.LogEnabled
- Direct Known Subclasses:
LatestArtifactTransformation
,ReleaseArtifactTransformation
,SnapshotTransformation
@Deprecated
public abstract class AbstractVersionTransformation
extends org.codehaus.plexus.logging.AbstractLogEnabled
implements ArtifactTransformation
Deprecated.
Describes a version transformation during artifact resolution.
TODO try and refactor to remove abstract methods - not particular happy about current design
-
Field Summary
Modifier and TypeFieldDescriptionprotected RepositoryMetadataManager
Deprecated.protected WagonManager
Deprecated.Fields inherited from interface org.apache.maven.repository.legacy.resolver.transform.ArtifactTransformation
ROLE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract String
constructVersion
(Versioning versioning, String baseVersion) Deprecated.protected String
resolveVersion
(Artifact artifact, ArtifactRepository localRepository, List<ArtifactRepository> remoteRepositories) Deprecated.protected String
resolveVersion
(Artifact artifact, RepositoryRequest request) Deprecated.void
transformForResolve
(Artifact artifact, List<ArtifactRepository> remoteRepositories, ArtifactRepository localRepository) Deprecated.Take in an artifact and return the transformed artifact for locating in the remote repository.Methods inherited from class org.codehaus.plexus.logging.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.maven.repository.legacy.resolver.transform.ArtifactTransformation
transformForDeployment, transformForInstall, transformForResolve
-
Field Details
-
repositoryMetadataManager
Deprecated. -
wagonManager
Deprecated.
-
-
Constructor Details
-
AbstractVersionTransformation
public AbstractVersionTransformation()Deprecated.
-
-
Method Details
-
transformForResolve
public void transformForResolve(Artifact artifact, List<ArtifactRepository> remoteRepositories, ArtifactRepository localRepository) throws ArtifactResolutionException, ArtifactNotFoundException Deprecated.Description copied from interface:ArtifactTransformation
Take in an artifact and return the transformed artifact for locating in the remote repository. If no transformation has occurred the original artifact is returned.- Specified by:
transformForResolve
in interfaceArtifactTransformation
- Parameters:
artifact
- Artifact to be transformed.remoteRepositories
- the repositories to checklocalRepository
- the local repository- Throws:
ArtifactResolutionException
ArtifactNotFoundException
-
resolveVersion
protected String resolveVersion(Artifact artifact, ArtifactRepository localRepository, List<ArtifactRepository> remoteRepositories) throws RepositoryMetadataResolutionException Deprecated. -
resolveVersion
protected String resolveVersion(Artifact artifact, RepositoryRequest request) throws RepositoryMetadataResolutionException Deprecated. -
constructVersion
Deprecated.
-