maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hbout...@apache.org
Subject [maven-help-plugin] 18/37: Fixing DescribeMojo for changes to PluginManager API, and setting prerequisite maven version for this version of the projecthelp-plugin because of this.
Date Wed, 20 Dec 2017 09:35:11 GMT
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 f04b7357ac52ff61de7210d9d6b362fca4c64410
Author: John Dennis Casey <jdcasey@apache.org>
AuthorDate: Mon Oct 3 20:56:44 2005 +0000

    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/maven-plugins/maven-projecthelp-plugin@293448
13f79535-47bb-0310-9956-ffa450edef68
---
 pom.xml                                                        |  7 ++++++-
 .../org/apache/maven/plugins/projecthelp/DescribeMojo.java     | 10 +---------
 2 files changed, 7 insertions(+), 10 deletions(-)

diff --git a/pom.xml b/pom.xml
index fcbdc61..c9a209e 100644
--- a/pom.xml
+++ b/pom.xml
@@ -10,6 +10,11 @@
   <name>Maven Project-Help Plugin</name>
   <version>2.0-beta-2-SNAPSHOT</version>
   <inceptionYear>2001</inceptionYear>
+  
+  <prerequisites>
+    <maven>2.0-beta-3-SNAPSHOT</maven>
+  </prerequisites>
+  
   <dependencies>
     <dependency>
       <groupId>org.apache.maven</groupId>
@@ -19,7 +24,7 @@
     <dependency>
       <groupId>org.apache.maven</groupId>
       <artifactId>maven-core</artifactId>
-      <version>2.0-beta-1</version>
+      <version>2.0-beta-3-SNAPSHOT</version>
     </dependency>
     <dependency>
       <groupId>org.apache.maven</groupId>
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 7532b87..39ecddd 100644
--- a/src/main/java/org/apache/maven/plugins/projecthelp/DescribeMojo.java
+++ b/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 )
         {

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

Mime
View raw message