- @echo off
- where mvn >nul 2>nul
- if %ERRORLEVEL%==0 (
- mvn %*
- exit /b %ERRORLEVEL%
- )
- where docker >nul 2>nul
- if %ERRORLEVEL%==0 (
- docker run --rm -v "%cd%":/workspace -w /workspace maven:3.9.11-eclipse-temurin-21 mvn %*
- exit /b %ERRORLEVEL%
- )
- echo Maven or Docker is required to run this build. 1>&2
- exit /b 1
|