Class DistributionManagementArtifactRelocationSource
- java.lang.Object
-
- org.apache.maven.repository.internal.relocation.DistributionManagementArtifactRelocationSource
-
- All Implemented Interfaces:
MavenArtifactRelocationSource
@Singleton @Named("distributionManagement") @Priority(5) public final class DistributionManagementArtifactRelocationSource extends java.lang.Object implements MavenArtifactRelocationSourceRelocation 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.StringNAME
-
Constructor Summary
Constructors Constructor Description DistributionManagementArtifactRelocationSource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.aether.artifact.ArtifactrelocatedTarget(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.resolution.ArtifactDescriptorResult artifactDescriptorResult, org.apache.maven.model.Model model)ReturnsArtifactinstance where to relocate to, ornull.
-
-
-
Field Detail
-
NAME
public static final java.lang.String NAME
- See Also:
- Constant Field Values
-
-
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:MavenArtifactRelocationSourceReturnsArtifactinstance where to relocate to, ornull.- Specified by:
relocatedTargetin interfaceMavenArtifactRelocationSource- Parameters:
session- The session, nevernull.artifactDescriptorResult- The artifact descriptor result, nevernull.model- The artifact model, nevernull.- Returns:
- The
Artifactto relocate to, ornullif no relocation wanted.
-
-