|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.maven.shared.dependency.tree.DependencyTreeResolutionListener
public class DependencyTreeResolutionListener
An artifact resolution listener that constructs a dependency tree.
| Field Summary |
|---|
| Fields inherited from interface org.apache.maven.artifact.resolver.ResolutionListener |
|---|
FINISH_PROCESSING_CHILDREN, INCLUDE_ARTIFACT, MANAGE_ARTIFACT, MANAGE_ARTIFACT_SCOPE, 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 | |
|---|---|
DependencyTreeResolutionListener(org.codehaus.plexus.logging.Logger logger)
Creates a new dependency tree resolution listener that writes to the specified log. |
|
| Method Summary | |
|---|---|
void |
endProcessChildren(Artifact artifact)
|
Collection<DependencyNode> |
getNodes()
Deprecated. As of 1.1, use a CollectingDependencyNodeVisitor on the root dependency node |
DependencyNode |
getRootNode()
Gets the root dependency node of the computed dependency tree. |
void |
includeArtifact(Artifact artifact)
|
void |
manageArtifact(Artifact artifact,
Artifact replacement)
|
void |
manageArtifactScope(Artifact artifact,
Artifact replacement)
|
void |
manageArtifactVersion(Artifact artifact,
Artifact replacement)
|
void |
omitForCycle(Artifact artifact)
|
void |
omitForNearer(Artifact omitted,
Artifact kept)
|
void |
restrictRange(Artifact artifact,
Artifact replacement,
org.apache.maven.artifact.versioning.VersionRange versionRange)
|
void |
selectVersionFromRange(Artifact artifact)
|
void |
startProcessChildren(Artifact artifact)
|
void |
testArtifact(Artifact artifact)
|
void |
updateScope(Artifact artifact,
String scope)
|
void |
updateScopeCurrentPom(Artifact artifact,
String scopeIgnored)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DependencyTreeResolutionListener(org.codehaus.plexus.logging.Logger logger)
logger - the log to write debug messages to| Method Detail |
|---|
public void testArtifact(Artifact artifact)
testArtifact in interface ResolutionListenerpublic void startProcessChildren(Artifact artifact)
startProcessChildren in interface ResolutionListenerpublic void endProcessChildren(Artifact artifact)
endProcessChildren in interface ResolutionListenerpublic void includeArtifact(Artifact artifact)
includeArtifact in interface ResolutionListener
public void omitForNearer(Artifact omitted,
Artifact kept)
omitForNearer in interface ResolutionListener
public void updateScope(Artifact artifact,
String scope)
updateScope in interface ResolutionListener
public void manageArtifact(Artifact artifact,
Artifact replacement)
manageArtifact in interface ResolutionListenerpublic void omitForCycle(Artifact artifact)
omitForCycle in interface ResolutionListener
public void updateScopeCurrentPom(Artifact artifact,
String scopeIgnored)
updateScopeCurrentPom in interface ResolutionListenerpublic void selectVersionFromRange(Artifact artifact)
selectVersionFromRange in interface ResolutionListener
public void restrictRange(Artifact artifact,
Artifact replacement,
org.apache.maven.artifact.versioning.VersionRange versionRange)
restrictRange in interface ResolutionListener
public void manageArtifactVersion(Artifact artifact,
Artifact replacement)
manageArtifactVersion in interface ResolutionListenerForDepMgmt
public void manageArtifactScope(Artifact artifact,
Artifact replacement)
manageArtifactScope in interface ResolutionListenerForDepMgmtpublic Collection<DependencyNode> getNodes()
CollectingDependencyNodeVisitor on the root dependency node
public DependencyNode getRootNode()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||