Adding warning output for when a mojo is scrubbed from a forked lifecycle, as in MNG-709.

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@233260 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
John Dennis Casey 2005-08-17 20:50:27 +00:00
parent fcc893a626
commit 4935728ade
1 changed files with 4 additions and 2 deletions

View File

@ -547,8 +547,10 @@ private void removeFromLifecycle( MojoDescriptor mojoDescriptor, Map lifecycleMa
{
List tasks = (List) it.next();
tasks.remove( mojoIdWithVersion );
tasks.remove( mojoIdWithoutVersion );
if ( tasks.remove( mojoIdWithVersion ) || tasks.remove( mojoIdWithoutVersion ) )
{
getLogger().warn( "Removing: " + mojoDescriptor.getGoal() + " from forked lifecycle, to prevent recursive invocation of this mojo." );
}
}
}