diff --git a/src/main/java/org/twdata/maven/yamlpom/ConverterBuilder.java b/src/main/java/org/twdata/maven/yamlpom/ConverterBuilder.java index 2f0facc..7e5afe6 100644 --- a/src/main/java/org/twdata/maven/yamlpom/ConverterBuilder.java +++ b/src/main/java/org/twdata/maven/yamlpom/ConverterBuilder.java @@ -91,7 +91,7 @@ public void convert() throws IOException, InvalidFormatException } String text = converter.convert(reader, options); - if (text != null) + if (text != null && text.trim().length() > 0) { IOUtils.write(text, writer); }