Interface ArtifactResolverPostProcessor


Artifact resolver post-resolution processor component, is able to hook into resolver and post-process the resolved artifact results, if needed even produce resolution failure. It will always be invoked (even when failure is about to happen), so detecting these cases are left to post processor implementations.
Since:
1.9.0
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    postProcess(org.eclipse.aether.RepositorySystemSession session, List<org.eclipse.aether.resolution.ArtifactResult> artifactResults)
    Receives resolver results just before it would return it to caller.
  • Method Details

    • postProcess

      void postProcess(org.eclipse.aether.RepositorySystemSession session, List<org.eclipse.aether.resolution.ArtifactResult> artifactResults)
      Receives resolver results just before it would return it to caller. Is able to generate "resolution failure" by augmenting passed in ArtifactResults (artifacts should be "unresolved" and exceptions added).

      Implementations must be aware that the passed in list of ArtifactResults may have failed resolutions, best to check that using ArtifactResult.isResolved() method.

      The implementations must be aware that this call may be "hot", so it directly affects the performance of resolver in general.