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
   
   :valMHome
   if exist "%M2_HOME%\bin\m2.bat" goto 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
  @REM ==== END VALIDATION ====
  
  :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
  
  :chkMHome
  if not "%M2_HOME%"=="" goto valMHome
  