From c2aab414af9ca81b918df0b2cc407c20a1b3fb42 Mon Sep 17 00:00:00 2001 From: Guillaume Nodet Date: Mon, 9 Sep 2024 14:49:34 +0200 Subject: [PATCH] [MNG-8237] Option deprecation notices cleanup --- .../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 5e11454a623b..7a6c3ea4e7ce 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 @@ 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