diff --git a/maven-artifact/src/main/java/org/apache/maven/artifact/resolver/DefaultArtifactCollector.java b/maven-artifact/src/main/java/org/apache/maven/artifact/resolver/DefaultArtifactCollector.java index 53e23e75a1..69ca8fe869 100644 --- a/maven-artifact/src/main/java/org/apache/maven/artifact/resolver/DefaultArtifactCollector.java +++ b/maven-artifact/src/main/java/org/apache/maven/artifact/resolver/DefaultArtifactCollector.java @@ -300,7 +300,7 @@ public class DefaultArtifactCollector public List getDependencyTrail() { List path = new ArrayList( parents ); - path.add( getKey() ); + path.add( artifact.getId() ); return path; }