PR: MNG-915

alloow plugin to include itself

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@292406 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brett Leslie Porter 2005-09-29 09:11:10 +00:00
parent c801d25695
commit 30adf31194

View File

@ -114,7 +114,7 @@ public ProjectSorter( List projects )
{
Plugin plugin = (Plugin) j.next();
String pluginId = ArtifactUtils.versionlessKey( plugin.getGroupId(), plugin.getArtifactId() );
if ( dag.getVertex( pluginId ) != null )
if ( dag.getVertex( pluginId ) != null && !pluginId.equals( id ) )
{
project.addProjectReference( (MavenProject) projectMap.get( pluginId ) );