Class UserPropertiesArtifactRelocationSource

java.lang.Object
org.apache.maven.repository.internal.relocation.UserPropertiesArtifactRelocationSource
All Implemented Interfaces:
MavenArtifactRelocationSource

@Singleton @Named("userProperties") @Priority(50) @Deprecated(since="4.0.0") public final class UserPropertiesArtifactRelocationSource extends Object implements MavenArtifactRelocationSource
Deprecated.
since 4.0.0, use maven-api-impl jar instead
Relocation source from user properties.
Since:
4.0.0
  • Field Details

    • NAME

      public static final String NAME
      Deprecated.
      See Also:
    • LOGGER

      private static final org.slf4j.Logger LOGGER
      Deprecated.
    • CONFIG_PROP_RELOCATIONS_ENTRIES

      private static final String CONFIG_PROP_RELOCATIONS_ENTRIES
      Deprecated.
      See Also:
    • SENTINEL

      private static final org.eclipse.aether.artifact.Artifact SENTINEL
      Deprecated.
  • Constructor Details

    • UserPropertiesArtifactRelocationSource

      public UserPropertiesArtifactRelocationSource()
      Deprecated.
  • 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
      Deprecated.
      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.
      Throws:
      org.eclipse.aether.resolution.ArtifactDescriptorException
    • isProjectContext

      private boolean isProjectContext(String context)
      Deprecated.
    • isAny

      private static boolean isAny(String str)
      Deprecated.
    • matches

      private static boolean matches(String pattern, String str)
      Deprecated.
    • artifactPredicate

      private static Predicate<org.eclipse.aether.artifact.Artifact> artifactPredicate(org.eclipse.aether.artifact.Artifact artifact)
      Deprecated.
    • parseRelocations

      private UserPropertiesArtifactRelocationSource.Relocations parseRelocations(org.eclipse.aether.RepositorySystemSession session)
      Deprecated.
    • parseArtifact

      private static org.eclipse.aether.artifact.Artifact parseArtifact(String coords)
      Deprecated.