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 Details

  • Constructor Details

    • AbstractVersionTransformation

      public AbstractVersionTransformation()
      Deprecated.
  • Method Details

    • transformForResolve

      public void transformForResolve(org.apache.maven.artifact.Artifact artifact, List<org.apache.maven.artifact.repository.ArtifactRepository> remoteRepositories, org.apache.maven.artifact.repository.ArtifactRepository localRepository) throws org.apache.maven.artifact.resolver.ArtifactResolutionException, org.apache.maven.artifact.resolver.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 interface ArtifactTransformation
      Parameters:
      artifact - Artifact to be transformed.
      remoteRepositories - the repositories to check
      localRepository - the local repository
      Throws:
      org.apache.maven.artifact.resolver.ArtifactResolutionException
      org.apache.maven.artifact.resolver.ArtifactNotFoundException
    • resolveVersion

      protected String resolveVersion(org.apache.maven.artifact.Artifact artifact, org.apache.maven.artifact.repository.ArtifactRepository localRepository, List<org.apache.maven.artifact.repository.ArtifactRepository> remoteRepositories) throws RepositoryMetadataResolutionException
      Deprecated.
      Throws:
      RepositoryMetadataResolutionException
    • resolveVersion

      protected String resolveVersion(org.apache.maven.artifact.Artifact artifact, org.apache.maven.artifact.repository.RepositoryRequest request) throws RepositoryMetadataResolutionException
      Deprecated.
      Throws:
      RepositoryMetadataResolutionException
    • constructVersion

      protected abstract String constructVersion(org.apache.maven.artifact.repository.metadata.Versioning versioning, String baseVersion)
      Deprecated.