From add554b1d6aef29130415f1f16520a6d8e4880b7 Mon Sep 17 00:00:00 2001 From: Benjamin Bentmann Date: Fri, 28 Aug 2009 21:42:58 +0000 Subject: [PATCH] o Improved error message git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@809038 13f79535-47bb-0310-9956-ffa450edef68 --- .../maven/plugin/internal/DefaultMavenPluginManager.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 ); } }