mirror of https://github.com/apache/maven.git
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:
parent
fcc893a626
commit
4935728ade
|
@ -547,8 +547,10 @@ public class DefaultLifecycleExecutor
|
||||||
{
|
{
|
||||||
List tasks = (List) it.next();
|
List tasks = (List) it.next();
|
||||||
|
|
||||||
tasks.remove( mojoIdWithVersion );
|
if ( tasks.remove( mojoIdWithVersion ) || tasks.remove( mojoIdWithoutVersion ) )
|
||||||
tasks.remove( mojoIdWithoutVersion );
|
{
|
||||||
|
getLogger().warn( "Removing: " + mojoDescriptor.getGoal() + " from forked lifecycle, to prevent recursive invocation of this mojo." );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue