mirror of https://github.com/apache/maven.git
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:
parent
5672ae45e8
commit
ccd2cd2e1a
|
@ -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>();
|
||||
|
|
Loading…
Reference in New Issue