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.
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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.aether.artifact.Artifact
relocatedTarget
(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.resolution.ArtifactDescriptorResult artifactDescriptorResult, Model model) Deprecated.ReturnsArtifact
instance where to relocate to, ornull
.
-
Field Details
-
NAME
Deprecated.- See Also:
-
-
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
ReturnsArtifact
instance where to relocate to, ornull
.- Specified by:
relocatedTarget
in interfaceMavenArtifactRelocationSource
- Parameters:
session
- The session, nevernull
.artifactDescriptorResult
- The artifact descriptor result, nevernull
.model
- The artifact model, nevernull
.- Returns:
- The
Artifact
to relocate to, ornull
if no relocation wanted.
-
maven-api-impl
jar instead