error handling

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@163437 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brett Leslie Porter 2005-03-01 04:03:24 +00:00
parent d8aa8cea76
commit 7f4dc2f9c0
1 changed files with 4 additions and 0 deletions

View File

@ -265,6 +265,10 @@ public PluginExecutionResponse executeMojo( MavenSession session, String goalNam
PluginExecutionResponse response;
MojoDescriptor mojoDescriptor = getMojoDescriptor( goalName );
if ( mojoDescriptor == null )
{
throw new GoalExecutionException( "Unable to find goal: " + goalName );
}
if ( mojoDescriptor.requiresDependencyResolution() )
{