Maven batch mode
Maven command-line options that make output suitable for scripts and build servers: -B for non-interactive batch mode and -ntp to hide download progress.
In more detail
Batch mode never waits for input and disables colour codes. No-transfer-progress removes the many download-progress lines that clutter logs. The course passes both in terminal demonstrations and in the Dockerfile.
Example
./mvnw -B -ntp testRelated terms
- Maven — A build tool for Java in which a project declares itself in a pom.xml file and is built by a fixed lifecycle of phases.
- build wrapper — A small script committed to a project that downloads and runs the exact build tool version the project expects.
Taught in
- The Toolchain: Maven — Modern Java: Virtual Threads & High-Throughput Services
- Packaging Into A Container — Modern Java: Virtual Threads & High-Throughput Services