anchor.diff:  echo Please set the JAVA_HOME variable in your environment to match the
   echo location of your Java installation
   echo.
  -set ERROR_CODE=1
  -goto end
  +goto error
   
   :OkJHome
   if exist "%JAVA_HOME%\bin\java.exe" goto chkMHome
  
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: @REM Start MAVEN2
  for %%i in ("%M2_HOME%"\core\boot\classworlds-*) do set CLASSWORLDS_JAR="%%i"
  %MAVEN_JAVA_EXE% %MAVEN_OPTS% -classpath %CLASSWORLDS_JAR% "-Dclassworlds.conf=%M2_HOME%\bin\m2.conf" "-Dmaven.home=%M2_HOME%" org.codehaus.classworlds.Launcher %MAVEN_CMD_LINE_ARGS%
  if ERRORLEVEL 1 goto error
  goto end
  
  :error
  