class PluginDependencyResolutionListener extends java.lang.Object implements ResolutionListener
| Modifier and Type | Field and Description |
|---|---|
private java.util.Map<Artifact,java.lang.Object> |
bannedArtifacts |
private java.util.LinkedList<Artifact> |
coreArtifacts |
private ArtifactFilter |
coreFilter |
private Artifact |
wagonProvider |
FINISH_PROCESSING_CHILDREN, INCLUDE_ARTIFACT, MANAGE_ARTIFACT, MANAGE_ARTIFACT_SCOPE, MANAGE_ARTIFACT_SYSTEM_PATH, MANAGE_ARTIFACT_VERSION, OMIT_FOR_CYCLE, OMIT_FOR_NEARER, PROCESS_CHILDREN, RESTRICT_RANGE, ROLE, SELECT_VERSION_FROM_RANGE, TEST_ARTIFACT, UPDATE_SCOPE, UPDATE_SCOPE_CURRENT_POM| Constructor and Description |
|---|
PluginDependencyResolutionListener(ArtifactFilter coreFilter) |
| Modifier and Type | Method and Description |
|---|---|
void |
endProcessChildren(Artifact artifact) |
void |
includeArtifact(Artifact artifact) |
private boolean |
isLegacyCoreArtifact(Artifact artifact) |
private boolean |
isWagonProvider(Artifact artifact) |
void |
manageArtifact(Artifact artifact,
Artifact replacement) |
void |
omitForCycle(Artifact artifact) |
void |
omitForNearer(Artifact omitted,
Artifact kept) |
void |
removeBannedDependencies(java.util.Collection<Artifact> artifacts) |
void |
restrictRange(Artifact artifact,
Artifact replacement,
VersionRange newRange) |
void |
selectVersionFromRange(Artifact artifact) |
void |
startProcessChildren(Artifact artifact) |
void |
testArtifact(Artifact node) |
void |
updateScope(Artifact artifact,
java.lang.String scope) |
void |
updateScopeCurrentPom(Artifact artifact,
java.lang.String ignoredScope)
This event means that the artifactScope has NOT been updated to a farther node artifactScope because current
node is in the first level pom
|
private ArtifactFilter coreFilter
private java.util.LinkedList<Artifact> coreArtifacts
private Artifact wagonProvider
private java.util.Map<Artifact,java.lang.Object> bannedArtifacts
PluginDependencyResolutionListener(ArtifactFilter coreFilter)
public void removeBannedDependencies(java.util.Collection<Artifact> artifacts)
public void startProcessChildren(Artifact artifact)
startProcessChildren in interface ResolutionListenerprivate boolean isLegacyCoreArtifact(Artifact artifact)
public void endProcessChildren(Artifact artifact)
endProcessChildren in interface ResolutionListenerpublic void includeArtifact(Artifact artifact)
includeArtifact in interface ResolutionListenerprivate boolean isWagonProvider(Artifact artifact)
public void manageArtifact(Artifact artifact, Artifact replacement)
manageArtifact in interface ResolutionListenerpublic void omitForCycle(Artifact artifact)
omitForCycle in interface ResolutionListenerpublic void omitForNearer(Artifact omitted, Artifact kept)
omitForNearer in interface ResolutionListenerpublic void restrictRange(Artifact artifact, Artifact replacement, VersionRange newRange)
restrictRange in interface ResolutionListenerpublic void selectVersionFromRange(Artifact artifact)
selectVersionFromRange in interface ResolutionListenerpublic void testArtifact(Artifact node)
testArtifact in interface ResolutionListenerpublic void updateScope(Artifact artifact, java.lang.String scope)
updateScope in interface ResolutionListenerpublic void updateScopeCurrentPom(Artifact artifact, java.lang.String ignoredScope)
ResolutionListenerupdateScopeCurrentPom in interface ResolutionListenerartifact - current node artifact, the one in the first level pomignoredScope - artifactScope that was ignored because artifact was in first level pom