PR: MNG-122

finish cleanup artifact/plugin not found exception

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@320712 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brett Leslie Porter 2005-10-13 10:28:36 +00:00
parent 1f97932050
commit 1f638e6945
1 changed files with 13 additions and 2 deletions

View File

@ -461,8 +461,19 @@ public class DefaultLifecycleExecutor
}
else
{
// definitely a CLI goal, can use prefix
MojoDescriptor mojo = getMojoDescriptor( task, session, project, task, true );
MojoDescriptor mojo = null;
try
{
// definitely a CLI goal, can use prefix
mojo = getMojoDescriptor( task, session, project, task, true );
}
catch ( PluginNotFoundException e )
{
// TODO: shouldn't hit this, investigate using the same resolution logic as otheres for plugins in the reactor
getLogger().info(
"Cannot find mojo descriptor for: \'" + task + "\' - Treating as non-aggregator." );
getLogger().debug( "", e );
}
// if the mojo descriptor was found, determine aggregator status according to:
// 1. whether the mojo declares itself an aggregator