Add method to call generate-features mojo.
/**
- * (C) Copyright IBM Corporation 2014, 2020.
+ * (C) Copyright IBM Corporation 2014, 2021.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -247,7 +247,7 @@ public class StartDebugMojoSupport extends BasicSupport {
}
protected void runLibertyMojoInstallFeature(Element features, String containerName) throws MojoExecutionException {
- Xpp3Dom config = ExecuteMojoUtil.getPluginGoalConfig(getLibertyPlugin(), "install-feature", log);;
+ Xpp3Dom config = ExecuteMojoUtil.getPluginGoalConfig(getLibertyPlugin(), "install-feature", log);
if (features != null) {
config = Xpp3Dom.mergeXpp3Dom(configuration(features), config);
}
@@ -257,6 +257,11 @@ public class StartDebugMojoSupport extends BasicSupport {
runLibertyMojo("install-feature", config);
}
+ protected void runLibertyMojoGenerateFeatures() throws MojoExecutionException {
+ Xpp3Dom config = ExecuteMojoUtil.getPluginGoalConfig(getLibertyPlugin(), "generate-features", log);
+ runLibertyMojo("generate-features", config);
+ }
+
private void runLibertyMojo(String goal, Xpp3Dom config) throws MojoExecutionException {
log.info("Running liberty:" + goal);
log.debug("configuration:\n" + config);
