Maven 3.9 on Java 25. Point it at a project. It builds.
10K+
Point it at a project. It builds.
bsantanna/maven-build is Apache Maven 3.9 on Java 25, tuned to run your build in parallel the moment it starts. No local JDK. No local Maven. No "works on my machine."
From the root of any Maven project:
docker run --rm -v "$PWD:/opt/workspace" bsantanna/maven-build
That runs mvn clean install with 8 threads. Any arguments you pass go straight to Maven:
docker run --rm -v "$PWD:/opt/workspace" bsantanna/maven-build verify -DskipITs
Downloaded dependencies are kept in archive/ inside your project, so every run after the first starts warm. Add archive/ to your .gitignore.
| Variable | Default | Purpose |
|---|---|---|
MAVEN_THREAD_COUNT | 8 | Parallel build threads (mvn -T). |
JAVA_OPTS | — | Extra options passed to Maven, e.g. -Dmaven.test.skip=true. |
docker run --rm -e MAVEN_THREAD_COUNT=4 -v "$PWD:/opt/workspace" bsantanna/maven-build package
| Build tool | Apache Maven 3.9.11 (checksum-verified) |
| Runtime | Eclipse Temurin JDK 25 (LTS) |
| Base | bsantanna/base |
| Tag | Meaning |
|---|---|
latest | The newest release. |
YYYY.MM.XX | A fixed release, e.g. 2026.11.01. Pin this in CI. |
Multi-architecture: linux/amd64 and linux/arm64.
Content type
Image
Digest
sha256:2090d1d70…
Size
269.1 MB
Last updated
4 days ago
docker pull bsantanna/maven-build