From 4215b208a3b08755e38efbb2c7f280311f33261c Mon Sep 17 00:00:00 2001 From: David Shunfenthal Date: Sun, 21 Jan 2018 00:51:38 -0500 Subject: [PATCH] ARTEMIS-1624 Adding in configuration condition for turning on the console when using maven plugin --- .../apache/activemq/artemis/maven/ArtemisCreatePlugin.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/artemis-maven-plugin/src/main/java/org/apache/activemq/artemis/maven/ArtemisCreatePlugin.java b/artemis-maven-plugin/src/main/java/org/apache/activemq/artemis/maven/ArtemisCreatePlugin.java index 86668da7187..2e16c86d453 100644 --- a/artemis-maven-plugin/src/main/java/org/apache/activemq/artemis/maven/ArtemisCreatePlugin.java +++ b/artemis-maven-plugin/src/main/java/org/apache/activemq/artemis/maven/ArtemisCreatePlugin.java @@ -173,7 +173,7 @@ protected void doExecute() throws MojoExecutionException, MojoFailureException { ArrayList listCommands = new ArrayList<>(); - add(listCommands, "create", "--allow-anonymous", "--silent", "--force", "--no-web", "--user", user, "--password", password, "--role", role, "--port-offset", "" + portOffset, "--data", dataFolder); + add(listCommands, "create", "--allow-anonymous", "--silent", "--force", "--user", user, "--password", password, "--role", role, "--port-offset", "" + portOffset, "--data", dataFolder); if (allowAnonymous) { add(listCommands, "--allow-anonymous"); @@ -185,6 +185,10 @@ protected void doExecute() throws MojoExecutionException, MojoFailureException { add(listCommands, "--java-options", javaOptions); } + if (noWeb) { + add(listCommands, "--no-web"); + } + if (slave) { add(listCommands, "--slave"); }