Class DebugResolutionListener
java.lang.Object
org.apache.maven.artifact.resolver.DebugResolutionListener
- All Implemented Interfaces:
ResolutionListener,ResolutionListenerForDepMgmt
public class DebugResolutionListener
extends Object
implements ResolutionListener, ResolutionListenerForDepMgmt
Send resolution events to the debug log.
- Author:
- Brett Porter
-
Field Summary
Fields inherited from interface org.apache.maven.artifact.resolver.ResolutionListener
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidendProcessChildren(Artifact artifact) voidincludeArtifact(Artifact artifact) voidmanageArtifact(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.voidmanageArtifactScope(Artifact artifact, Artifact replacement) voidmanageArtifactSystemPath(Artifact artifact, Artifact replacement) voidmanageArtifactVersion(Artifact artifact, Artifact replacement) voidomitForCycle(Artifact omitted) voidomitForNearer(Artifact omitted, Artifact kept) voidrestrictRange(Artifact artifact, Artifact replacement, VersionRange newRange) voidselectVersionFromRange(Artifact artifact) voidstartProcessChildren(Artifact artifact) voidtestArtifact(Artifact node) voidupdateScope(Artifact artifact, String scope) voidupdateScopeCurrentPom(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
-
Constructor Details
-
DebugResolutionListener
public DebugResolutionListener(org.codehaus.plexus.logging.Logger logger)
-
-
Method Details
-
testArtifact
- Specified by:
testArtifactin interfaceResolutionListener
-
startProcessChildren
- Specified by:
startProcessChildrenin interfaceResolutionListener
-
endProcessChildren
- Specified by:
endProcessChildrenin interfaceResolutionListener
-
includeArtifact
- Specified by:
includeArtifactin interfaceResolutionListener
-
omitForNearer
- Specified by:
omitForNearerin interfaceResolutionListener
-
omitForCycle
- Specified by:
omitForCyclein interfaceResolutionListener
-
updateScopeCurrentPom
Description copied from interface:ResolutionListenerThis event means that the artifactScope has NOT been updated to a farther node artifactScope because current node is in the first level pom- Specified by:
updateScopeCurrentPomin interfaceResolutionListener- Parameters:
artifact- current node artifact, the one in the first level pomignoredScope- artifactScope that was ignored because artifact was in first level pom
-
updateScope
- Specified by:
updateScopein interfaceResolutionListener
-
selectVersionFromRange
- Specified by:
selectVersionFromRangein interfaceResolutionListener
-
restrictRange
- Specified by:
restrictRangein interfaceResolutionListener
-
manageArtifact
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. However, a different set of conditionals (and more information) is needed to be able to determine when and if the version and/or artifactScope changes. See the two added methods, manageArtifactVersion and manageArtifactScope.- Specified by:
manageArtifactin interfaceResolutionListener
-
manageArtifactVersion
- Specified by:
manageArtifactVersionin interfaceResolutionListenerForDepMgmt
-
manageArtifactScope
- Specified by:
manageArtifactScopein interfaceResolutionListenerForDepMgmt
-
manageArtifactSystemPath
- Specified by:
manageArtifactSystemPathin interfaceResolutionListenerForDepMgmt
-