You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by mi...@apache.org on 2021/07/26 18:11:02 UTC

[maven] 01/03: Add CLI param -dj

This is an automated email from the ASF dual-hosted git repository.

michaelo pushed a commit to branch collapse-mvnDebug-into-mvn
in repository https://gitbox.apache.org/repos/asf/maven.git

commit e49b3844eabf9436fa694d8538c0d21f3acdfaa3
Author: Michael Osipov <mi...@apache.org>
AuthorDate: Mon Jul 26 19:52:29 2021 +0200

    Add CLI param -dj
---
 maven-embedder/src/main/java/org/apache/maven/cli/CLIManager.java | 3 +++
 1 file changed, 3 insertions(+)

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 fec2bda..7177bc0 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
@@ -110,6 +110,8 @@ public class CLIManager
 
     public static final String COLOR = "color";
 
+    public static final String DEBUG_JAVA = "dj";
+
     protected Options options;
 
     @SuppressWarnings( "checkstyle:linelength" )
@@ -153,6 +155,7 @@ public class CLIManager
         options.addOption( Option.builder( BUILDER ).longOpt( "builder" ).hasArg().desc( "The id of the build strategy to use" ).build() );
         options.addOption( Option.builder( NO_TRANSFER_PROGRESS ).longOpt( "no-transfer-progress" ).desc( "Do not display transfer progress when downloading or uploading" ).build() );
         options.addOption( Option.builder().longOpt( COLOR ).hasArg().optionalArg( true ).desc( "Defines the color mode of the output. Supported are 'auto', 'always', 'never'." ).build() );
+        options.addOption( Option.builder( DEBUG_JAVA ).longOpt( "debug-java" ).desc( "Start Maven in Java debug mode" ).build() );
     }
 
     public CommandLine parse( String[] args )