diff --git a/apache-maven/src/assembly/shared/run b/apache-maven/src/assembly/shared/run index b89ecc7d24a7..28814a81786f 100755 --- a/apache-maven/src/assembly/shared/run +++ b/apache-maven/src/assembly/shared/run @@ -17,4 +17,5 @@ exec "$JAVACMD" \ "-Dlibrary.jansi.path=${MAVEN_HOME}/lib/jansi-native" \ "-Dmaven.multiModuleProjectDirectory=$MAVEN_PROJECTBASEDIR" \ $LAUNCHER_CLASS \ + $MAVEN_ARGS \ "$@" diff --git a/apache-maven/src/assembly/shared/run.cmd b/apache-maven/src/assembly/shared/run.cmd index ab6da36667d6..71a9c05e3bd6 100755 --- a/apache-maven/src/assembly/shared/run.cmd +++ b/apache-maven/src/assembly/shared/run.cmd @@ -8,6 +8,7 @@ "-Dlibrary.jansi.path=%MAVEN_HOME%\lib\jansi-native" ^ "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" ^ %LAUNCHER_CLASS% ^ + %MAVEN_ARGS% ^ %* if ERRORLEVEL 1 goto error goto end diff --git a/apache-maven/src/assembly/shared/validate b/apache-maven/src/assembly/shared/validate index 0d22a8b21a86..0203dd2e37c0 100644 --- a/apache-maven/src/assembly/shared/validate +++ b/apache-maven/src/assembly/shared/validate @@ -24,6 +24,7 @@ # # JAVA_HOME (Optional) Points to a Java installation. # MAVEN_OPTS (Optional) Java runtime options used when Maven is executed. +# MAVEN_ARGS (Optional) Arguments passed to Maven before CLI arguments. # MAVEN_SKIP_RC (Optional) Flag to disable loading of mavenrc files. # ----------------------------------------------------------------------------- diff --git a/apache-maven/src/assembly/shared/validate.cmd b/apache-maven/src/assembly/shared/validate.cmd index dc68027bfecd..34ae2e92555b 100644 --- a/apache-maven/src/assembly/shared/validate.cmd +++ b/apache-maven/src/assembly/shared/validate.cmd @@ -24,6 +24,7 @@ @REM MAVEN_BATCH_ECHO (Optional) Set to 'on' to enable the echoing of the batch commands. @REM MAVEN_BATCH_PAUSE (Optional) set to 'on' to wait for a key stroke before ending. @REM MAVEN_OPTS (Optional) Java runtime options used when Maven is executed. +@REM MAVEN_ARGS (Optional) Arguments passed to Maven before CLI arguments. @REM MAVEN_SKIP_RC (Optional) Flag to disable loading of mavenrc files. @REM -----------------------------------------------------------------------------