Class DistributionManagementArtifactRelocationSource

java.lang.Object
org.apache.maven.repository.internal.relocation.DistributionManagementArtifactRelocationSource
All Implemented Interfaces:
MavenArtifactRelocationSource

@Singleton @Named("distributionManagement") @Priority(5) @Deprecated(since="4.0.0") public final class DistributionManagementArtifactRelocationSource extends Object implements MavenArtifactRelocationSource
Deprecated.
since 4.0.0, use maven-api-impl jar instead
Relocation source from standard distribution management. This is the "one and only" relocation implementation that existed in Maven 3 land, uses POM distributionManagement/relocation.

Note: this component should kick-in last regarding relocations.

Since:
4.0.0
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private static final org.slf4j.Logger
    Deprecated.
     
    static final String
    Deprecated.
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.eclipse.aether.artifact.Artifact
    relocatedTarget(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.resolution.ArtifactDescriptorResult artifactDescriptorResult, Model model)
    Deprecated.
    Returns Artifact instance where to relocate to, or null.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • NAME

      public static final String NAME
      Deprecated.
      See Also:
    • LOGGER

      private static final org.slf4j.Logger LOGGER
      Deprecated.
  • Constructor Details

    • DistributionManagementArtifactRelocationSource

      public DistributionManagementArtifactRelocationSource()
      Deprecated.
  • Method Details

    • relocatedTarget

      public org.eclipse.aether.artifact.Artifact relocatedTarget(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.resolution.ArtifactDescriptorResult artifactDescriptorResult, Model model)
      Deprecated.
      Description copied from interface: MavenArtifactRelocationSource
      Returns Artifact instance where to relocate to, or null.
      Specified by:
      relocatedTarget in interface MavenArtifactRelocationSource
      Parameters:
      session - The session, never null.
      artifactDescriptorResult - The artifact descriptor result, never null.
      model - The artifact model, never null.
      Returns:
      The Artifact to relocate to, or null if no relocation wanted.