mirror of
https://github.com/apache/maven.git
synced 2025-02-08 02:59:22 +00:00
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 PluginExecutionResponse executeMojo( MavenSession session, String goalNam
|
|||||||
PluginExecutionResponse response;
|
PluginExecutionResponse response;
|
||||||
|
|
||||||
MojoDescriptor mojoDescriptor = getMojoDescriptor( goalName );
|
MojoDescriptor mojoDescriptor = getMojoDescriptor( goalName );
|
||||||
|
if ( mojoDescriptor == null )
|
||||||
|
{
|
||||||
|
throw new GoalExecutionException( "Unable to find goal: " + goalName );
|
||||||
|
}
|
||||||
|
|
||||||
if ( mojoDescriptor.requiresDependencyResolution() )
|
if ( mojoDescriptor.requiresDependencyResolution() )
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user