diff --git a/maven-core/src/main/java/org/apache/maven/plugin/internal/DefaultMavenPluginManager.java b/maven-core/src/main/java/org/apache/maven/plugin/internal/DefaultMavenPluginManager.java index 1db699a7d1..dc862e5dde 100644 --- a/maven-core/src/main/java/org/apache/maven/plugin/internal/DefaultMavenPluginManager.java +++ b/maven-core/src/main/java/org/apache/maven/plugin/internal/DefaultMavenPluginManager.java @@ -366,11 +366,13 @@ public class DefaultMavenPluginManager } catch ( PlexusConfigurationException e ) { - throw new PluginManagerException( plugin, e.getMessage(), e ); + throw new PluginManagerException( plugin, "Error in component graph of plugin " + plugin.getId() + ": " + + e.getMessage(), e ); } catch ( CycleDetectedInComponentGraphException e ) { - throw new PluginManagerException( plugin, e.getMessage(), e ); + throw new PluginManagerException( plugin, "Error in component graph of plugin " + plugin.getId() + ": " + + e.getMessage(), e ); } }