maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bentm...@apache.org
Subject svn commit: r828642 - /maven/maven-3/trunk/maven-core/src/main/java/org/apache/maven/plugin/internal/DefaultMavenPluginManager.java
Date Thu, 22 Oct 2009 10:29:35 GMT
Author: bentmann
Date: Thu Oct 22 10:29:34 2009
New Revision: 828642

URL: http://svn.apache.org/viewvc?rev=828642&view=rev
Log:
o Improved error message

Modified:
    maven/maven-3/trunk/maven-core/src/main/java/org/apache/maven/plugin/internal/DefaultMavenPluginManager.java

Modified: maven/maven-3/trunk/maven-core/src/main/java/org/apache/maven/plugin/internal/DefaultMavenPluginManager.java
URL: http://svn.apache.org/viewvc/maven/maven-3/trunk/maven-core/src/main/java/org/apache/maven/plugin/internal/DefaultMavenPluginManager.java?rev=828642&r1=828641&r2=828642&view=diff
==============================================================================
--- maven/maven-3/trunk/maven-core/src/main/java/org/apache/maven/plugin/internal/DefaultMavenPluginManager.java
(original)
+++ maven/maven-3/trunk/maven-core/src/main/java/org/apache/maven/plugin/internal/DefaultMavenPluginManager.java
Thu Oct 22 10:29:34 2009
@@ -636,9 +636,14 @@
         }
         catch ( ComponentConfigurationException e )
         {
-            throw new PluginConfigurationException( mojoDescriptor.getPluginDescriptor(),
-                                                    "Unable to parse configuration of mojo
" + mojoDescriptor.getId()
-                                                        + ": " + e.getMessage(), e );
+            String message = "Unable to parse configuration of mojo " + mojoDescriptor.getId();
+            if ( e.getFailedConfiguration() != null )
+            {
+                message += " for parameter " + e.getFailedConfiguration().getName();
+            }
+            message += ": " + e.getMessage();
+
+            throw new PluginConfigurationException( mojoDescriptor.getPluginDescriptor(),
message, e );
         }
         catch ( ComponentLookupException e )
         {



Mime
View raw message