Class DistributionManagementArtifactRelocationSource
java.lang.Object
org.apache.maven.impl.resolver.relocation.DistributionManagementArtifactRelocationSource
- All Implemented Interfaces:
- MavenArtifactRelocationSource
@Singleton
@Named("distributionManagement")
@Priority(5)
public final class DistributionManagementArtifactRelocationSource
extends 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:
- 4.0.0
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionorg.eclipse.aether.artifact.ArtifactrelocatedTarget(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.resolution.ArtifactDescriptorResult artifactDescriptorResult, Model model) ReturnsArtifactinstance where to relocate to, ornull.
- 
Field Details- 
NAME- See Also:
 
 
- 
- 
Constructor Details- 
DistributionManagementArtifactRelocationSourcepublic DistributionManagementArtifactRelocationSource()
 
- 
- 
Method Details- 
relocatedTargetpublic org.eclipse.aether.artifact.Artifact relocatedTarget(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.resolution.ArtifactDescriptorResult artifactDescriptorResult, Model model) Description copied from interface:MavenArtifactRelocationSourceReturnsArtifactinstance where to relocate to, ornull.- Specified by:
- relocatedTargetin interface- MavenArtifactRelocationSource
- Parameters:
- session- The session, never- null.
- artifactDescriptorResult- The artifact descriptor result, never- null.
- model- The artifact model, never- null.
- Returns:
- The Artifactto relocate to, ornullif no relocation wanted.
 
 
-