mvnw.cmd 315 B

12345678910111213
  1. @echo off
  2. where mvn >nul 2>nul
  3. if %ERRORLEVEL%==0 (
  4. mvn %*
  5. exit /b %ERRORLEVEL%
  6. )
  7. where docker >nul 2>nul
  8. if %ERRORLEVEL%==0 (
  9. docker run --rm -v "%cd%":/workspace -w /workspace maven:3.9.11-eclipse-temurin-21 mvn %*
  10. exit /b %ERRORLEVEL%
  11. )
  12. echo Maven or Docker is required to run this build. 1>&2
  13. exit /b 1