[MNG-7189] Remove undocumented environment variable MAVEN_BASEDIR in startup scripts

This closes #490
This commit is contained in:
Michael Osipov 2021-07-19 22:04:55 +02:00
parent 0696cf14ad
commit b8cdac5573
2 changed files with 1 additions and 4 deletions

View File

@ -114,7 +114,7 @@ concat_lines() {
fi fi
} }
MAVEN_PROJECTBASEDIR="${MAVEN_BASEDIR:-`find_maven_basedir "$@"`}" MAVEN_PROJECTBASEDIR="`find_maven_basedir "$@"`"
MAVEN_OPTS="`concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config"` $MAVEN_OPTS" MAVEN_OPTS="`concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config"` $MAVEN_OPTS"
# For Cygwin, switch project base directory path to Windows format before # For Cygwin, switch project base directory path to Windows format before

View File

@ -7,9 +7,6 @@ set MAVEN_CMD_LINE_ARGS=%*
@REM Find the project basedir, i.e., the directory that contains the directory ".mvn". @REM Find the project basedir, i.e., the directory that contains the directory ".mvn".
@REM Fallback to current working directory if not found. @REM Fallback to current working directory if not found.
set "MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR%"
if not "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir
set "EXEC_DIR=%CD%" set "EXEC_DIR=%CD%"
set "WDIR=%EXEC_DIR%" set "WDIR=%EXEC_DIR%"