Skip to content

fix: Enable consumer POM flattening to fix Maven 3/Gradle compatibility#1691

Merged
gnodet merged 1 commit intomasterfrom
fix/consumer-pom-flatten
Mar 9, 2026
Merged

fix: Enable consumer POM flattening to fix Maven 3/Gradle compatibility#1691
gnodet merged 1 commit intomasterfrom
fix/consumer-pom-flatten

Conversation

@gnodet
Copy link
Copy Markdown
Member

@gnodet gnodet commented Mar 9, 2026

Summary

  • Adds <maven.consumer.pom.flatten>true</maven.consumer.pom.flatten> to the root parent POM properties
  • Without this, child module consumer POMs retain a <parent> reference to jline-parent, which is deployed with modelVersion 4.1.0. Maven 3 and Gradle cannot parse 4.1.0 POMs and fail
  • Enabling flattening causes child consumer POMs to use the effective model with the parent stripped, producing self-contained 4.0.0 consumer POMs

Fixes #1688

Workaround for apache/maven#11772

@gnodet gnodet merged commit 786a040 into master Mar 9, 2026
9 checks passed
@gnodet gnodet added this to the 4.0.1 milestone Mar 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Gradle issue with Maven modelVersion 4.1.0 of jline-parent

1 participant