Class DistributionManagementArtifactRelocationSource

  • All Implemented Interfaces:
    MavenArtifactRelocationSource

    @Singleton
    @Named("distributionManagement")
    @Priority(5)
    public final class DistributionManagementArtifactRelocationSource
    extends java.lang.Object
    implements MavenArtifactRelocationSource
    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:
    3.10.0
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String NAME  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.eclipse.aether.artifact.Artifact relocatedTarget​(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.resolution.ArtifactDescriptorResult artifactDescriptorResult, org.apache.maven.model.Model model)
      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
    • Constructor Detail

      • DistributionManagementArtifactRelocationSource

        public DistributionManagementArtifactRelocationSource()
    • Method Detail

      • relocatedTarget

        public org.eclipse.aether.artifact.Artifact relocatedTarget​(org.eclipse.aether.RepositorySystemSession session,
                                                                    org.eclipse.aether.resolution.ArtifactDescriptorResult artifactDescriptorResult,
                                                                    org.apache.maven.model.Model model)
        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.