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 736818efa3..bcb440132c 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 @@ -572,7 +572,7 @@ public class DefaultLifecycleExecutor if ( project.getModel().getReports() != null ) { getLogger().error( - "DEPRECATED: Plugin contains a section: this is IGNORED - please use instead." ); + "Plugin contains a section: this is IGNORED - please use instead." ); } if ( project.getReporting() == null || !project.getReporting().isExcludeDefaults() ) @@ -1030,6 +1030,12 @@ public class DefaultLifecycleExecutor // use the plugin if inherit was true in a base class, or it is in the current POM, otherwise use the default inheritence setting if ( plugin.isInheritanceApplied() || pluginDescriptor.isInheritedByDefault() ) { + if ( plugin.getGoals() != null ) + { + getLogger().error( + "Plugin contains a section: this is IGNORED - please use instead." ); + } + List executions = plugin.getExecutions(); if ( executions != null )