Class UserPropertiesArtifactRelocationSource
java.lang.Object
org.apache.maven.repository.internal.relocation.UserPropertiesArtifactRelocationSource
- All Implemented Interfaces:
MavenArtifactRelocationSource
@Singleton
@Named("userProperties")
@Priority(50)
public final class UserPropertiesArtifactRelocationSource
extends Object
implements MavenArtifactRelocationSource
Relocation source from user properties.
- 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) ReturnsArtifact
instance where to relocate to, ornull
.
-
Field Details
-
NAME
- See Also:
-
-
Constructor Details
-
UserPropertiesArtifactRelocationSource
public UserPropertiesArtifactRelocationSource()
-
-
Method Details
-
relocatedTarget
public org.eclipse.aether.artifact.Artifact relocatedTarget(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.resolution.ArtifactDescriptorResult artifactDescriptorResult, Model model) throws org.eclipse.aether.resolution.ArtifactDescriptorException 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. - Throws:
org.eclipse.aether.resolution.ArtifactDescriptorException
-