@@ -246,10 +246,6 @@ protected static class CLIManager {
246
246
public static final String SHOW_VERSION = "V" ;
247
247
public static final String QUIET = "q" ;
248
248
public static final String VERBOSE = "X" ;
249
- /** This option is deprecated and may be repurposed as Java debug in a future version.
250
- * Use {@code -X,--verbose} instead. */
251
- @ Deprecated
252
- public static final String DEBUG = "debug" ;
253
249
254
250
public static final String SHOW_ERRORS = "e" ;
255
251
public static final String FAIL_ON_SEVERITY = "fos" ;
@@ -258,22 +254,26 @@ protected static class CLIManager {
258
254
public static final String FORCE_INTERACTIVE = "force-interactive" ;
259
255
public static final String ALTERNATE_USER_SETTINGS = "s" ;
260
256
public static final String ALTERNATE_PROJECT_SETTINGS = "ps" ;
261
-
262
- @ Deprecated
263
- public static final String ALTERNATE_GLOBAL_SETTINGS = "gs" ;
264
-
265
257
public static final String ALTERNATE_INSTALLATION_SETTINGS = "is" ;
266
258
public static final String ALTERNATE_USER_TOOLCHAINS = "t" ;
267
-
268
- @ Deprecated
269
- public static final String ALTERNATE_GLOBAL_TOOLCHAINS = "gt" ;
270
-
271
259
public static final String ALTERNATE_INSTALLATION_TOOLCHAINS = "it" ;
272
260
public static final String LOG_FILE = "l" ;
273
261
public static final String RAW_STREAMS = "raw-streams" ;
274
262
public static final String COLOR = "color" ;
275
263
public static final String HELP = "h" ;
276
264
265
+ // parameters handled by script
266
+ public static final String DEBUG = "debug" ;
267
+ public static final String ENC = "enc" ;
268
+ public static final String YJP = "yjp" ;
269
+
270
+ // deprecated ones
271
+ @ Deprecated
272
+ public static final String ALTERNATE_GLOBAL_SETTINGS = "gs" ;
273
+
274
+ @ Deprecated
275
+ public static final String ALTERNATE_GLOBAL_TOOLCHAINS = "gt" ;
276
+
277
277
protected org .apache .commons .cli .Options options ;
278
278
protected final LinkedHashSet <Option > usedDeprecatedOptions = new LinkedHashSet <>();
279
279
@@ -372,16 +372,21 @@ protected void prepareOptions(org.apache.commons.cli.Options options) {
372
372
.desc ("Defines the color mode of the output. Supported are 'auto', 'always', 'never'." )
373
373
.build ());
374
374
375
- // Deprecated
375
+ // Parameters handled by script
376
376
options .addOption (Option .builder ()
377
377
.longOpt (DEBUG )
378
- .desc ("<deprecated> Produce execution verbose output." )
379
- .deprecated (DeprecatedAttributes .builder ()
380
- .setForRemoval (true )
381
- .setSince ("4.0.0" )
382
- .setDescription ("Use -X,--verbose instead." )
383
- .get ())
378
+ .desc ("Launch the JVM in debug mode (script option)." )
379
+ .build ());
380
+ options .addOption (Option .builder ()
381
+ .longOpt (ENC )
382
+ .desc ("Launch the Maven Encryption tool (script option)." )
384
383
.build ());
384
+ options .addOption (Option .builder ()
385
+ .longOpt (YJP )
386
+ .desc ("Launch the JVM with Yourkit profiler (script option)." )
387
+ .build ());
388
+
389
+ // Deprecated
385
390
options .addOption (Option .builder (ALTERNATE_GLOBAL_SETTINGS )
386
391
.longOpt ("global-settings" )
387
392
.desc ("<deprecated> Alternate path for the global settings file." )
0 commit comments