mirror of https://github.com/apache/maven.git
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:
parent
d8aa8cea76
commit
7f4dc2f9c0
|
@ -265,6 +265,10 @@ public class DefaultPluginManager
|
|||
PluginExecutionResponse response;
|
||||
|
||||
MojoDescriptor mojoDescriptor = getMojoDescriptor( goalName );
|
||||
if ( mojoDescriptor == null )
|
||||
{
|
||||
throw new GoalExecutionException( "Unable to find goal: " + goalName );
|
||||
}
|
||||
|
||||
if ( mojoDescriptor.requiresDependencyResolution() )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue