public class DebugResolutionListener extends Object implements ResolutionListener, ResolutionListenerForDepMgmt
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 |
---|
DebugResolutionListener(Logger logger) |
Modifier and Type | Method and Description |
---|---|
void |
endProcessChildren(Artifact artifact) |
void |
includeArtifact(Artifact artifact) |
void |
manageArtifact(Artifact artifact,
Artifact replacement)
The logic used here used to be a copy of the logic used in the DefaultArtifactCollector, and this method was
called right before the actual version/artifactScope changes were done.
|
void |
manageArtifactScope(Artifact artifact,
Artifact replacement) |
void |
manageArtifactSystemPath(Artifact artifact,
Artifact replacement) |
void |
manageArtifactVersion(Artifact artifact,
Artifact replacement) |
void |
omitForCycle(Artifact omitted) |
void |
omitForNearer(Artifact omitted,
Artifact kept) |
void |
restrictRange(Artifact artifact,
Artifact replacement,
VersionRange newRange) |
void |
selectVersionFromRange(Artifact artifact) |
void |
startProcessChildren(Artifact artifact) |
void |
testArtifact(Artifact node) |
void |
updateScope(Artifact artifact,
String scope) |
void |
updateScopeCurrentPom(Artifact artifact,
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
|
public DebugResolutionListener(Logger logger)
public void testArtifact(Artifact node)
testArtifact
in interface ResolutionListener
public void startProcessChildren(Artifact artifact)
startProcessChildren
in interface ResolutionListener
public void endProcessChildren(Artifact artifact)
endProcessChildren
in interface ResolutionListener
public void includeArtifact(Artifact artifact)
includeArtifact
in interface ResolutionListener
public void omitForNearer(Artifact omitted, Artifact kept)
omitForNearer
in interface ResolutionListener
public void omitForCycle(Artifact omitted)
omitForCycle
in interface ResolutionListener
public void updateScopeCurrentPom(Artifact artifact, String ignoredScope)
ResolutionListener
updateScopeCurrentPom
in interface ResolutionListener
artifact
- current node artifact, the one in the first level pomignoredScope
- artifactScope that was ignored because artifact was in first level pompublic void updateScope(Artifact artifact, String scope)
updateScope
in interface ResolutionListener
public void selectVersionFromRange(Artifact artifact)
selectVersionFromRange
in interface ResolutionListener
public void restrictRange(Artifact artifact, Artifact replacement, VersionRange newRange)
restrictRange
in interface ResolutionListener
public void manageArtifact(Artifact artifact, Artifact replacement)
manageArtifact
in interface ResolutionListener
public void manageArtifactVersion(Artifact artifact, Artifact replacement)
manageArtifactVersion
in interface ResolutionListenerForDepMgmt
public void manageArtifactScope(Artifact artifact, Artifact replacement)
manageArtifactScope
in interface ResolutionListenerForDepMgmt
public void manageArtifactSystemPath(Artifact artifact, Artifact replacement)
manageArtifactSystemPath
in interface ResolutionListenerForDepMgmt
Copyright © 2001–2013 The Apache Software Foundation. All rights reserved.