Class WarningResolutionListener
- java.lang.Object
-
- org.apache.maven.artifact.resolver.WarningResolutionListener
-
- All Implemented Interfaces:
ResolutionListener
public class WarningResolutionListener extends java.lang.Object implements ResolutionListener
Send resolution warning events to the warning log.
-
-
Field Summary
Fields Modifier and Type Field Description private org.codehaus.plexus.logging.Loggerlogger-
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 Constructor Description WarningResolutionListener(org.codehaus.plexus.logging.Logger logger)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidendProcessChildren(Artifact artifact)voidincludeArtifact(Artifact artifact)voidmanageArtifact(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, java.lang.String scope)voidupdateScopeCurrentPom(Artifact artifact, java.lang.String scope)This event means that the artifactScope has NOT been updated to a farther node artifactScope because current node is in the first level pom
-
-
-
Method Detail
-
testArtifact
public void testArtifact(Artifact node)
- Specified by:
testArtifactin interfaceResolutionListener
-
startProcessChildren
public void startProcessChildren(Artifact artifact)
- Specified by:
startProcessChildrenin interfaceResolutionListener
-
endProcessChildren
public void endProcessChildren(Artifact artifact)
- Specified by:
endProcessChildrenin interfaceResolutionListener
-
includeArtifact
public void includeArtifact(Artifact artifact)
- Specified by:
includeArtifactin interfaceResolutionListener
-
omitForNearer
public void omitForNearer(Artifact omitted, Artifact kept)
- Specified by:
omitForNearerin interfaceResolutionListener
-
omitForCycle
public void omitForCycle(Artifact omitted)
- Specified by:
omitForCyclein interfaceResolutionListener
-
updateScopeCurrentPom
public void updateScopeCurrentPom(Artifact artifact, java.lang.String scope)
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 pomscope- artifactScope that was ignored because artifact was in first level pom
-
updateScope
public void updateScope(Artifact artifact, java.lang.String scope)
- Specified by:
updateScopein interfaceResolutionListener
-
manageArtifact
public void manageArtifact(Artifact artifact, Artifact replacement)
- Specified by:
manageArtifactin interfaceResolutionListener
-
selectVersionFromRange
public void selectVersionFromRange(Artifact artifact)
- Specified by:
selectVersionFromRangein interfaceResolutionListener
-
restrictRange
public void restrictRange(Artifact artifact, Artifact replacement, VersionRange newRange)
- Specified by:
restrictRangein interfaceResolutionListener
-
-