diff --git a/maven-core/src/main/java/org/apache/maven/lifecycle/DefaultLifecycleExecutor.java b/maven-core/src/main/java/org/apache/maven/lifecycle/DefaultLifecycleExecutor.java index 900b50d7aa..0bd3f9eafb 100644 --- a/maven-core/src/main/java/org/apache/maven/lifecycle/DefaultLifecycleExecutor.java +++ b/maven-core/src/main/java/org/apache/maven/lifecycle/DefaultLifecycleExecutor.java @@ -177,7 +177,24 @@ public class DefaultLifecycleExecutor throws LifecycleExecutionException, MojoFailureException { List 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 ) { try