This is an automated email from the ASF dual-hosted git repository.
jbertram pushed a commit to branch development
in repository https://gitbox.apache.org/repos/asf/artemis-examples.git
The following commit(s) were added to refs/heads/development by this push:
new b2552eab ARTEMIS-6055 refactor CLI default password handling
b2552eab is described below
commit b2552eab93971fa29454cc48b6cdceb76c0b121d
Author: Justin Bertram <[email protected]>
AuthorDate: Mon May 11 11:06:33 2026 -0500
ARTEMIS-6055 refactor CLI default password handling
---
.../clustered/client-side-load-balancing/pom.xml | 12 ++++++++++++
.../clustered/clustered-durable-subscription/pom.xml | 16 ++++++++++++++--
.../clustered/shared-storage-static-cluster/pom.xml | 14 +++++++++++++-
.../features/ha/client-side-failoverlistener/pom.xml | 14 +++++++++++++-
.../features/ha/multiple-failover-failback/pom.xml | 20 +++++++++++++++++++-
examples/features/ha/multiple-failover/pom.xml | 20 +++++++++++++++++++-
.../features/ha/non-transaction-failover/pom.xml | 14 +++++++++++++-
examples/features/ha/stop-server-failover/pom.xml | 14 +++++++++++++-
8 files changed, 116 insertions(+), 8 deletions(-)
diff --git a/examples/features/clustered/client-side-load-balancing/pom.xml
b/examples/features/clustered/client-side-load-balancing/pom.xml
index ed80fd42..6a30e1ab 100644
--- a/examples/features/clustered/client-side-load-balancing/pom.xml
+++ b/examples/features/clustered/client-side-load-balancing/pom.xml
@@ -61,6 +61,10 @@ under the License.
<args>
<arg>--queues</arg>
<arg>exampleQueue</arg>
+ <arg>--cluster-user</arg>
+ <arg>my-cluster-user</arg>
+ <arg>--cluster-password</arg>
+ <arg>my-cluster-password</arg>
</args>
<!-- this makes it easier in certain envs -->
<javaOptions>-Djava.net.preferIPv4Stack=true</javaOptions>
@@ -81,6 +85,10 @@ under the License.
<args>
<arg>--queues</arg>
<arg>exampleQueue</arg>
+ <arg>--cluster-user</arg>
+ <arg>my-cluster-user</arg>
+ <arg>--cluster-password</arg>
+ <arg>my-cluster-password</arg>
</args>
</configuration>
</execution>
@@ -99,6 +107,10 @@ under the License.
<args>
<arg>--queues</arg>
<arg>exampleQueue</arg>
+ <arg>--cluster-user</arg>
+ <arg>my-cluster-user</arg>
+ <arg>--cluster-password</arg>
+ <arg>my-cluster-password</arg>
</args>
</configuration>
</execution>
diff --git a/examples/features/clustered/clustered-durable-subscription/pom.xml
b/examples/features/clustered/clustered-durable-subscription/pom.xml
index c3ffedf9..72c9037c 100644
--- a/examples/features/clustered/clustered-durable-subscription/pom.xml
+++ b/examples/features/clustered/clustered-durable-subscription/pom.xml
@@ -61,6 +61,12 @@ under the License.
<configuration>${basedir}/target/classes/activemq/server0</configuration>
<!-- this makes it easier in certain envs -->
<javaOptions>-Djava.net.preferIPv4Stack=true</javaOptions>
+ <args>
+ <arg>--cluster-user</arg>
+ <arg>my-cluster-user</arg>
+ <arg>--cluster-password</arg>
+ <arg>my-cluster-password</arg>
+ </args>
</configuration>
</execution>
<execution>
@@ -75,7 +81,13 @@ under the License.
<configuration>${basedir}/target/classes/activemq/server1</configuration>
<portOffset>1</portOffset>
<!-- this makes it easier in certain envs -->
- <javaOptions>-Djava.net.preferIPv4Stack=true</javaOptions>
+ <javaOptions>-Djava.net.preferIPv4Stack=true</javaOptions>
+ <args>
+ <arg>--cluster-user</arg>
+ <arg>my-cluster-user</arg>
+ <arg>--cluster-password</arg>
+ <arg>my-cluster-password</arg>
+ </args>
</configuration>
</execution>
<execution>
@@ -155,4 +167,4 @@ under the License.
</plugin>
</plugins>
</build>
-</project>
\ No newline at end of file
+</project>
diff --git a/examples/features/clustered/shared-storage-static-cluster/pom.xml
b/examples/features/clustered/shared-storage-static-cluster/pom.xml
index 88dfe450..4ce6ab4e 100644
--- a/examples/features/clustered/shared-storage-static-cluster/pom.xml
+++ b/examples/features/clustered/shared-storage-static-cluster/pom.xml
@@ -71,6 +71,10 @@ under the License.
<args>
<arg>--queues</arg>
<arg>exampleQueue</arg>
+ <arg>--cluster-user</arg>
+ <arg>my-cluster-user</arg>
+ <arg>--cluster-password</arg>
+ <arg>my-cluster-password</arg>
</args>
</configuration>
</execution>
@@ -92,6 +96,10 @@ under the License.
<args>
<arg>--queues</arg>
<arg>exampleQueue</arg>
+ <arg>--cluster-user</arg>
+ <arg>my-cluster-user</arg>
+ <arg>--cluster-password</arg>
+ <arg>my-cluster-password</arg>
</args>
</configuration>
</execution>
@@ -113,6 +121,10 @@ under the License.
<args>
<arg>--queues</arg>
<arg>exampleQueue</arg>
+ <arg>--cluster-user</arg>
+ <arg>my-cluster-user</arg>
+ <arg>--cluster-password</arg>
+ <arg>my-cluster-password</arg>
</args>
</configuration>
</execution>
@@ -145,4 +157,4 @@ under the License.
</plugin>
</plugins>
</build>
-</project>
\ No newline at end of file
+</project>
diff --git a/examples/features/ha/client-side-failoverlistener/pom.xml
b/examples/features/ha/client-side-failoverlistener/pom.xml
index 6f02a8c8..eb0b31d7 100644
--- a/examples/features/ha/client-side-failoverlistener/pom.xml
+++ b/examples/features/ha/client-side-failoverlistener/pom.xml
@@ -67,6 +67,12 @@ under the License.
<sharedStore>true</sharedStore>
<slave>false</slave>
<failoverOnShutdown>true</failoverOnShutdown>
+ <args>
+ <arg>--cluster-user</arg>
+ <arg>my-cluster-user</arg>
+ <arg>--cluster-password</arg>
+ <arg>my-cluster-password</arg>
+ </args>
</configuration>
</execution>
<execution>
@@ -82,6 +88,12 @@ under the License.
<sharedStore>true</sharedStore>
<slave>true</slave>
<portOffset>1</portOffset>
+ <args>
+ <arg>--cluster-user</arg>
+ <arg>my-cluster-user</arg>
+ <arg>--cluster-password</arg>
+ <arg>my-cluster-password</arg>
+ </args>
</configuration>
</execution>
<execution>
@@ -112,4 +124,4 @@ under the License.
</plugin>
</plugins>
</build>
-</project>
\ No newline at end of file
+</project>
diff --git a/examples/features/ha/multiple-failover-failback/pom.xml
b/examples/features/ha/multiple-failover-failback/pom.xml
index 7a0ad718..70488f6f 100644
--- a/examples/features/ha/multiple-failover-failback/pom.xml
+++ b/examples/features/ha/multiple-failover-failback/pom.xml
@@ -66,6 +66,12 @@ under the License.
<slave>false</slave>
<dataFolder>../data</dataFolder>
<failoverOnShutdown>true</failoverOnShutdown>
+ <args>
+ <arg>--cluster-user</arg>
+ <arg>my-cluster-user</arg>
+ <arg>--cluster-password</arg>
+ <arg>my-cluster-password</arg>
+ </args>
</configuration>
</execution>
<execution>
@@ -81,6 +87,12 @@ under the License.
<slave>true</slave>
<dataFolder>../data</dataFolder>
<failoverOnShutdown>true</failoverOnShutdown>
+ <args>
+ <arg>--cluster-user</arg>
+ <arg>my-cluster-user</arg>
+ <arg>--cluster-password</arg>
+ <arg>my-cluster-password</arg>
+ </args>
</configuration>
</execution>
<execution>
@@ -95,6 +107,12 @@ under the License.
<sharedStore>true</sharedStore>
<slave>true</slave>
<dataFolder>../data</dataFolder>
+ <args>
+ <arg>--cluster-user</arg>
+ <arg>my-cluster-user</arg>
+ <arg>--cluster-password</arg>
+ <arg>my-cluster-password</arg>
+ </args>
</configuration>
</execution>
<execution>
@@ -126,4 +144,4 @@ under the License.
</plugin>
</plugins>
</build>
-</project>
\ No newline at end of file
+</project>
diff --git a/examples/features/ha/multiple-failover/pom.xml
b/examples/features/ha/multiple-failover/pom.xml
index ec7ecf9b..bcc6ead0 100644
--- a/examples/features/ha/multiple-failover/pom.xml
+++ b/examples/features/ha/multiple-failover/pom.xml
@@ -66,6 +66,12 @@ under the License.
<slave>false</slave>
<dataFolder>../data</dataFolder>
<failoverOnShutdown>true</failoverOnShutdown>
+ <args>
+ <arg>--cluster-user</arg>
+ <arg>my-cluster-user</arg>
+ <arg>--cluster-password</arg>
+ <arg>my-cluster-password</arg>
+ </args>
</configuration>
</execution>
<execution>
@@ -81,6 +87,12 @@ under the License.
<slave>true</slave>
<dataFolder>../data</dataFolder>
<failoverOnShutdown>true</failoverOnShutdown>
+ <args>
+ <arg>--cluster-user</arg>
+ <arg>my-cluster-user</arg>
+ <arg>--cluster-password</arg>
+ <arg>my-cluster-password</arg>
+ </args>
</configuration>
</execution>
<execution>
@@ -95,6 +107,12 @@ under the License.
<sharedStore>true</sharedStore>
<slave>true</slave>
<dataFolder>../data</dataFolder>
+ <args>
+ <arg>--cluster-user</arg>
+ <arg>my-cluster-user</arg>
+ <arg>--cluster-password</arg>
+ <arg>my-cluster-password</arg>
+ </args>
</configuration>
</execution>
<execution>
@@ -126,4 +144,4 @@ under the License.
</plugin>
</plugins>
</build>
-</project>
\ No newline at end of file
+</project>
diff --git a/examples/features/ha/non-transaction-failover/pom.xml
b/examples/features/ha/non-transaction-failover/pom.xml
index 59408c0d..65599fdc 100644
--- a/examples/features/ha/non-transaction-failover/pom.xml
+++ b/examples/features/ha/non-transaction-failover/pom.xml
@@ -67,6 +67,12 @@ under the License.
<slave>false</slave>
<dataFolder>../data</dataFolder>
<failoverOnShutdown>true</failoverOnShutdown>
+ <args>
+ <arg>--cluster-user</arg>
+ <arg>my-cluster-user</arg>
+ <arg>--cluster-password</arg>
+ <arg>my-cluster-password</arg>
+ </args>
</configuration>
</execution>
<execution>
@@ -82,6 +88,12 @@ under the License.
<slave>true</slave>
<dataFolder>../data</dataFolder>
<failoverOnShutdown>true</failoverOnShutdown>
+ <args>
+ <arg>--cluster-user</arg>
+ <arg>my-cluster-user</arg>
+ <arg>--cluster-password</arg>
+ <arg>my-cluster-password</arg>
+ </args>
</configuration>
</execution>
<execution>
@@ -112,4 +124,4 @@ under the License.
</plugin>
</plugins>
</build>
-</project>
\ No newline at end of file
+</project>
diff --git a/examples/features/ha/stop-server-failover/pom.xml
b/examples/features/ha/stop-server-failover/pom.xml
index 7ef2bc9a..ea110bc7 100644
--- a/examples/features/ha/stop-server-failover/pom.xml
+++ b/examples/features/ha/stop-server-failover/pom.xml
@@ -62,6 +62,12 @@ under the License.
<slave>false</slave>
<dataFolder>../data</dataFolder>
<failoverOnShutdown>true</failoverOnShutdown>
+ <args>
+ <arg>--cluster-user</arg>
+ <arg>my-cluster-user</arg>
+ <arg>--cluster-password</arg>
+ <arg>my-cluster-password</arg>
+ </args>
</configuration>
</execution>
<execution>
@@ -77,6 +83,12 @@ under the License.
<slave>true</slave>
<dataFolder>../data</dataFolder>
<failoverOnShutdown>true</failoverOnShutdown>
+ <args>
+ <arg>--cluster-user</arg>
+ <arg>my-cluster-user</arg>
+ <arg>--cluster-password</arg>
+ <arg>my-cluster-password</arg>
+ </args>
</configuration>
</execution>
<execution>
@@ -155,4 +167,4 @@ under the License.
</plugin>
</plugins>
</build>
-</project>
\ No newline at end of file
+</project>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]