This is an automated email from the ASF dual-hosted git repository.

sruehl pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/plc4x.git


The following commit(s) were added to refs/heads/develop by this push:
     new b77805187a chore(build): Enable consumer POM flattening for Maven 4 
RC-6 readiness (#2647)
b77805187a is described below

commit b77805187ac9bc8dfdfd5c57a38d35ca118cec45
Author: Gerd Aschemann <[email protected]>
AuthorDate: Mon Jul 20 08:54:05 2026 +0200

    chore(build): Enable consumer POM flattening for Maven 4 RC-6 readiness 
(#2647)
    
    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) <[email protected]>
---
 .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

Reply via email to