Files
java-devops-demo/maven4-build-vs-consumer-pom/README.md
T

916 B

maven4-build-vs-consumer-pom

Companion to the ankurm.com post on Maven 4. Tested against Maven 4.0.0-rc-7 (a release candidate, not GA as of 2026-11-26), JDK 25, Maven 3.9.16 and mvnd 2.0.0-rc-3.

Directory Purpose
reactor/ Model 4.1.0 multi-project build: <subprojects>, inferred <parent/>, bom packaging, <sources>, ${revision}
m3-consumer/ Plain Maven 3 project (model 4.0.0) that consumes what the reactor publishes
lifecycle/ antrun echo tasks bound to before:/after: phases
legacy-m3/ Maven 3 style project used to try mvnup, -fos WARN and default plugin versions
output/ Captured real output, one file per scenario
scripts/run-all.sh Regenerates every file in output/ (see scripts/env.sh for tool locations)

Run: unpack the three Maven tarballs and a JDK 25, set TOOLS and JAVA_HOME, then scripts/run-all.sh.