From 36de1c6e512435dffe0f27e1c117bd725cfba293 Mon Sep 17 00:00:00 2001 From: Guillaume Nodet Date: Thu, 12 Sep 2024 06:39:22 +0200 Subject: [PATCH] [MNG-8237] Option deprecation notices cleanup (#1713) --- .../java/org/apache/maven/cli/CLIManager.java | 60 +++++++++++++------ .../java/org/apache/maven/cli/MavenCli.java | 48 ++++++++++----- 2 files changed, 76 insertions(+), 32 deletions(-) diff --git a/maven-embedder/src/main/java/org/apache/maven/cli/CLIManager.java b/maven-embedder/src/main/java/org/apache/maven/cli/CLIManager.java index 5e11454a62..7a6c3ea4e7 100644 --- a/maven-embedder/src/main/java/org/apache/maven/cli/CLIManager.java +++ b/maven-embedder/src/main/java/org/apache/maven/cli/CLIManager.java @@ -20,10 +20,12 @@ package org.apache.maven.cli; import java.io.PrintStream; import java.io.PrintWriter; +import java.util.LinkedHashSet; +import java.util.Set; import org.apache.commons.cli.CommandLine; -import org.apache.commons.cli.CommandLineParser; import org.apache.commons.cli.DefaultParser; +import org.apache.commons.cli.DeprecatedAttributes; import org.apache.commons.cli.HelpFormatter; import org.apache.commons.cli.Option; import org.apache.commons.cli.Options; @@ -130,11 +132,12 @@ public class CLIManager { public static final String IGNORE_TRANSITIVE_REPOSITORIES = "itr"; /** This option is deprecated and may be repurposed as Java debug in a future version. - * Use {@code -X/--verbose} instead. */ + * Use {@code -X,--verbose} instead. */ @Deprecated public static final String DEBUG = "debug"; protected Options options; + protected final Set