In some cases blank lines are added to server.xml 
The generateFeatures mojo adds a comment to server.xml indicating that a new file has been created to handle Liberty features generated by the mojo. In some cases adding that comment incorrectly adds multiple extra blank lines. 

We need to find out what triggers this behaviour and either fix it or stop adding the comment until we do.
diff --git a/liberty-maven-plugin/src/main/java/io/openliberty/tools/maven/server/GenerateFeaturesMojo.java b/liberty-maven-plugin/src/main/java/io/openliberty/tools/maven/server/GenerateFeaturesMojo.java
index 06428ada..ac686422 100644
--- a/liberty-maven-plugin/src/main/java/io/openliberty/tools/maven/server/GenerateFeaturesMojo.java
+++ b/liberty-maven-plugin/src/main/java/io/openliberty/tools/maven/server/GenerateFeaturesMojo.java
@@ -39,6 +39,7 @@ import org.apache.maven.project.MavenProject;
 import org.xml.sax.SAXException;
 
 import io.openliberty.tools.common.plugins.config.ServerConfigXmlDocument;
+import io.openliberty.tools.common.plugins.config.XmlDocument;
 import io.openliberty.tools.common.plugins.util.InstallFeatureUtil;
 import io.openliberty.tools.common.plugins.util.PluginExecutionException;
 import io.openliberty.tools.maven.BasicSupport;
@@ -273,9 +274,9 @@ public class GenerateFeaturesMojo extends InstallFeatureSupport {
             return;
         }
         try {
-            if (doc.findFMComment(FEATURES_FILE_MESSAGE) == null) {
-                doc.createFMComment(FEATURES_FILE_MESSAGE);
-                doc.writeXMLDocument(serverXml);    
+            if (doc.createFMComment(FEATURES_FILE_MESSAGE)) {
+                doc.writeXMLDocument(serverXml);
+                XmlDocument.addNewlineBeforeFirstElement(serverXml);
             }
         } catch (IOException | TransformerException e) {
             log.debug("Exception adding comment to server.xml", e);
['liberty-maven-plugin/src/main/java/io/openliberty/tools/maven/server/GenerateFeaturesMojo.java']