|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.mojo.pomtools.helpers.TransitiveDependencyInfo
public class TransitiveDependencyInfo
This class is used my MetadataHelper.getTransitiveDependencies()
.
An instance is created for every possible transitive dependency (whether it is used or not).
The getResolutionNodes()
represent each possible path that this groupId:artifactId:type
are included into a project. The "selectedNode" is the actual resolutionNode instance that maven
is using during a build.
Nested Class Summary | |
---|---|
static class |
TransitiveDependencyInfo.VersionCount
|
Constructor Summary | |
---|---|
TransitiveDependencyInfo(org.apache.maven.artifact.resolver.ResolutionNode node)
|
Method Summary | |
---|---|
void |
addResolutionNode(org.apache.maven.artifact.resolver.ResolutionNode pathNode)
Adds a resolution node to the list. |
java.util.List |
getDistinctVersionCounts()
Returns a sorted list of distinct versions from all of the ResolutionNodes and the number of occurances. |
TreeNode |
getInclusionTree()
Returns an object tree of all of the possible paths which can transitively include this artifact. |
java.lang.String |
getKey()
|
java.util.List |
getResolutionNodes()
|
org.apache.maven.artifact.Artifact |
getSelectedArtifact()
|
org.apache.maven.artifact.resolver.ResolutionNode |
getSelectedNode()
Returns the node used in the constructor which represents the actual dependency that was resolved for the project. |
boolean |
hasConflicts()
Returns wheter any of the possible transitive dependencies for this groupId:artifactId:type have a different version than the "selectedNode" which maven is using for the build. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TransitiveDependencyInfo(org.apache.maven.artifact.resolver.ResolutionNode node)
Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public org.apache.maven.artifact.Artifact getSelectedArtifact()
public java.util.List getResolutionNodes()
public void addResolutionNode(org.apache.maven.artifact.resolver.ResolutionNode pathNode)
If the version strings do not match literally, A version range is created and the item being added is tested to see if it's range includes the "selectedNode" version. If so, it is not considered a conflict.
pathNode
- public org.apache.maven.artifact.resolver.ResolutionNode getSelectedNode()
public java.lang.String getKey()
public boolean hasConflicts()
public java.util.List getDistinctVersionCounts()
TransitiveDependencyInfo.VersionCount
objectspublic TreeNode getInclusionTree() throws PomToolsException
PomToolsException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |