mirror of https://github.com/apache/maven.git
use ArtifactUtils to create IDs to avoid duplicate construction code
Submitted by: Stanislav Ochotnicky git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@1060318 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
11f5546e6d
commit
347f9243b9
|
@ -216,7 +216,7 @@ class ReactorReader
|
|||
|
||||
public File findArtifact( Artifact artifact )
|
||||
{
|
||||
String projectKey = artifact.getGroupId() + ':' + artifact.getArtifactId() + ':' + artifact.getVersion();
|
||||
String projectKey = ArtifactUtils.key( artifact.getGroupId(), artifact.getArtifactId(), artifact.getVersion() );
|
||||
|
||||
MavenProject project = projectsByGAV.get( projectKey );
|
||||
|
||||
|
@ -230,7 +230,7 @@ class ReactorReader
|
|||
|
||||
public List<String> findVersions( Artifact artifact )
|
||||
{
|
||||
String key = artifact.getGroupId() + ':' + artifact.getArtifactId();
|
||||
String key = ArtifactUtils.versionlessKey( artifact.getGroupId(), artifact.getArtifactId() );
|
||||
|
||||
List<MavenProject> projects = projectsByGA.get( key );
|
||||
if ( projects == null || projects.isEmpty() )
|
||||
|
|
Loading…
Reference in New Issue