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 724a2d60083be1bc6ec912a90ea6a6e4d0401976 Author: Brett Leslie Porter <br...@apache.org> AuthorDate: Thu Oct 13 09:51:36 2005 +0000 PR: MNG-122 cleanup artifact/plugin not found exception git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk/maven-plugins/maven-projecthelp-plugin@320704 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/maven/plugins/projecthelp/DescribeMojo.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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 9ac2124..6375a38 100644 --- a/src/main/java/org/apache/maven/plugins/projecthelp/DescribeMojo.java +++ b/src/main/java/org/apache/maven/plugins/projecthelp/DescribeMojo.java @@ -28,6 +28,7 @@ import org.apache.maven.plugin.MojoExecutionException; import org.apache.maven.plugin.MojoFailureException; import org.apache.maven.plugin.PluginManager; import org.apache.maven.plugin.PluginManagerException; +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; @@ -321,8 +322,7 @@ public class DescribeMojo } catch ( ArtifactNotFoundException e ) { - throw new MojoExecutionException( "Error retrieving plugin descriptor for:\n\ngroupId: \'" + groupId + - "\'\nartifactId: \'" + artifactId + "\'\nversion: \'" + version + "\'\n\n", e ); + throw new MojoExecutionException( "Plugin dependency does not exist: " + e.getMessage(), e ); } catch ( InvalidVersionSpecificationException e ) { @@ -334,6 +334,10 @@ public class DescribeMojo throw new MojoExecutionException( "Error retrieving plugin descriptor for:\n\ngroupId: \'" + groupId + "\'\nartifactId: \'" + artifactId + "\'\nversion: \'" + version + "\'\n\n", e ); } + catch ( PluginNotFoundException e ) + { + throw new MojoExecutionException( "Plugin does not exist: " + e.getMessage(), e ); + } } return descriptor; -- To stop receiving notification emails like this one, please contact "commits@maven.apache.org" <commits@maven.apache.org>.