diff --git a/maven-core/src/main/java/org/apache/maven/lifecycle/binding/DefaultLifecycleBindingManager.java b/maven-core/src/main/java/org/apache/maven/lifecycle/binding/DefaultLifecycleBindingManager.java index 04ae4f617c..740421a293 100644 --- a/maven-core/src/main/java/org/apache/maven/lifecycle/binding/DefaultLifecycleBindingManager.java +++ b/maven-core/src/main/java/org/apache/maven/lifecycle/binding/DefaultLifecycleBindingManager.java @@ -337,8 +337,8 @@ public class DefaultLifecycleBindingManager message.append( "\n\nNo lifecycle phase binding can be found for goal: " + goal ); message.append( ",\nspecified as a part of the execution: " + execution.getId() ); - message.append( "in plugin: " ); - message.append( pluginDescriptor.getPluginLookupKey() ); + message.append( " in plugin: " ); + message.append( plugin.getKey() ); message.append( "\n\nThis plugin could not be resolved, so use of the default lifecycle phase binding " ) .append( "\n(if there is one) is impossible." ); message.append( "\n\nPlease ensure that the plugin: " )