Reintroduce processContainerParams() to call setContainer() when -Dcontainer is used.
@@ -715,6 +715,8 @@ public class DevMojo extends StartDebugMojoSupport {
// Check if this is a Boost application
boostPlugin = project.getPlugin("org.microshed.boost:boost-maven-plugin");
+ processContainerParams();
+
if (!container) {
if (serverDirectory.exists()) {
if (ServerStatusUtil.isServerRunning(installDirectory, super.outputDirectory, serverName)) {
@@ -808,6 +810,13 @@ public class DevMojo extends StartDebugMojoSupport {
}
}
+ private void processContainerParams() throws MojoExecutionException {
+ if (container) {
+ // this also sets the project property for use in DeployMojoSupport
+ setContainer(true);
+ }
+ }
+
private void addArtifacts(org.eclipse.aether.graph.DependencyNode root, List<File> artifacts) {
if (root.getArtifact() != null) {
artifacts.add(root.getArtifact().getFile());
