maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bentm...@apache.org
Subject svn commit: r810954 - /maven/components/trunk/maven-core/src/main/java/org/apache/maven/plugin/internal/DefaultMavenPluginManager.java
Date Thu, 03 Sep 2009 14:10:23 GMT
Author: bentmann
Date: Thu Sep  3 14:10:23 2009
New Revision: 810954

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

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

Modified: maven/components/trunk/maven-core/src/main/java/org/apache/maven/plugin/internal/DefaultMavenPluginManager.java
URL: http://svn.apache.org/viewvc/maven/components/trunk/maven-core/src/main/java/org/apache/maven/plugin/internal/DefaultMavenPluginManager.java?rev=810954&r1=810953&r2=810954&view=diff
==============================================================================
--- maven/components/trunk/maven-core/src/main/java/org/apache/maven/plugin/internal/DefaultMavenPluginManager.java
(original)
+++ maven/components/trunk/maven-core/src/main/java/org/apache/maven/plugin/internal/DefaultMavenPluginManager.java
Thu Sep  3 14:10:23 2009
@@ -544,20 +544,20 @@
         catch ( ComponentConfigurationException e )
         {
             throw new PluginConfigurationException( mojoDescriptor.getPluginDescriptor(),
-                                                    "Unable to parse the created DOM for
mojo configuration: "
-                                                        + e.getMessage(), e );
+                                                    "Unable to parse configuration of mojo
" + mojoDescriptor.getId()
+                                                        + ": " + e.getMessage(), e );
         }
         catch ( ComponentLookupException e )
         {
             throw new PluginConfigurationException( mojoDescriptor.getPluginDescriptor(),
                                                     "Unable to retrieve component configurator
" + configuratorId
-                                                        + " for mojo configuration", e );
+                                                        + " for configuration of mojo " +
mojoDescriptor.getId(), e );
         }
         catch ( NoClassDefFoundError e )
         {
             throw new PluginConfigurationException( mojoDescriptor.getPluginDescriptor(),
-                                                    "A required class was missing during
mojo configuration: "
-                                                        + e.getMessage(), e );
+                                                    "A required class was missing during
configuration of mojo "
+                                                        + mojoDescriptor.getId() + ": " +
e.getMessage(), e );
         }
         catch ( LinkageError e )
         {



Mime
View raw message