This is an automated email from the ASF dual-hosted git repository.

hboutemy pushed a commit to annotated tag maven-help-plugin-2.0
in repository https://gitbox.apache.org/repos/asf/maven-help-plugin.git

commit 834b37736fd189a500ce406488cc2bf1f5d4fedc
Author: Brett Leslie Porter <br...@apache.org>
AuthorDate: Thu Oct 13 16:36:54 2005 +0000

    PR: MNG-122
    final exception cleanup - reduce the noise in the lifecycle executor, get 
rid of response object in favour of exception handling from DefaultMaven.
    
    git-svn-id: 
https://svn.apache.org/repos/asf/maven/components/trunk/maven-plugins/maven-projecthelp-plugin@320797
 13f79535-47bb-0310-9956-ffa450edef68
---
 .../java/org/apache/maven/plugins/projecthelp/DescribeMojo.java  | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git 
a/src/main/java/org/apache/maven/plugins/projecthelp/DescribeMojo.java 
b/src/main/java/org/apache/maven/plugins/projecthelp/DescribeMojo.java
index 6375a38..482d418 100644
--- a/src/main/java/org/apache/maven/plugins/projecthelp/DescribeMojo.java
+++ b/src/main/java/org/apache/maven/plugins/projecthelp/DescribeMojo.java
@@ -32,6 +32,7 @@ import org.apache.maven.plugin.PluginNotFoundException;
 import org.apache.maven.plugin.descriptor.MojoDescriptor;
 import org.apache.maven.plugin.descriptor.Parameter;
 import org.apache.maven.plugin.descriptor.PluginDescriptor;
+import org.apache.maven.plugin.version.PluginVersionNotFoundException;
 import org.apache.maven.plugin.version.PluginVersionResolutionException;
 import org.apache.maven.project.MavenProject;
 import org.apache.maven.project.MavenProjectBuilder;
@@ -336,7 +337,13 @@ public class DescribeMojo
             }
             catch ( PluginNotFoundException e )
             {
-                throw new MojoExecutionException( "Plugin does not exist: " + 
e.getMessage(), e );
+                getLog().debug( "Unable to find plugin", e );
+                throw new MojoFailureException( "Plugin does not exist: " + 
e.getMessage() );
+            }
+            catch ( PluginVersionNotFoundException e )
+            {
+                getLog().debug( "Unable to find plugin version", e );
+                throw new MojoFailureException( e.getMessage() );
             }
         }
 

-- 
To stop receiving notification emails like this one, please contact
"commits@maven.apache.org" <commits@maven.apache.org>.

Reply via email to