mirror of https://github.com/apache/maven.git
[MNG-7193] Introduce MAVEN_ARGS environment variable
Add args directly after the class name and leave users the option to override with maven.config or CLI args. This closes #637
This commit is contained in:
parent
e6287b4701
commit
6257b33142
|
@ -17,4 +17,5 @@ exec "$JAVACMD" \
|
|||
"-Dlibrary.jansi.path=${MAVEN_HOME}/lib/jansi-native" \
|
||||
"-Dmaven.multiModuleProjectDirectory=$MAVEN_PROJECTBASEDIR" \
|
||||
$LAUNCHER_CLASS \
|
||||
$MAVEN_ARGS \
|
||||
"$@"
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -23,6 +23,7 @@
|
|||
# Environment Variable Prerequisites
|
||||
#
|
||||
# JAVA_HOME (Optional) Points to a Java installation.
|
||||
# MAVEN_ARGS (Optional) Arguments passed to Maven before CLI arguments.
|
||||
# MAVEN_OPTS (Optional) Java runtime options used when Maven is executed.
|
||||
# MAVEN_SKIP_RC (Optional) Flag to disable loading of mavenrc files.
|
||||
# -----------------------------------------------------------------------------
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
@REM Environment Variable Prerequisites
|
||||
@REM
|
||||
@REM JAVA_HOME (Optional) Points to a Java installation.
|
||||
@REM MAVEN_ARGS (Optional) Arguments passed to Maven before CLI arguments.
|
||||
@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.
|
||||
|
|
Loading…
Reference in New Issue