From 3508267c8648f3318ddbcd0824e6d4c262aca798 Mon Sep 17 00:00:00 2001 From: Gerd Aschemann Date: Fri, 17 Jul 2026 00:08:59 +0200 Subject: [PATCH] Enable consumer POM flattening for Maven 4 RC-6 readiness Since apache/maven#11780 (first shipping with 4.0.0-rc-6), installing or deploying a POM-packaged project whose model cannot be downgraded to 4.0.0 fails fast. The PLC4X parent uses 4.1.0-only features (subprojects, build sources), so every 'mvn install' will break on RC-6 without maven.consumer.pom.flatten=true. With flattening enabled, jar module consumer POMs become self-contained model-4.0.0 (no parent reference), which also fixes Maven 3/Gradle consumption of published artifacts (apache/maven#11772). Verified with 4.0.0-rc-5 (current wrapper pin) and a current 4.0.0-SNAPSHOT: full reactor builds green with both. Co-Authored-By: Claude Opus 4.8 (1M context) --- .mvn/maven.config | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.mvn/maven.config b/.mvn/maven.config index 0a0ca8d9fc..2adaa48390 100644 --- a/.mvn/maven.config +++ b/.mvn/maven.config @@ -1 +1,2 @@ --P ?reactor-with-extras,?reactor-with-build-tools \ No newline at end of file +-P ?reactor-with-extras,?reactor-with-build-tools +-Dmaven.consumer.pom.flatten=true