more details on the NPE cause.

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@787114 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2009-06-21 23:38:51 +00:00
parent 5672ae45e8
commit ccd2cd2e1a
1 changed files with 8 additions and 0 deletions

View File

@ -352,6 +352,14 @@ public class DefaultLifecycleExecutor
//TODO: need to separate the lifecycles
if ( lifecycle == null )
{
logger.info( "Invalid task '"
+ lifecyclePhase
+ "' : you must specify a valid lifecycle phase, or a goal in the format plugin:goal or pluginGroupId:pluginArtifactId:pluginVersion:goal" );
throw new MojoNotFoundException( lifecyclePhase, null );
}
for ( String phase : lifecycle.getPhases() )
{
List<MojoExecution> mojos = new ArrayList<MojoExecution>();