Class ReverseTreeRepositoryListener
java.lang.Object
org.eclipse.aether.AbstractRepositoryListener
org.apache.maven.resolver.examples.util.ReverseTreeRepositoryListener
- All Implemented Interfaces:
RepositoryListener
A demo class building reverse tree using
CollectStepData
trace data provided in RepositoryEvent
events fired during collection.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
artifactResolved
(RepositoryEvent event) Notifies the listener of an artifact whose resolution has been completed, either successfully or not.Methods inherited from class org.eclipse.aether.AbstractRepositoryListener
artifactDeployed, artifactDeploying, artifactDescriptorInvalid, artifactDescriptorMissing, artifactDownloaded, artifactDownloading, artifactInstalled, artifactInstalling, artifactResolving, metadataDeployed, metadataDeploying, metadataDownloaded, metadataDownloading, metadataInstalled, metadataInstalling, metadataInvalid, metadataResolved, metadataResolving
-
Constructor Details
-
ReverseTreeRepositoryListener
public ReverseTreeRepositoryListener()
-
-
Method Details
-
artifactResolved
Description copied from interface:RepositoryListener
Notifies the listener of an artifact whose resolution has been completed, either successfully or not.RepositoryEvent.getArtifact()
denotes the artifact in question andRepositoryEvent.getExceptions()
indicates whether the resolution succeeded or failed. Unlike theRepositoryListener.artifactDownloaded(RepositoryEvent)
event, this event is fired regardless whether the artifact already exists locally or not.- Specified by:
artifactResolved
in interfaceRepositoryListener
- Overrides:
artifactResolved
in classAbstractRepositoryListener
- Parameters:
event
- The event details, must not benull
.
-