diff --git a/maven-core/src/main/java/org/apache/maven/plugin/prefix/internal/DefaultPluginPrefixResolver.java b/maven-core/src/main/java/org/apache/maven/plugin/prefix/internal/DefaultPluginPrefixResolver.java index f8ddd1bb72..646b07021d 100644 --- a/maven-core/src/main/java/org/apache/maven/plugin/prefix/internal/DefaultPluginPrefixResolver.java +++ b/maven-core/src/main/java/org/apache/maven/plugin/prefix/internal/DefaultPluginPrefixResolver.java @@ -135,11 +135,12 @@ public class DefaultPluginPrefixResolver { if ( logger.isDebugEnabled() ) { - logger.warn( "Failed to retrieve plugin descriptor for " + plugin + ": " + e.getMessage(), e ); + logger.warn( "Failed to retrieve plugin descriptor for " + plugin.getId() + ": " + e.getMessage(), + e ); } else { - logger.warn( "Failed to retrieve plugin descriptor for " + plugin + ": " + e.getMessage() ); + logger.warn( "Failed to retrieve plugin descriptor for " + plugin.getId() + ": " + e.getMessage() ); } } }