mirror of https://github.com/apache/maven.git
use common method
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@312895 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
8d011d92c0
commit
da63e5c2af
|
@ -1461,7 +1461,7 @@ public class MavenProject
|
||||||
if ( getProjectReferences() != null && !getProjectReferences().isEmpty() )
|
if ( getProjectReferences() != null && !getProjectReferences().isEmpty() )
|
||||||
{
|
{
|
||||||
// TODO: use MavenProject getProjectReferenceId
|
// TODO: use MavenProject getProjectReferenceId
|
||||||
String refId = pluginArtifact.getGroupId() + ":" + pluginArtifact.getArtifactId();
|
String refId = ArtifactUtils.versionlessKey( pluginArtifact.getGroupId(), pluginArtifact.getArtifactId() );
|
||||||
MavenProject ref = (MavenProject) getProjectReferences().get( refId );
|
MavenProject ref = (MavenProject) getProjectReferences().get( refId );
|
||||||
if ( ref != null && ref.getArtifact() != null )
|
if ( ref != null && ref.getArtifact() != null )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue