mirror of https://github.com/apache/maven.git
PR: MNG-1041
conflict id should include classifier git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@293226 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
cc96c2bc38
commit
4ff4c02fd5
|
@ -215,12 +215,13 @@ public class DefaultArtifact
|
|||
|
||||
public String getId()
|
||||
{
|
||||
return getDependencyConflictId() + ( hasClassifier() ? ":" + getClassifier() : "" ) + ":" + getBaseVersion();
|
||||
return getDependencyConflictId() + ":" + getBaseVersion();
|
||||
}
|
||||
|
||||
public String getDependencyConflictId()
|
||||
{
|
||||
return getGroupId() + ":" + getArtifactId() + ":" + getType();
|
||||
return getGroupId() + ":" + getArtifactId() + ":" + getType() +
|
||||
( hasClassifier() ? ":" + getClassifier() : "" );
|
||||
}
|
||||
|
||||
public void addMetadata( ArtifactMetadata metadata )
|
||||
|
@ -252,7 +253,7 @@ public class DefaultArtifact
|
|||
|
||||
public String toString()
|
||||
{
|
||||
return getDependencyConflictId() + ( hasClassifier() ? ":" + getClassifier() : "" ) + ":" +
|
||||
return getDependencyConflictId() + ":" +
|
||||
( version != null || baseVersion != null ? getBaseVersion() : versionRange.toString() );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue