Generating archive in run based on project packaging type
@@ -50,7 +50,14 @@ public class RunServerMojo extends PluginConfigSupport {
runMojo("org.apache.maven.plugins", "maven-resources-plugin", "resources");
if(!looseApplication) {
+ switch (project.getPackaging()) {
+ case "war":
runMojo("org.apache.maven.plugins", "maven-war-plugin", "war");
+ break;
+ case "ear":
+ runMojo("org.apache.maven.plugins", "maven-ear-plugin", "ear");
+ break;
+ }
}
runLibertyMojoCreate();
