Skip to content

Commit

Permalink
Disable feature generation by default
Browse files Browse the repository at this point in the history
Signed-off-by: Kathryn Kodama <kathryn.s.kodama@gmail.com>
  • Loading branch information
kathrynkodama committed Jun 9, 2022
1 parent 9466c87 commit 4d9ebdd
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ protected static void startProcess(String params, boolean isDevMode, String mave
// run dev mode on project
String goal;
if(isDevMode) {
goal = "dev";
goal = "dev -DgenerateFeatures=true";
} else {
goal = "run";
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public class DevMojo extends LooseAppSupport {
@Parameter(property = "container", defaultValue = "false")
private boolean container;

@Parameter(property = "generateFeatures", defaultValue = "true")
@Parameter(property = "generateFeatures", defaultValue = "false")
private boolean generateFeatures;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,12 @@
import io.openliberty.tools.maven.ServerFeatureSupport;

/**
* This mojo generates the features required in the featureManager element in server.xml.
* It examines the dependencies declared in the pom.xml and the features already declared
* in the featureManager elements in the XML configuration files. Then it generates any
* missing feature names and stores them in a new featureManager element in a new XML file.
* This mojo generates the features required in the featureManager element in
* server.xml. It examines the dependencies declared in the pom.xml and the
* features already declared in the featureManager elements in the XML
* configuration files. Then it generates any missing feature names and stores
* them in a new featureManager element in a new XML file in the source
* config/dropins directory.
*/
@Mojo(name = "generate-features")
public class GenerateFeaturesMojo extends ServerFeatureSupport {
Expand Down

0 comments on commit 4d9ebdd

Please sign in to comment.