You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by hb...@apache.org on 2017/12/20 09:35:14 UTC

[maven-help-plugin] 21/37: Resolving: MNG-449, MNG-152, MNG-1090, MNG-1089, MNG-1122

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 835611b7cc64ed800fcc6cdb89d19b94dbb47197
Author: John Dennis Casey <jd...@apache.org>
AuthorDate: Tue Oct 11 07:35:33 2005 +0000

    Resolving: MNG-449, MNG-152, MNG-1090, MNG-1089, MNG-1122
    
    o Removed -cpl and related command line switches for controlling use of LATEST metadata for resolving plugin versions
    o Made LATEST the only metadata used to resolve plugin versions, since this is also available when releases are performed
    o Added various error diagnostics for project build exceptions
    o Enhanced artifact not found error diagnostics
    o Removed maven-project and added maven-artifact to maven-surefire-plugin's pom
    o Removed the stanza that added pluginArtifacts to the test-booter's classpath...they are already covered by the classpathElements
    o Fixed ITs in connection to the removal of -cpl
    o Changed the plugin manager to detect whether a plugin's artifact file has changed since the plugin container was created...if so, reload it.
    o Took the projecthelp plugin out of the build until I can diagnose the problems with its build (probably tomorrow).
    
    
    
    git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk/maven-plugins/maven-projecthelp-plugin@312827 13f79535-47bb-0310-9956-ffa450edef68
---
 .../maven/plugins/projecthelp/DescribeMojo.java    | 26 ++++++++++++++++++++++
 1 file changed, 26 insertions(+)

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 bbed217..303181b 100644
--- a/src/main/java/org/apache/maven/plugins/projecthelp/DescribeMojo.java
+++ b/src/main/java/org/apache/maven/plugins/projecthelp/DescribeMojo.java
@@ -1,6 +1,7 @@
 package org.apache.maven.plugins.projecthelp;
 
 import org.apache.maven.artifact.repository.ArtifactRepository;
+import org.apache.maven.artifact.resolver.ArtifactNotFoundException;
 import org.apache.maven.artifact.resolver.ArtifactResolutionException;
 import org.apache.maven.execution.MavenSession;
 import org.apache.maven.model.Plugin;
@@ -215,6 +216,11 @@ public class DescribeMojo
                 throw new MojoExecutionException( "Error retrieving plugin descriptor for:\n\ngroupId: \'" + groupId
                     + "\'\nartifactId: \'" + artifactId + "\'\nversion: \'" + version + "\'\n\n", e );
             }
+            catch ( ArtifactNotFoundException e )
+            {
+                throw new MojoExecutionException( "Error retrieving plugin descriptor for:\n\ngroupId: \'" + groupId
+                                                  + "\'\nartifactId: \'" + artifactId + "\'\nversion: \'" + version + "\'\n\n", e );
+            }
         }
         
         return descriptor;
@@ -326,6 +332,26 @@ public class DescribeMojo
         String eLife = md.getExecuteLifecycle();
         String ePhase = md.getExecutePhase();
         
+        if ( eGoal != null || ePhase != null )
+        {
+            buffer.append( "\n\nBefore this mojo executes, it will call:\n" );
+            
+            if ( eGoal != null )
+            {
+                buffer.append( "\nSingle mojo: \'" ).append( eGoal ).append( "\'" );
+            }
+            
+            if ( ePhase != null )
+            {
+                buffer.append( "\nPhase: \'" ).append( ePhase ).append( "\'" );
+                
+                if ( eLife != null )
+                {
+                    buffer.append( " in Lifecycle Overlay: \'" ).append( eLife ).append( "\'" );
+                }
+            }
+        }
+        
         List parameters = md.getParameters();
         
         List requirements = md.getRequirements();

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