anchor.diff:  echo Please set the M2_HOME variable in your environment to match the
   echo location of the Maven installation
   echo.
  -set ERROR_CODE=1
  -goto end
  +goto error
   @REM ==== END VALIDATION ====
   
   :init
  
positive.code: echo Please set the M2_HOME variable in your environment to match the
  echo location of the Maven installation
  echo.
  set ERROR_CODE=1
  goto end
  
  :valMHome
  if exist "%M2_HOME%\bin\m2.bat" goto init
  
negative.code: echo Please set the JAVA_HOME variable in your environment to match the
  echo location of your Java installation
  echo.
  goto error
  
  :OkJHome
  if exist "%JAVA_HOME%\bin\java.exe" goto chkMHome
  