You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by sj...@apache.org on 2026/05/29 15:01:23 UTC
(maven-help-plugin) branch master updated: Fix ITs for Maven 3.10.x
This is an automated email from the ASF dual-hosted git repository.
slawekjaranowski 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 60c1ef1 Fix ITs for Maven 3.10.x
60c1ef1 is described below
commit 60c1ef14afa6e8b68ef921410b897711f577b64b
Author: Slawomir Jaranowski <s....@gmail.com>
AuthorDate: Thu May 28 23:02:37 2026 +0200
Fix ITs for Maven 3.10.x
---
src/it/projects/describe-cmd/verify.groovy | 3 ++-
src/main/java/org/apache/maven/plugins/help/DescribeMojo.java | 1 +
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/it/projects/describe-cmd/verify.groovy b/src/it/projects/describe-cmd/verify.groovy
index 6cecaea..b46af06 100644
--- a/src/it/projects/describe-cmd/verify.groovy
+++ b/src/it/projects/describe-cmd/verify.groovy
@@ -21,7 +21,8 @@ def result = new File(basedir, 'result-deploy.txt').text;
def ls = System.getProperty( "line.separator" );
-if (mavenVersion.startsWith('4.')) {
+// used deprecated methods - FIXME in DescribeMojo
+if (mavenVersion.startsWith('4.') || mavenVersion.startsWith('3.10.')) {
assert result.contains("'deploy' is a phase within the 'default' lifecycle, which has the following phases:")
} else {
assert result.contains("'deploy' is a phase corresponding to this plugin:" + ls +
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 33a0151..9caa5cf 100644
--- a/src/main/java/org/apache/maven/plugins/help/DescribeMojo.java
+++ b/src/main/java/org/apache/maven/plugins/help/DescribeMojo.java
@@ -650,6 +650,7 @@ public class DescribeMojo extends AbstractHelpMojo {
throw new MojoExecutionException("The given phase '" + cmd + "' is an unknown phase.");
}
+ // FIXME don't use a deprecated methods
Map<String, String> defaultLifecyclePhases = lifecycleMappings
.get(project.getPackaging())
.getLifecycles()