Interface ArtifactResolverPostProcessor
- All Known Implementing Classes:
ArtifactResolverPostProcessorSupport
,GroupIdRemoteRepositoryFilterSource
,TrustedChecksumsArtifactResolverPostProcessor
public 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 TypeMethodDescriptionvoid
postProcess
(RepositorySystemSession session, List<ArtifactResult> artifactResults) Receives resolver results just before it would return it to caller.
-
Method Details
-
postProcess
Receives resolver results just before it would return it to caller. Is able to generate "resolution failure" by augmenting passed inArtifactResult
s (artifacts should be "unresolved" and exceptions added).Implementations must be aware that the passed in list of
ArtifactResult
s may have failed resolutions, best to check that usingArtifactResult.isResolved()
method.The implementations must be aware that this call may be "hot", so it directly affects the performance of resolver in general.
-