From 5fb68e0c17012ae54079975bcb59690e6e930e05 Mon Sep 17 00:00:00 2001 From: John Dennis Casey Date: Mon, 3 Oct 2005 20:56:44 +0000 Subject: [PATCH] Fixing DescribeMojo for changes to PluginManager API, and setting prerequisite maven version for this version of the projecthelp-plugin because of this. git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@293448 13f79535-47bb-0310-9956-ffa450edef68 --- maven-plugins/maven-projecthelp-plugin/pom.xml | 7 ++++++- .../apache/maven/plugins/projecthelp/DescribeMojo.java | 10 +--------- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/maven-plugins/maven-projecthelp-plugin/pom.xml b/maven-plugins/maven-projecthelp-plugin/pom.xml index fcbdc61499..c9a209e30b 100644 --- a/maven-plugins/maven-projecthelp-plugin/pom.xml +++ b/maven-plugins/maven-projecthelp-plugin/pom.xml @@ -10,6 +10,11 @@ Maven Project-Help Plugin 2.0-beta-2-SNAPSHOT 2001 + + + 2.0-beta-3-SNAPSHOT + + org.apache.maven @@ -19,7 +24,7 @@ org.apache.maven maven-core - 2.0-beta-1 + 2.0-beta-3-SNAPSHOT org.apache.maven diff --git a/maven-plugins/maven-projecthelp-plugin/src/main/java/org/apache/maven/plugins/projecthelp/DescribeMojo.java b/maven-plugins/maven-projecthelp-plugin/src/main/java/org/apache/maven/plugins/projecthelp/DescribeMojo.java index 7532b8773e..39ecdddabc 100644 --- a/maven-plugins/maven-projecthelp-plugin/src/main/java/org/apache/maven/plugins/projecthelp/DescribeMojo.java +++ b/maven-plugins/maven-projecthelp-plugin/src/main/java/org/apache/maven/plugins/projecthelp/DescribeMojo.java @@ -131,15 +131,7 @@ public class DescribeMojo if ( pluginPrefix != null ) { - try - { - descriptor = pluginManager.getPluginDescriptorForPrefix( pluginPrefix ); - } - catch ( PluginManagerException e ) - { - throw new MojoExecutionException( "Error retrieving plugin descriptor for prefix: \'" + pluginPrefix - + "\'.", e ); - } + descriptor = pluginManager.getPluginDescriptorForPrefix( pluginPrefix ); } else if ( groupId != null && artifactId != null ) {