Class NoCacheResolutionErrorPolicy

java.lang.Object
io.github.ascopes.protobufmavenplugin.dependencies.aether.NoCacheResolutionErrorPolicy
All Implemented Interfaces:
org.eclipse.aether.resolution.ResolutionErrorPolicy

final class NoCacheResolutionErrorPolicy extends Object implements org.eclipse.aether.resolution.ResolutionErrorPolicy
Policy that disables resolution error caching.

In Maven 3.9.9 or newer, we should use SimpleResolutionErrorPolicy elsewhere instead of this. For now, this is implemented to enable Maven 3.8 compatibility.

Since:
2.13.0
Author:
Ashley Scopes
  • Field Summary

    Fields inherited from interface org.eclipse.aether.resolution.ResolutionErrorPolicy

    CACHE_ALL, CACHE_DISABLED, CACHE_NOT_FOUND, CACHE_TRANSFER_ERROR
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    getArtifactPolicy(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.resolution.ResolutionErrorPolicyRequest<org.eclipse.aether.artifact.Artifact> request)
     
    int
    getMetadataPolicy(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.resolution.ResolutionErrorPolicyRequest<org.eclipse.aether.metadata.Metadata> request)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • NoCacheResolutionErrorPolicy

      NoCacheResolutionErrorPolicy()
  • Method Details

    • getArtifactPolicy

      public int getArtifactPolicy(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.resolution.ResolutionErrorPolicyRequest<org.eclipse.aether.artifact.Artifact> request)
      Specified by:
      getArtifactPolicy in interface org.eclipse.aether.resolution.ResolutionErrorPolicy
    • getMetadataPolicy

      public int getMetadataPolicy(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.resolution.ResolutionErrorPolicyRequest<org.eclipse.aether.metadata.Metadata> request)
      Specified by:
      getMetadataPolicy in interface org.eclipse.aether.resolution.ResolutionErrorPolicy