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

gboue pushed a commit to branch MPH-121
in repository https://gitbox.apache.org/repos/asf/maven-help-plugin.git

commit a8c481eff8d578bca1e049052d7838483fd3f351
Author: Guillaume Boué <gb...@apache.org>
AuthorDate: Sat Mar 3 18:59:16 2018 +0100

    [MPH-121] incorrect text in help:describe for cmd
    
    Clarification of the wording used to describe a phase that is part of a
    lifecycle.
---
 src/it/describe-cmd/verify.groovy                             | 2 +-
 src/main/java/org/apache/maven/plugins/help/DescribeMojo.java | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/it/describe-cmd/verify.groovy 
b/src/it/describe-cmd/verify.groovy
index e4a39b8..5a044f1 100644
--- a/src/it/describe-cmd/verify.groovy
+++ b/src/it/describe-cmd/verify.groovy
@@ -26,6 +26,6 @@ assert result.contains("'deploy' is a phase corresponding to 
this plugin:" + ls
 
 result = new File(basedir, 'result-site.txt').text;
 
-assert result.contains("'site' is a lifecycle with the following phases:")
+assert result.contains("'site' is a phase within the 'site' lifecycle, which 
has the following phases:")
 
 return true;
diff --git a/src/main/java/org/apache/maven/plugins/help/DescribeMojo.java 
b/src/main/java/org/apache/maven/plugins/help/DescribeMojo.java
index e7e18b6..61ca458 100644
--- a/src/main/java/org/apache/maven/plugins/help/DescribeMojo.java
+++ b/src/main/java/org/apache/maven/plugins/help/DescribeMojo.java
@@ -803,7 +803,8 @@ public class DescribeMojo
             else
             {
                 descriptionBuffer.append( "'" ).append( cmd );
-                descriptionBuffer.append( "' is a lifecycle with the following 
phases: " );
+                descriptionBuffer.append( "' is a phase within the '" 
).append( lifecycle.getId() );
+                descriptionBuffer.append( "' lifecycle, which has the 
following phases: " );
                 descriptionBuffer.append( LS );
 
                 for ( String key : phases )

-- 
To stop receiving notification emails like this one, please contact
gb...@apache.org.

Reply via email to