From 2a570826f591d4bf98d55d04a0f2ad7e00156740 Mon Sep 17 00:00:00 2001 From: Stefan CORDES <50696194+ca-stefan-cordes@users.noreply.github.com> Date: Mon, 11 Apr 2022 12:17:31 +0200 Subject: [PATCH] default value for keepCommentsInPom is false. #269 --- src/main/java/org/codehaus/mojo/flatten/FlattenMojo.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/codehaus/mojo/flatten/FlattenMojo.java b/src/main/java/org/codehaus/mojo/flatten/FlattenMojo.java index 558a0d8f..438198fe 100644 --- a/src/main/java/org/codehaus/mojo/flatten/FlattenMojo.java +++ b/src/main/java/org/codehaus/mojo/flatten/FlattenMojo.java @@ -370,8 +370,11 @@ public class FlattenMojo /** * The core maven model readers/writers are discarding the comments of the pom.xml. * By setting keepCommentsInPom to true the current comments are moved to the flattened pom.xml. + * Default value is false (= not re-adding comments). + * + * @since 1.2.8 */ - @Parameter( property = "flatten.dependency.keepComments", required = false ) + @Parameter( property = "flatten.dependency.keepComments", required = false , defaultValue = "false") private Boolean keepCommentsInPom; @Component