Handle empty server.xml
@@ -381,6 +381,7 @@ public class DevMojo extends StartDebugMojoSupport {
try {
ServerFeature servUtil = getServerFeatureUtil();
Set<String> features = servUtil.getServerFeatures(serverDir);
+ if (features != null) {
features.removeAll(existingFeatures);
if (!features.isEmpty()) {
List<String> configFeatures = new ArrayList<String>(features);
@@ -388,6 +389,7 @@ public class DevMojo extends StartDebugMojoSupport {
runLibertyMavenPlugin("install-feature", serverName, configFeatures);
this.existingFeatures.addAll(features);
}
+ }
} catch (MojoExecutionException e) {
log.error("Failed to install features from configuration file", e);
}
