This is an automated email from the ASF dual-hosted git repository. gboue pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/maven-help-plugin.git
The following commit(s) were added to refs/heads/master by this push: new 265be5b [MPH-121] incorrect text in help:describe for cmd 265be5b is described below commit 265be5bbb91d07d64f3550819fc4eb1d5f335ef0 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.