class ReverseTreeRepositoryListener
extends org.eclipse.aether.AbstractRepositoryListener
CollectStepData trace data provided in RepositoryEvent
events fired during collection.| Constructor and Description |
|---|
ReverseTreeRepositoryListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
artifactResolved(org.eclipse.aether.RepositoryEvent event) |
(package private) static boolean |
isInScope(org.eclipse.aether.artifact.Artifact artifact,
org.eclipse.aether.artifact.Artifact nodeArtifact)
The event "artifact resolved" if fired WHENEVER an artifact is resolved, BUT it happens also when an artifact
descriptor (model, the POM) is being built, and parent (and parent of parent...) is being asked for.
|
(package private) static boolean |
isLocalRepositoryArtifact(org.eclipse.aether.RepositorySystemSession session,
org.eclipse.aether.artifact.Artifact artifact)
Returns
true if passed in artifact is originating from local repository. |
(package private) static org.eclipse.aether.collection.CollectStepData |
lookupCollectStepData(org.eclipse.aether.RequestTrace trace)
Unravels trace tree (going upwards from current node), looking for
CollectStepData trace data. |
artifactDeployed, artifactDeploying, artifactDescriptorInvalid, artifactDescriptorMissing, artifactDownloaded, artifactDownloading, artifactInstalled, artifactInstalling, artifactResolving, metadataDeployed, metadataDeploying, metadataDownloaded, metadataDownloading, metadataInstalled, metadataInstalling, metadataInvalid, metadataResolved, metadataResolvingpublic void artifactResolved(org.eclipse.aether.RepositoryEvent event)
artifactResolved in interface org.eclipse.aether.RepositoryListenerartifactResolved in class org.eclipse.aether.AbstractRepositoryListenerstatic boolean isLocalRepositoryArtifact(org.eclipse.aether.RepositorySystemSession session,
org.eclipse.aether.artifact.Artifact artifact)
true if passed in artifact is originating from local repository. In other words, we want
to process and store tracking information ONLY into local repository, not to any other place. This method
filters out currently built artifacts, as events are fired for them as well, but their resolved artifact
file would point to checked out source-tree, not the local repository.
Visible for testing.
static org.eclipse.aether.collection.CollectStepData lookupCollectStepData(org.eclipse.aether.RequestTrace trace)
CollectStepData trace data.
This method may return null if no collect step data found in passed trace data or it's parents.
Visible for testing.
static boolean isInScope(org.eclipse.aether.artifact.Artifact artifact,
org.eclipse.aether.artifact.Artifact nodeArtifact)