o Added debug dump of entire build plan

git-svn-id: https://svn.apache.org/repos/asf/maven/components/branches/MNG-2766@771760 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Benjamin Bentmann 2009-05-05 14:51:56 +00:00
parent 826881819b
commit 2b2b7e19f7
1 changed files with 18 additions and 1 deletions

View File

@ -177,7 +177,24 @@ public class DefaultLifecycleExecutor
throws LifecycleExecutionException, MojoFailureException throws LifecycleExecutionException, MojoFailureException
{ {
List<MojoExecution> lifecyclePlan = calculateLifecyclePlan( task, session ); List<MojoExecution> lifecyclePlan = calculateLifecyclePlan( task, session );
if ( logger.isDebugEnabled() )
{
logger.debug( "=== BUILD PLAN ===" );
logger.debug( "Project: " + project );
for ( MojoExecution mojoExecution : lifecyclePlan )
{
MojoDescriptor mojoDescriptor = mojoExecution.getMojoDescriptor();
PluginDescriptor pluginDescriptor = mojoDescriptor.getPluginDescriptor();
logger.debug( "------------------" );
logger.debug( "Goal: " + pluginDescriptor.getGroupId() + ':' + pluginDescriptor.getArtifactId() + ':'
+ pluginDescriptor.getVersion() + ':' + mojoDescriptor.getGoal() + ':'
+ mojoExecution.getExecutionId() );
logger.debug( "Configuration: " + String.valueOf( mojoExecution.getConfiguration() ) );
}
logger.debug( "==================" );
}
for ( MojoExecution mojoExecution : lifecyclePlan ) for ( MojoExecution mojoExecution : lifecyclePlan )
{ {
try try