Skip to content

Commit 397f434

Browse files
committed
fix: Move consumer POM flattening config to .mvn/maven.properties
The maven.consumer.pom.flatten property must be set in .mvn/maven.properties (a Maven configuration property), not in pom.xml <properties> (a project property). When set in the POM, it was ignored and child consumer POMs still retained a <parent> reference to jline-parent (which uses modelVersion 4.1.0), breaking Maven 3 and Gradle consumers. Workaround for apache/maven#11772
1 parent f6a7673 commit 397f434

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

.mvn/maven.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
maven.consumer.pom.flatten=true

pom.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@
7676
<properties>
7777
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
7878
<project.build.outputTimestamp>${nisse.jgit.dateIso8601}</project.build.outputTimestamp>
79-
<maven.consumer.pom.flatten>true</maven.consumer.pom.flatten>
8079

8180
<java.build.version>22</java.build.version>
8281
<java.release.version>11</java.release.version>

0 commit comments

Comments
 (0)