activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From clebertsuco...@apache.org
Subject [04/11] activemq-6 git commit: add flag to broker plugin to skip starting.
Date Wed, 04 Mar 2015 15:02:08 GMT
add flag to broker plugin to skip starting.

Also added an example bootstrap and updated the examples so this would work.


Project: http://git-wip-us.apache.org/repos/asf/activemq-6/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq-6/commit/25f3343b
Tree: http://git-wip-us.apache.org/repos/asf/activemq-6/tree/25f3343b
Diff: http://git-wip-us.apache.org/repos/asf/activemq-6/diff/25f3343b

Branch: refs/heads/master
Commit: 25f3343ba51ff647aa215448c1ae5a461d103917
Parents: 8041f1f
Author: Andy Taylor <andytaylor@apache.org>
Authored: Tue Mar 3 16:35:24 2015 +0000
Committer: Andy Taylor <andytaylor@apache.org>
Committed: Wed Mar 4 11:48:46 2015 +0000

----------------------------------------------------------------------
 .../activemq/maven/ActiveMQStartPlugin.java     |  8 +++++
 .../activemq/maven/ActiveMQStopPlugin.java      |  5 +++
 .../activemq/src/main/resources/README.html     |  8 ++---
 .../resources/config/examples/bootstrap.xml     | 33 ++++++++++++++++++++
 .../src/main/resources/examples/index.html      | 10 ++++++
 examples/jms/aerogear/pom.xml                   |  2 +-
 .../activemq/server0/activemq-configuration.xml |  8 ++---
 examples/jms/applet/pom.xml                     |  2 +-
 .../activemq/server0/activemq-configuration.xml |  8 ++---
 examples/jms/bridge/pom.xml                     |  2 +-
 .../activemq/server0/activemq-configuration.xml |  8 ++---
 .../activemq/server1/activemq-configuration.xml |  8 ++---
 examples/jms/browser/pom.xml                    |  2 +-
 .../activemq/server0/activemq-configuration.xml |  8 ++---
 examples/jms/client-kickoff/pom.xml             |  2 +-
 .../activemq/server0/activemq-configuration.xml |  8 ++---
 .../jms/client-side-failoverlistener/pom.xml    |  6 ++--
 .../activemq/server0/activemq-configuration.xml |  8 ++---
 .../activemq/server1/activemq-configuration.xml |  8 ++---
 examples/jms/client-side-load-balancing/pom.xml |  8 ++---
 .../activemq/server0/activemq-configuration.xml |  8 ++---
 .../activemq/server1/activemq-configuration.xml |  8 ++---
 .../activemq/server2/activemq-configuration.xml |  8 ++---
 .../jms/clustered-durable-subscription/pom.xml  |  6 ++--
 .../activemq/server0/activemq-configuration.xml |  8 ++---
 .../activemq/server1/activemq-configuration.xml |  8 ++---
 examples/jms/clustered-grouping/pom.xml         |  8 ++---
 .../activemq/server0/activemq-configuration.xml |  8 ++---
 .../activemq/server1/activemq-configuration.xml |  8 ++---
 .../activemq/server2/activemq-configuration.xml |  8 ++---
 examples/jms/clustered-static-discovery/pom.xml |  2 +-
 .../activemq/server0/activemq-configuration.xml |  8 ++---
 .../activemq/server1/activemq-configuration.xml |  8 ++---
 .../activemq/server2/activemq-configuration.xml |  8 ++---
 .../activemq/server3/activemq-configuration.xml |  8 ++---
 examples/jms/clustered-static-oneway/pom.xml    |  2 +-
 .../activemq/server0/activemq-configuration.xml |  8 ++---
 .../activemq/server1/activemq-configuration.xml |  8 ++---
 .../activemq/server2/activemq-configuration.xml |  8 ++---
 examples/jms/clustered-topic/pom.xml            |  6 ++--
 .../activemq/server0/activemq-configuration.xml |  8 ++---
 .../activemq/server1/activemq-configuration.xml |  8 ++---
 examples/jms/consumer-rate-limit/pom.xml        |  2 +-
 .../activemq/server0/activemq-configuration.xml |  8 ++---
 examples/jms/dead-letter/pom.xml                |  2 +-
 .../activemq/server0/activemq-configuration.xml |  8 ++---
 examples/jms/delayed-redelivery/pom.xml         |  2 +-
 .../activemq/server0/activemq-configuration.xml |  8 ++---
 examples/jms/divert/pom.xml                     |  2 +-
 .../activemq/server0/activemq-configuration.xml |  8 ++---
 .../activemq/server1/activemq-configuration.xml |  8 ++---
 examples/jms/durable-subscription/pom.xml       |  2 +-
 .../activemq/server0/activemq-configuration.xml |  8 ++---
 examples/jms/embedded/pom.xml                   |  2 +-
 examples/jms/expiry/pom.xml                     |  2 +-
 .../activemq/server0/activemq-configuration.xml |  8 ++---
 examples/jms/http-transport/pom.xml             |  4 +--
 .../activemq/server0/activemq-configuration.xml |  8 ++---
 .../jms/instantiate-connection-factory/pom.xml  |  2 +-
 .../activemq/server0/activemq-configuration.xml |  8 ++---
 examples/jms/interceptor/pom.xml                |  2 +-
 .../activemq/server0/activemq-configuration.xml |  8 ++---
 examples/jms/jms-auto-closeable/pom.xml         |  2 +-
 .../activemq/server0/activemq-configuration.xml |  8 ++---
 examples/jms/jms-bridge/pom.xml                 |  2 +-
 .../activemq/server0/activemq-configuration.xml |  8 ++---
 .../activemq/server1/activemq-configuration.xml |  8 ++---
 examples/jms/jms-completion-listener/pom.xml    |  2 +-
 .../activemq/server0/activemq-configuration.xml |  8 ++---
 examples/jms/jms-context/pom.xml                |  2 +-
 .../activemq/server0/activemq-configuration.xml |  8 ++---
 examples/jms/jms-shared-consumer/pom.xml        |  2 +-
 .../activemq/server0/activemq-configuration.xml |  8 ++---
 examples/jms/jmx/pom.xml                        |  2 +-
 .../activemq/server0/activemq-configuration.xml |  8 ++---
 examples/jms/large-message/pom.xml              |  2 +-
 .../activemq/server0/activemq-configuration.xml |  8 ++---
 examples/jms/last-value-queue/pom.xml           |  2 +-
 .../activemq/server0/activemq-configuration.xml |  8 ++---
 examples/jms/management-notifications/pom.xml   |  2 +-
 .../activemq/server0/activemq-configuration.xml |  8 ++---
 examples/jms/management/pom.xml                 |  2 +-
 .../activemq/server0/activemq-configuration.xml |  8 ++---
 examples/jms/message-counters/pom.xml           |  2 +-
 .../activemq/server0/activemq-configuration.xml |  8 ++---
 examples/jms/message-group/pom.xml              |  2 +-
 .../activemq/server0/activemq-configuration.xml |  8 ++---
 examples/jms/message-group2/pom.xml             |  2 +-
 .../activemq/server0/activemq-configuration.xml |  8 ++---
 examples/jms/message-priority/pom.xml           |  2 +-
 .../activemq/server0/activemq-configuration.xml |  8 ++---
 examples/jms/multiple-failover-failback/pom.xml |  8 ++---
 .../activemq/server0/activemq-configuration.xml |  8 ++---
 .../activemq/server1/activemq-configuration.xml |  8 ++---
 .../activemq/server2/activemq-configuration.xml |  8 ++---
 examples/jms/multiple-failover/pom.xml          |  8 ++---
 .../activemq/server0/activemq-configuration.xml |  8 ++---
 .../activemq/server1/activemq-configuration.xml |  8 ++---
 .../activemq/server2/activemq-configuration.xml |  8 ++---
 examples/jms/no-consumer-buffering/pom.xml      |  2 +-
 .../activemq/server0/activemq-configuration.xml |  8 ++---
 examples/jms/non-transaction-failover/pom.xml   |  4 +--
 examples/jms/openwire/pom.xml                   |  2 +-
 .../activemq/server0/activemq-configuration.xml |  8 ++---
 examples/jms/paging/pom.xml                     |  2 +-
 .../activemq/server0/activemq-configuration.xml |  8 ++---
 examples/jms/perf/pom.xml                       |  2 +-
 examples/jms/pre-acknowledge/pom.xml            |  2 +-
 .../activemq/server0/activemq-configuration.xml |  8 ++---
 examples/jms/producer-rate-limit/pom.xml        |  2 +-
 .../activemq/server0/activemq-configuration.xml |  8 ++---
 examples/jms/proton-cpp/pom.xml                 |  2 +-
 .../activemq/server0/activemq-configuration.xml |  8 ++---
 examples/jms/proton-j/pom.xml                   |  2 +-
 .../activemq/server0/activemq-configuration.xml |  8 ++---
 examples/jms/proton-ruby/pom.xml                |  2 +-
 .../activemq/server0/activemq-configuration.xml |  8 ++---
 .../jms/queue-message-redistribution/pom.xml    |  6 ++--
 .../activemq/server0/activemq-configuration.xml |  8 ++---
 .../activemq/server1/activemq-configuration.xml |  8 ++---
 examples/jms/queue-requestor/pom.xml            |  2 +-
 .../activemq/server0/activemq-configuration.xml |  8 ++---
 examples/jms/queue-selector/pom.xml             |  2 +-
 .../activemq/server0/activemq-configuration.xml |  8 ++---
 examples/jms/queue/pom.xml                      |  2 +-
 .../activemq/server0/activemq-configuration.xml |  8 ++---
 examples/jms/reattach-node/pom.xml              |  2 +-
 .../activemq/server0/activemq-configuration.xml |  8 ++---
 examples/jms/replicated-failback-static/pom.xml |  6 ++--
 .../activemq/server0/activemq-configuration.xml |  8 ++---
 .../activemq/server1/activemq-configuration.xml |  8 ++---
 examples/jms/replicated-failback/pom.xml        |  6 ++--
 .../activemq/server0/activemq-configuration.xml |  8 ++---
 .../activemq/server1/activemq-configuration.xml |  8 ++---
 .../jms/replicated-multiple-failover/pom.xml    |  8 ++---
 .../activemq/server0/activemq-configuration.xml |  8 ++---
 .../activemq/server1/activemq-configuration.xml |  8 ++---
 .../activemq/server2/activemq-configuration.xml |  8 ++---
 .../jms/replicated-transaction-failover/pom.xml |  6 ++--
 .../activemq/server0/activemq-configuration.xml |  8 ++---
 .../activemq/server1/activemq-configuration.xml |  8 ++---
 examples/jms/request-reply/pom.xml              |  2 +-
 .../activemq/server0/activemq-configuration.xml |  8 ++---
 examples/jms/scheduled-message/pom.xml          |  2 +-
 .../activemq/server0/activemq-configuration.xml |  8 ++---
 examples/jms/security/pom.xml                   |  2 +-
 .../activemq/server0/activemq-configuration.xml |  8 ++---
 examples/jms/send-acknowledgements/pom.xml      |  2 +-
 .../activemq/server0/activemq-configuration.xml |  8 ++---
 examples/jms/ssl-enabled/pom.xml                |  2 +-
 .../activemq/server0/activemq-configuration.xml |  8 ++---
 examples/jms/static-selector-jms/pom.xml        |  2 +-
 .../activemq/server0/activemq-configuration.xml |  8 ++---
 examples/jms/static-selector/pom.xml            |  2 +-
 .../activemq/server0/activemq-configuration.xml |  8 ++---
 examples/jms/stomp-websockets/pom.xml           |  2 +-
 .../activemq/server0/activemq-configuration.xml |  8 ++---
 examples/jms/stomp/pom.xml                      |  2 +-
 .../activemq/server0/activemq-configuration.xml |  8 ++---
 examples/jms/stomp1.1/pom.xml                   |  2 +-
 .../activemq/server0/activemq-configuration.xml |  8 ++---
 examples/jms/stomp1.2/pom.xml                   |  2 +-
 .../activemq/server0/activemq-configuration.xml |  8 ++---
 examples/jms/stop-server-failover/pom.xml       |  6 ++--
 .../activemq/server0/activemq-configuration.xml |  8 ++---
 .../activemq/server1/activemq-configuration.xml |  8 ++---
 examples/jms/symmetric-cluster/pom.xml          | 14 ++++-----
 .../activemq/server0/activemq-configuration.xml |  8 ++---
 .../activemq/server1/activemq-configuration.xml |  8 ++---
 .../activemq/server2/activemq-configuration.xml |  8 ++---
 .../activemq/server3/activemq-configuration.xml |  8 ++---
 .../activemq/server4/activemq-configuration.xml |  8 ++---
 .../activemq/server5/activemq-configuration.xml |  8 ++---
 examples/jms/temp-queue/pom.xml                 |  2 +-
 .../activemq/server0/activemq-configuration.xml |  8 ++---
 examples/jms/topic-hierarchies/pom.xml          |  2 +-
 .../activemq/server0/activemq-configuration.xml |  8 ++---
 examples/jms/topic-selector-example1/pom.xml    |  2 +-
 .../activemq/server0/activemq-configuration.xml |  8 ++---
 examples/jms/topic-selector-example2/pom.xml    |  2 +-
 .../activemq/server0/activemq-configuration.xml |  8 ++---
 examples/jms/topic/pom.xml                      |  2 +-
 .../activemq/server0/activemq-configuration.xml |  8 ++---
 examples/jms/transaction-failover/pom.xml       |  6 ++--
 .../activemq/server0/activemq-configuration.xml |  8 ++---
 .../activemq/server1/activemq-configuration.xml |  8 ++---
 examples/jms/transactional/pom.xml              |  2 +-
 .../activemq/server0/activemq-configuration.xml |  8 ++---
 examples/jms/xa-heuristic/pom.xml               |  2 +-
 .../activemq/server0/activemq-configuration.xml |  8 ++---
 examples/jms/xa-receive/pom.xml                 |  2 +-
 .../activemq/server0/activemq-configuration.xml |  8 ++---
 examples/jms/xa-send/pom.xml                    |  2 +-
 .../activemq/server0/activemq-configuration.xml |  8 ++---
 194 files changed, 617 insertions(+), 561 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq-6/blob/25f3343b/activemq-maven-plugin/src/main/java/org/apache/activemq/maven/ActiveMQStartPlugin.java
----------------------------------------------------------------------
diff --git a/activemq-maven-plugin/src/main/java/org/apache/activemq/maven/ActiveMQStartPlugin.java b/activemq-maven-plugin/src/main/java/org/apache/activemq/maven/ActiveMQStartPlugin.java
index 5bc91aa..4966253 100644
--- a/activemq-maven-plugin/src/main/java/org/apache/activemq/maven/ActiveMQStartPlugin.java
+++ b/activemq-maven-plugin/src/main/java/org/apache/activemq/maven/ActiveMQStartPlugin.java
@@ -46,6 +46,8 @@ import org.codehaus.classworlds.ClassWorld;
 public class ActiveMQStartPlugin extends AbstractMojo
 
 {
+   static final String SKIPBROKERSTART = "skipBrokerStart";
+
    /**
     * The plugin descriptor
     */
@@ -99,6 +101,12 @@ public class ActiveMQStartPlugin extends AbstractMojo
 
    public void execute() throws MojoExecutionException, MojoFailureException
    {
+      String property = System.getProperty(SKIPBROKERSTART);
+      if (property != null)
+      {
+         getLog().info("skipping Broker Start");
+         return;
+      }
       if (testClusterManager)
       {
          try

http://git-wip-us.apache.org/repos/asf/activemq-6/blob/25f3343b/activemq-maven-plugin/src/main/java/org/apache/activemq/maven/ActiveMQStopPlugin.java
----------------------------------------------------------------------
diff --git a/activemq-maven-plugin/src/main/java/org/apache/activemq/maven/ActiveMQStopPlugin.java b/activemq-maven-plugin/src/main/java/org/apache/activemq/maven/ActiveMQStopPlugin.java
index b6b374b..6d8cc3e 100644
--- a/activemq-maven-plugin/src/main/java/org/apache/activemq/maven/ActiveMQStopPlugin.java
+++ b/activemq-maven-plugin/src/main/java/org/apache/activemq/maven/ActiveMQStopPlugin.java
@@ -43,6 +43,11 @@ public class ActiveMQStopPlugin extends AbstractMojo
 
    public void execute() throws MojoExecutionException, MojoFailureException
    {
+      String property = System.getProperty(ActiveMQStartPlugin.SKIPBROKERSTART);
+      if (property != null)
+      {
+         return;
+      }
       try
       {
          String dirName = configurationDir != null ? configurationDir : ".";

http://git-wip-us.apache.org/repos/asf/activemq-6/blob/25f3343b/distribution/activemq/src/main/resources/README.html
----------------------------------------------------------------------
diff --git a/distribution/activemq/src/main/resources/README.html b/distribution/activemq/src/main/resources/README.html
index 3040d1a..8e41d4f 100644
--- a/distribution/activemq/src/main/resources/README.html
+++ b/distribution/activemq/src/main/resources/README.html
@@ -36,15 +36,15 @@ under the License.
 
 To run the ActiveMQ broker with the default configuration, run the command shown below from the "bin" directory.</br></br>
 
-$ activemq run</br></br>
+$ ./activemq run</br></br>
 
 To specify a broker configuration file:</br></br>
 
-$ activemq run --config scheme:location</br></br>
+$ ./activemq run --config scheme:location</br></br>
 
 e.g.</br></br>
 
-$ activemq run --config xml:/home/activemq/bootstrap.xml</br></br>
+$ ./activemq run --config xml:/home/activemq/bootstrap.xml</br></br>
 
 The distribution ships with a number of example configurations that can be used to get started.  You can find these under the "config" directory.</br></br>
 
@@ -53,7 +53,7 @@ It is possible to configure run time paramters in the activemq.conf (activemq.co
 
 To stop the broker please use the activemq script:</br></br>
 
-$ activemq stop</br></br>
+$ ./activemq stop</br></br>
 
 <h2>Documentation</h2>
 

http://git-wip-us.apache.org/repos/asf/activemq-6/blob/25f3343b/distribution/activemq/src/main/resources/config/examples/bootstrap.xml
----------------------------------------------------------------------
diff --git a/distribution/activemq/src/main/resources/config/examples/bootstrap.xml b/distribution/activemq/src/main/resources/config/examples/bootstrap.xml
new file mode 100644
index 0000000..a8762d1
--- /dev/null
+++ b/distribution/activemq/src/main/resources/config/examples/bootstrap.xml
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one or more
+  ~ contributor license agreements. See the NOTICE file distributed with
+  ~ this work for additional information regarding copyright ownership.
+  ~ The ASF licenses this file to You under the Apache License, Version 2.0
+  ~ (the "License"); you may not use this file except in compliance with
+  ~ the License. You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing, software
+  ~ distributed under the License is distributed on an "AS IS" BASIS,
+  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  ~ See the License for the specific language governing permissions and
+  ~ limitations under the License.
+  -->
+
+<broker xmlns="http://activemq.org/schema">
+
+   <basic-security>
+      <users>file:${activemq.home}/examples/jms/queue/src/main/resources/activemq/server0/activemq-users.properties</users>
+      <roles>file:${activemq.home}/examples/jms/queue/src/main/resources/activemq/server0/activemq-roles.properties</roles>
+      <default-user>guest</default-user>
+   </basic-security>
+
+   <server configuration="file:${activemq.home}/examples/jms/queue/src/main/resources/activemq/server0/activemq-configuration.xml"/>
+
+   <web bind="http://localhost:8161" path="web">
+       <app url="jolokia" war="jolokia-war-1.2.3.war"/>
+   </web>
+
+</broker>

http://git-wip-us.apache.org/repos/asf/activemq-6/blob/25f3343b/distribution/activemq/src/main/resources/examples/index.html
----------------------------------------------------------------------
diff --git a/distribution/activemq/src/main/resources/examples/index.html b/distribution/activemq/src/main/resources/examples/index.html
index 7269c41..a33ca69 100644
--- a/distribution/activemq/src/main/resources/examples/index.html
+++ b/distribution/activemq/src/main/resources/examples/index.html
@@ -19,6 +19,16 @@ under the License.
 
 <h1>Apache ActiveMQ Examples</h1>
 <h2>JMS Examples</h2>
+<p>Each example has its own instructions as to how they can be run, but for most of them it is as simple as running
+    <code>mvn verify</code> from the example directory. This will start a broker with the correct configuration, run the
+example and then stop the server so you will need to make sure there is not a broker already running</p>
+<p>If you want to run an example against an already running broker then firstly you will need to start the broker to use
+the examples configuration. An example configuration is provided which by default to run the queue example, to run this
+use the command <code>./activemq run --config xml:../config/examples/bootstrap.xml</code>. Once the server has started run the
+example with the command <code>mvn -DskipBrokerStart verify</code>. If you want to run a different example simply edit the
+<code>config/examples/bootstrap.xml</code> and change the paths. By default the broker will use the <code>data/server0</code>
+directory for the journal, to avoid problems it is best to delete this directory between running different examples or
+set the <code>ACTIVEMQ_DATA_DIR</code> environment property in <code>activemq.conf</code>to use a different location</p>
    <ol>
        <li><a href="./jms/aerogear/readme.html">AeroGear Example</a></li>
        <li><a href="./jms/applet/readme.html">Applet Example</a></li>

http://git-wip-us.apache.org/repos/asf/activemq-6/blob/25f3343b/examples/jms/aerogear/pom.xml
----------------------------------------------------------------------
diff --git a/examples/jms/aerogear/pom.xml b/examples/jms/aerogear/pom.xml
index 2f574b6..c9cf4c9 100644
--- a/examples/jms/aerogear/pom.xml
+++ b/examples/jms/aerogear/pom.xml
@@ -64,7 +64,7 @@ under the License.
                   <configuration>
                      <systemProperties>
                         <property>
-                           <name>build.directory</name>
+                           <name>data.dir</name>
                            <value>${basedir}/target/</value>
                         </property>
                         <property>

http://git-wip-us.apache.org/repos/asf/activemq-6/blob/25f3343b/examples/jms/aerogear/src/main/resources/activemq/server0/activemq-configuration.xml
----------------------------------------------------------------------
diff --git a/examples/jms/aerogear/src/main/resources/activemq/server0/activemq-configuration.xml b/examples/jms/aerogear/src/main/resources/activemq/server0/activemq-configuration.xml
index 5853529..a48e675 100644
--- a/examples/jms/aerogear/src/main/resources/activemq/server0/activemq-configuration.xml
+++ b/examples/jms/aerogear/src/main/resources/activemq/server0/activemq-configuration.xml
@@ -29,13 +29,13 @@ under the License.
 
    <core xmlns="urn:activemq:core">
 
-      <bindings-directory>${build.directory}/server0/data/messaging/bindings</bindings-directory>
+      <bindings-directory>${data.dir}/server0/data/messaging/bindings</bindings-directory>
 
-      <journal-directory>${build.directory}/server0/data/messaging/journal</journal-directory>
+      <journal-directory>${data.dir}/server0/data/messaging/journal</journal-directory>
 
-      <large-messages-directory>${build.directory}/server0/data/messaging/largemessages</large-messages-directory>
+      <large-messages-directory>${data.dir}/server0/data/messaging/largemessages</large-messages-directory>
 
-      <paging-directory>${build.directory}/server0/data/messaging/paging</paging-directory>
+      <paging-directory>${data.dir}/server0/data/messaging/paging</paging-directory>
 
       <!-- Acceptors -->
       <acceptors>

http://git-wip-us.apache.org/repos/asf/activemq-6/blob/25f3343b/examples/jms/applet/pom.xml
----------------------------------------------------------------------
diff --git a/examples/jms/applet/pom.xml b/examples/jms/applet/pom.xml
index 0406479..c09ec62 100644
--- a/examples/jms/applet/pom.xml
+++ b/examples/jms/applet/pom.xml
@@ -132,7 +132,7 @@ under the License.
                <waitOnStart>false</waitOnStart>
                <systemProperties>
                   <property>
-                     <name>build.directory</name>
+                     <name>data.dir</name>
                      <value>${basedir}/target/</value>
                   </property>
                </systemProperties>

http://git-wip-us.apache.org/repos/asf/activemq-6/blob/25f3343b/examples/jms/applet/src/main/resources/activemq/server0/activemq-configuration.xml
----------------------------------------------------------------------
diff --git a/examples/jms/applet/src/main/resources/activemq/server0/activemq-configuration.xml b/examples/jms/applet/src/main/resources/activemq/server0/activemq-configuration.xml
index d885047..74148cf 100644
--- a/examples/jms/applet/src/main/resources/activemq/server0/activemq-configuration.xml
+++ b/examples/jms/applet/src/main/resources/activemq/server0/activemq-configuration.xml
@@ -29,13 +29,13 @@ under the License.
 
    <core xmlns="urn:activemq:core">
 
-      <bindings-directory>${build.directory}/server0/data/messaging/bindings</bindings-directory>
+      <bindings-directory>${data.dir}/server0/data/messaging/bindings</bindings-directory>
 
-      <journal-directory>${build.directory}/server0/data/messaging/journal</journal-directory>
+      <journal-directory>${data.dir}/server0/data/messaging/journal</journal-directory>
 
-      <large-messages-directory>${build.directory}/server0/data/messaging/largemessages</large-messages-directory>
+      <large-messages-directory>${data.dir}/server0/data/messaging/largemessages</large-messages-directory>
 
-      <paging-directory>${build.directory}/server0/data/messaging/paging</paging-directory>
+      <paging-directory>${data.dir}/server0/data/messaging/paging</paging-directory>
 
       <!-- Acceptors -->
       <acceptors>

http://git-wip-us.apache.org/repos/asf/activemq-6/blob/25f3343b/examples/jms/bridge/pom.xml
----------------------------------------------------------------------
diff --git a/examples/jms/bridge/pom.xml b/examples/jms/bridge/pom.xml
index d4beaa6..d5cb9ea 100644
--- a/examples/jms/bridge/pom.xml
+++ b/examples/jms/bridge/pom.xml
@@ -153,7 +153,7 @@ under the License.
                <waitOnStart>false</waitOnStart>
                <systemProperties>
                   <property>
-                     <name>build.directory</name>
+                     <name>data.dir</name>
                      <value>${basedir}/target/</value>
                   </property>
                </systemProperties>

http://git-wip-us.apache.org/repos/asf/activemq-6/blob/25f3343b/examples/jms/bridge/src/main/resources/activemq/server0/activemq-configuration.xml
----------------------------------------------------------------------
diff --git a/examples/jms/bridge/src/main/resources/activemq/server0/activemq-configuration.xml b/examples/jms/bridge/src/main/resources/activemq/server0/activemq-configuration.xml
index 9f06f6c..248d875 100644
--- a/examples/jms/bridge/src/main/resources/activemq/server0/activemq-configuration.xml
+++ b/examples/jms/bridge/src/main/resources/activemq/server0/activemq-configuration.xml
@@ -28,13 +28,13 @@ under the License.
 
    <core xmlns="urn:activemq:core">
 
-      <bindings-directory>${build.directory}/server0/data/messaging/bindings</bindings-directory>
+      <bindings-directory>${data.dir}/server0/data/messaging/bindings</bindings-directory>
 
-      <journal-directory>${build.directory}/server0/data/messaging/journal</journal-directory>
+      <journal-directory>${data.dir}/server0/data/messaging/journal</journal-directory>
 
-      <large-messages-directory>${build.directory}/server0/data/messaging/largemessages</large-messages-directory>
+      <large-messages-directory>${data.dir}/server0/data/messaging/largemessages</large-messages-directory>
 
-      <paging-directory>${build.directory}/server0/data/messaging/paging</paging-directory>
+      <paging-directory>${data.dir}/server0/data/messaging/paging</paging-directory>
 
       <!-- Connectors -->
       <connectors>

http://git-wip-us.apache.org/repos/asf/activemq-6/blob/25f3343b/examples/jms/bridge/src/main/resources/activemq/server1/activemq-configuration.xml
----------------------------------------------------------------------
diff --git a/examples/jms/bridge/src/main/resources/activemq/server1/activemq-configuration.xml b/examples/jms/bridge/src/main/resources/activemq/server1/activemq-configuration.xml
index 85373cf..ae4375d 100644
--- a/examples/jms/bridge/src/main/resources/activemq/server1/activemq-configuration.xml
+++ b/examples/jms/bridge/src/main/resources/activemq/server1/activemq-configuration.xml
@@ -28,13 +28,13 @@ under the License.
    </jms>
    <core xmlns="urn:activemq:core">
 
-      <bindings-directory>${build.directory}/server1/data/messaging/bindings</bindings-directory>
+      <bindings-directory>${data.dir}/server1/data/messaging/bindings</bindings-directory>
 
-      <journal-directory>${build.directory}/server1/data/messaging/journal</journal-directory>
+      <journal-directory>${data.dir}/server1/data/messaging/journal</journal-directory>
 
-      <large-messages-directory>${build.directory}/server1/data/messaging/largemessages</large-messages-directory>
+      <large-messages-directory>${data.dir}/server1/data/messaging/largemessages</large-messages-directory>
 
-      <paging-directory>${build.directory}/server1/data/messaging/paging</paging-directory>
+      <paging-directory>${data.dir}/server1/data/messaging/paging</paging-directory>
 
       <!-- Acceptors -->
       <acceptors>

http://git-wip-us.apache.org/repos/asf/activemq-6/blob/25f3343b/examples/jms/browser/pom.xml
----------------------------------------------------------------------
diff --git a/examples/jms/browser/pom.xml b/examples/jms/browser/pom.xml
index 50348ed..51892e0 100644
--- a/examples/jms/browser/pom.xml
+++ b/examples/jms/browser/pom.xml
@@ -117,7 +117,7 @@ under the License.
                <configurationDir>${basedir}/target/classes/activemq/server0</configurationDir>
                <systemProperties>
                   <property>
-                     <name>build.directory</name>
+                     <name>data.dir</name>
                      <value>${basedir}/target/</value>
                   </property>
                </systemProperties>

http://git-wip-us.apache.org/repos/asf/activemq-6/blob/25f3343b/examples/jms/browser/src/main/resources/activemq/server0/activemq-configuration.xml
----------------------------------------------------------------------
diff --git a/examples/jms/browser/src/main/resources/activemq/server0/activemq-configuration.xml b/examples/jms/browser/src/main/resources/activemq/server0/activemq-configuration.xml
index 68a6041..a92fa6c 100644
--- a/examples/jms/browser/src/main/resources/activemq/server0/activemq-configuration.xml
+++ b/examples/jms/browser/src/main/resources/activemq/server0/activemq-configuration.xml
@@ -29,13 +29,13 @@ under the License.
 
    <core xmlns="urn:activemq:core">
 
-      <bindings-directory>${build.directory}/server0/data/messaging/bindings</bindings-directory>
+      <bindings-directory>${data.dir}/server0/data/messaging/bindings</bindings-directory>
 
-      <journal-directory>${build.directory}/server0/data/messaging/journal</journal-directory>
+      <journal-directory>${data.dir}/server0/data/messaging/journal</journal-directory>
 
-      <large-messages-directory>${build.directory}/server0/data/messaging/largemessages</large-messages-directory>
+      <large-messages-directory>${data.dir}/server0/data/messaging/largemessages</large-messages-directory>
 
-      <paging-directory>${build.directory}/server0/data/messaging/paging</paging-directory>
+      <paging-directory>${data.dir}/server0/data/messaging/paging</paging-directory>
 
       <!-- Acceptors -->
       <acceptors>

http://git-wip-us.apache.org/repos/asf/activemq-6/blob/25f3343b/examples/jms/client-kickoff/pom.xml
----------------------------------------------------------------------
diff --git a/examples/jms/client-kickoff/pom.xml b/examples/jms/client-kickoff/pom.xml
index 250a092..442d88a 100644
--- a/examples/jms/client-kickoff/pom.xml
+++ b/examples/jms/client-kickoff/pom.xml
@@ -65,7 +65,7 @@ under the License.
                      <fork>true</fork>
                      <systemProperties>
                         <property>
-                           <name>build.directory</name>
+                           <name>data.dir</name>
                            <value>${basedir}/target/</value>
                         </property>
                         <property>

http://git-wip-us.apache.org/repos/asf/activemq-6/blob/25f3343b/examples/jms/client-kickoff/src/main/resources/activemq/server0/activemq-configuration.xml
----------------------------------------------------------------------
diff --git a/examples/jms/client-kickoff/src/main/resources/activemq/server0/activemq-configuration.xml b/examples/jms/client-kickoff/src/main/resources/activemq/server0/activemq-configuration.xml
index 7b35ae7..337e434 100644
--- a/examples/jms/client-kickoff/src/main/resources/activemq/server0/activemq-configuration.xml
+++ b/examples/jms/client-kickoff/src/main/resources/activemq/server0/activemq-configuration.xml
@@ -27,13 +27,13 @@ under the License.
 
    <core xmlns="urn:activemq:core">
 
-      <bindings-directory>${build.directory}/server0/data/messaging/bindings</bindings-directory>
+      <bindings-directory>${data.dir}/server0/data/messaging/bindings</bindings-directory>
 
-      <journal-directory>${build.directory}/server0/data/messaging/journal</journal-directory>
+      <journal-directory>${data.dir}/server0/data/messaging/journal</journal-directory>
 
-      <large-messages-directory>${build.directory}/server0/data/messaging/largemessages</large-messages-directory>
+      <large-messages-directory>${data.dir}/server0/data/messaging/largemessages</large-messages-directory>
 
-      <paging-directory>${build.directory}/server0/data/messaging/paging</paging-directory>
+      <paging-directory>${data.dir}/server0/data/messaging/paging</paging-directory>
 
       <!-- true to expose ActiveMQ resources through JMX -->
       <jmx-management-enabled>true</jmx-management-enabled>

http://git-wip-us.apache.org/repos/asf/activemq-6/blob/25f3343b/examples/jms/client-side-failoverlistener/pom.xml
----------------------------------------------------------------------
diff --git a/examples/jms/client-side-failoverlistener/pom.xml b/examples/jms/client-side-failoverlistener/pom.xml
index 1325fb6..2e116e9 100644
--- a/examples/jms/client-side-failoverlistener/pom.xml
+++ b/examples/jms/client-side-failoverlistener/pom.xml
@@ -59,7 +59,7 @@ under the License.
                      <configurationDir>${basedir}/target/classes/activemq/server0</configurationDir>
                      <systemProperties>
                         <property>
-                           <name>build.directory</name>
+                           <name>data.dir</name>
                            <value>${basedir}/target/</value>
                         </property>
                         <property>
@@ -79,7 +79,7 @@ under the License.
                      <fork>true</fork>
                      <systemProperties>
                         <property>
-                           <name>build.directory</name>
+                           <name>data.dir</name>
                            <value>${basedir}/target/</value>
                         </property>
                         <property>
@@ -165,7 +165,7 @@ under the License.
                <waitOnStart>false</waitOnStart>
                <systemProperties>
                   <property>
-                     <name>build.directory</name>
+                     <name>data.dir</name>
                      <value>${basedir}/target/</value>
                   </property>
                </systemProperties>

http://git-wip-us.apache.org/repos/asf/activemq-6/blob/25f3343b/examples/jms/client-side-failoverlistener/src/main/resources/activemq/server0/activemq-configuration.xml
----------------------------------------------------------------------
diff --git a/examples/jms/client-side-failoverlistener/src/main/resources/activemq/server0/activemq-configuration.xml b/examples/jms/client-side-failoverlistener/src/main/resources/activemq/server0/activemq-configuration.xml
index 5b45f63..ace0831 100644
--- a/examples/jms/client-side-failoverlistener/src/main/resources/activemq/server0/activemq-configuration.xml
+++ b/examples/jms/client-side-failoverlistener/src/main/resources/activemq/server0/activemq-configuration.xml
@@ -28,13 +28,13 @@ under the License.
 
    <core xmlns="urn:activemq:core">
 
-      <bindings-directory>${build.directory}/server0/data/messaging/bindings</bindings-directory>
+      <bindings-directory>${data.dir}/server0/data/messaging/bindings</bindings-directory>
 
-      <journal-directory>${build.directory}/server0/data/messaging/journal</journal-directory>
+      <journal-directory>${data.dir}/server0/data/messaging/journal</journal-directory>
 
-      <large-messages-directory>${build.directory}/server0/data/messaging/largemessages</large-messages-directory>
+      <large-messages-directory>${data.dir}/server0/data/messaging/largemessages</large-messages-directory>
 
-      <paging-directory>${build.directory}/server0/data/messaging/paging</paging-directory>
+      <paging-directory>${data.dir}/server0/data/messaging/paging</paging-directory>
 
       <ha-policy>
          <shared-store>

http://git-wip-us.apache.org/repos/asf/activemq-6/blob/25f3343b/examples/jms/client-side-failoverlistener/src/main/resources/activemq/server1/activemq-configuration.xml
----------------------------------------------------------------------
diff --git a/examples/jms/client-side-failoverlistener/src/main/resources/activemq/server1/activemq-configuration.xml b/examples/jms/client-side-failoverlistener/src/main/resources/activemq/server1/activemq-configuration.xml
index 1893c49..63413f6 100644
--- a/examples/jms/client-side-failoverlistener/src/main/resources/activemq/server1/activemq-configuration.xml
+++ b/examples/jms/client-side-failoverlistener/src/main/resources/activemq/server1/activemq-configuration.xml
@@ -29,13 +29,13 @@ under the License.
 
    <core xmlns="urn:activemq:core">
 
-      <bindings-directory>${build.directory}/server0/data/messaging/bindings</bindings-directory>
+      <bindings-directory>${data.dir}/server0/data/messaging/bindings</bindings-directory>
 
-      <journal-directory>${build.directory}/server0/data/messaging/journal</journal-directory>
+      <journal-directory>${data.dir}/server0/data/messaging/journal</journal-directory>
 
-      <large-messages-directory>${build.directory}/server0/data/messaging/largemessages</large-messages-directory>
+      <large-messages-directory>${data.dir}/server0/data/messaging/largemessages</large-messages-directory>
 
-      <paging-directory>${build.directory}/server0/data/messaging/paging</paging-directory>
+      <paging-directory>${data.dir}/server0/data/messaging/paging</paging-directory>
 
       <ha-policy>
          <shared-store>

http://git-wip-us.apache.org/repos/asf/activemq-6/blob/25f3343b/examples/jms/client-side-load-balancing/pom.xml
----------------------------------------------------------------------
diff --git a/examples/jms/client-side-load-balancing/pom.xml b/examples/jms/client-side-load-balancing/pom.xml
index bf55b5e..b1896a9 100644
--- a/examples/jms/client-side-load-balancing/pom.xml
+++ b/examples/jms/client-side-load-balancing/pom.xml
@@ -59,7 +59,7 @@ under the License.
                      <configurationDir>${basedir}/target/classes/activemq/server0</configurationDir>
                      <systemProperties>
                         <property>
-                           <name>build.directory</name>
+                           <name>data.dir</name>
                            <value>${basedir}/target/</value>
                         </property>
                      </systemProperties>
@@ -75,7 +75,7 @@ under the License.
                      <fork>true</fork>
                      <systemProperties>
                         <property>
-                           <name>build.directory</name>
+                           <name>data.dir</name>
                            <value>${basedir}/target/</value>
                         </property>
                         <property>
@@ -95,7 +95,7 @@ under the License.
                      <fork>true</fork>
                      <systemProperties>
                         <property>
-                           <name>build.directory</name>
+                           <name>data.dir</name>
                            <value>${basedir}/target/</value>
                         </property>
                      </systemProperties>
@@ -185,7 +185,7 @@ under the License.
                <waitOnStart>false</waitOnStart>
                <systemProperties>
                   <property>
-                     <name>build.directory</name>
+                     <name>data.dir</name>
                      <value>${basedir}/target/</value>
                   </property>
                </systemProperties>

http://git-wip-us.apache.org/repos/asf/activemq-6/blob/25f3343b/examples/jms/client-side-load-balancing/src/main/resources/activemq/server0/activemq-configuration.xml
----------------------------------------------------------------------
diff --git a/examples/jms/client-side-load-balancing/src/main/resources/activemq/server0/activemq-configuration.xml b/examples/jms/client-side-load-balancing/src/main/resources/activemq/server0/activemq-configuration.xml
index 61156f0..b21b2f5 100644
--- a/examples/jms/client-side-load-balancing/src/main/resources/activemq/server0/activemq-configuration.xml
+++ b/examples/jms/client-side-load-balancing/src/main/resources/activemq/server0/activemq-configuration.xml
@@ -27,13 +27,13 @@ under the License.
    </jms>
 
    <core xmlns="urn:activemq:core">
-      <bindings-directory>${build.directory}/server0/data/messaging/bindings</bindings-directory>
+      <bindings-directory>${data.dir}/server0/data/messaging/bindings</bindings-directory>
 
-      <journal-directory>${build.directory}/server0/data/messaging/journal</journal-directory>
+      <journal-directory>${data.dir}/server0/data/messaging/journal</journal-directory>
 
-      <large-messages-directory>${build.directory}/server0/data/messaging/largemessages</large-messages-directory>
+      <large-messages-directory>${data.dir}/server0/data/messaging/largemessages</large-messages-directory>
 
-      <paging-directory>${build.directory}/server0/data/messaging/paging</paging-directory>
+      <paging-directory>${data.dir}/server0/data/messaging/paging</paging-directory>
 
       <!-- Connectors -->
 

http://git-wip-us.apache.org/repos/asf/activemq-6/blob/25f3343b/examples/jms/client-side-load-balancing/src/main/resources/activemq/server1/activemq-configuration.xml
----------------------------------------------------------------------
diff --git a/examples/jms/client-side-load-balancing/src/main/resources/activemq/server1/activemq-configuration.xml b/examples/jms/client-side-load-balancing/src/main/resources/activemq/server1/activemq-configuration.xml
index b61f74e..a3ed424 100644
--- a/examples/jms/client-side-load-balancing/src/main/resources/activemq/server1/activemq-configuration.xml
+++ b/examples/jms/client-side-load-balancing/src/main/resources/activemq/server1/activemq-configuration.xml
@@ -26,13 +26,13 @@ under the License.
       <queue name="exampleQueue"/>
    </jms>
    <core xmlns="urn:activemq:core">
-      <bindings-directory>${build.directory}/server1/data/messaging/bindings</bindings-directory>
+      <bindings-directory>${data.dir}/server1/data/messaging/bindings</bindings-directory>
 
-      <journal-directory>${build.directory}/server1/data/messaging/journal</journal-directory>
+      <journal-directory>${data.dir}/server1/data/messaging/journal</journal-directory>
 
-      <large-messages-directory>${build.directory}/server1/data/messaging/largemessages</large-messages-directory>
+      <large-messages-directory>${data.dir}/server1/data/messaging/largemessages</large-messages-directory>
 
-      <paging-directory>${build.directory}/server1/data/messaging/paging</paging-directory>
+      <paging-directory>${data.dir}/server1/data/messaging/paging</paging-directory>
 
       <!-- Connectors -->
       <connectors>

http://git-wip-us.apache.org/repos/asf/activemq-6/blob/25f3343b/examples/jms/client-side-load-balancing/src/main/resources/activemq/server2/activemq-configuration.xml
----------------------------------------------------------------------
diff --git a/examples/jms/client-side-load-balancing/src/main/resources/activemq/server2/activemq-configuration.xml b/examples/jms/client-side-load-balancing/src/main/resources/activemq/server2/activemq-configuration.xml
index 68ca521..b704957 100644
--- a/examples/jms/client-side-load-balancing/src/main/resources/activemq/server2/activemq-configuration.xml
+++ b/examples/jms/client-side-load-balancing/src/main/resources/activemq/server2/activemq-configuration.xml
@@ -24,13 +24,13 @@ under the License.
    <jms xmlns="urn:activemq:jms">
    </jms>
    <core xmlns="urn:activemq:core">
-      <bindings-directory>${build.directory}/server2/data/messaging/bindings</bindings-directory>
+      <bindings-directory>${data.dir}/server2/data/messaging/bindings</bindings-directory>
 
-      <journal-directory>${build.directory}/server2/data/messaging/journal</journal-directory>
+      <journal-directory>${data.dir}/server2/data/messaging/journal</journal-directory>
 
-      <large-messages-directory>${build.directory}/server2/data/messaging/largemessages</large-messages-directory>
+      <large-messages-directory>${data.dir}/server2/data/messaging/largemessages</large-messages-directory>
 
-      <paging-directory>${build.directory}/server2/data/messaging/paging</paging-directory>
+      <paging-directory>${data.dir}/server2/data/messaging/paging</paging-directory>
 
       <!-- Connectors -->
       <connectors>

http://git-wip-us.apache.org/repos/asf/activemq-6/blob/25f3343b/examples/jms/clustered-durable-subscription/pom.xml
----------------------------------------------------------------------
diff --git a/examples/jms/clustered-durable-subscription/pom.xml b/examples/jms/clustered-durable-subscription/pom.xml
index 07e26e6..43d8ae7 100644
--- a/examples/jms/clustered-durable-subscription/pom.xml
+++ b/examples/jms/clustered-durable-subscription/pom.xml
@@ -59,7 +59,7 @@ under the License.
                      <configurationDir>${basedir}/target/classes/activemq/server0</configurationDir>
                      <systemProperties>
                         <property>
-                           <name>build.directory</name>
+                           <name>data.dir</name>
                            <value>${basedir}/target/</value>
                         </property>
                      </systemProperties>
@@ -75,7 +75,7 @@ under the License.
                      <fork>true</fork>
                      <systemProperties>
                         <property>
-                           <name>build.directory</name>
+                           <name>data.dir</name>
                            <value>${basedir}/target/</value>
                         </property>
                      </systemProperties>
@@ -160,7 +160,7 @@ under the License.
                <waitOnStart>false</waitOnStart>
                <systemProperties>
                   <property>
-                     <name>build.directory</name>
+                     <name>data.dir</name>
                      <value>${basedir}/target/</value>
                   </property>
                </systemProperties>

http://git-wip-us.apache.org/repos/asf/activemq-6/blob/25f3343b/examples/jms/clustered-durable-subscription/src/main/resources/activemq/server0/activemq-configuration.xml
----------------------------------------------------------------------
diff --git a/examples/jms/clustered-durable-subscription/src/main/resources/activemq/server0/activemq-configuration.xml b/examples/jms/clustered-durable-subscription/src/main/resources/activemq/server0/activemq-configuration.xml
index a5a7bad..d94b55a 100644
--- a/examples/jms/clustered-durable-subscription/src/main/resources/activemq/server0/activemq-configuration.xml
+++ b/examples/jms/clustered-durable-subscription/src/main/resources/activemq/server0/activemq-configuration.xml
@@ -29,13 +29,13 @@ under the License.
 
    <core xmlns="urn:activemq:core">
 
-      <bindings-directory>${build.directory}/server0/data/messaging/bindings</bindings-directory>
+      <bindings-directory>${data.dir}/server0/data/messaging/bindings</bindings-directory>
 
-      <journal-directory>${build.directory}/server0/data/messaging/journal</journal-directory>
+      <journal-directory>${data.dir}/server0/data/messaging/journal</journal-directory>
 
-      <large-messages-directory>${build.directory}/server0/data/messaging/largemessages</large-messages-directory>
+      <large-messages-directory>${data.dir}/server0/data/messaging/largemessages</large-messages-directory>
 
-      <paging-directory>${build.directory}/server0/data/messaging/paging</paging-directory>
+      <paging-directory>${data.dir}/server0/data/messaging/paging</paging-directory>
 
 
       <!-- Connectors -->

http://git-wip-us.apache.org/repos/asf/activemq-6/blob/25f3343b/examples/jms/clustered-durable-subscription/src/main/resources/activemq/server1/activemq-configuration.xml
----------------------------------------------------------------------
diff --git a/examples/jms/clustered-durable-subscription/src/main/resources/activemq/server1/activemq-configuration.xml b/examples/jms/clustered-durable-subscription/src/main/resources/activemq/server1/activemq-configuration.xml
index 8edf2df..a27d74c 100644
--- a/examples/jms/clustered-durable-subscription/src/main/resources/activemq/server1/activemq-configuration.xml
+++ b/examples/jms/clustered-durable-subscription/src/main/resources/activemq/server1/activemq-configuration.xml
@@ -30,13 +30,13 @@ under the License.
    <core xmlns="urn:activemq:core">
 
 
-      <bindings-directory>${build.directory}/server1/data/messaging/bindings</bindings-directory>
+      <bindings-directory>${data.dir}/server1/data/messaging/bindings</bindings-directory>
 
-      <journal-directory>${build.directory}/server1/data/messaging/journal</journal-directory>
+      <journal-directory>${data.dir}/server1/data/messaging/journal</journal-directory>
 
-      <large-messages-directory>${build.directory}/server1/data/messaging/largemessages</large-messages-directory>
+      <large-messages-directory>${data.dir}/server1/data/messaging/largemessages</large-messages-directory>
 
-      <paging-directory>${build.directory}/server1/data/messaging/paging</paging-directory>
+      <paging-directory>${data.dir}/server1/data/messaging/paging</paging-directory>
 
       <!-- Connectors -->
       <connectors>

http://git-wip-us.apache.org/repos/asf/activemq-6/blob/25f3343b/examples/jms/clustered-grouping/pom.xml
----------------------------------------------------------------------
diff --git a/examples/jms/clustered-grouping/pom.xml b/examples/jms/clustered-grouping/pom.xml
index ea5cdc9..ffd3ea5 100644
--- a/examples/jms/clustered-grouping/pom.xml
+++ b/examples/jms/clustered-grouping/pom.xml
@@ -59,7 +59,7 @@ under the License.
                      <configurationDir>${basedir}/target/classes/activemq/server0</configurationDir>
                      <systemProperties>
                         <property>
-                           <name>build.directory</name>
+                           <name>data.dir</name>
                            <value>${basedir}/target/</value>
                         </property>
                         <property>
@@ -79,7 +79,7 @@ under the License.
                      <fork>true</fork>
                      <systemProperties>
                         <property>
-                           <name>build.directory</name>
+                           <name>data.dir</name>
                            <value>${basedir}/target/</value>
                         </property>
                         <property>
@@ -99,7 +99,7 @@ under the License.
                      <fork>true</fork>
                      <systemProperties>
                         <property>
-                           <name>build.directory</name>
+                           <name>data.dir</name>
                            <value>${basedir}/target/</value>
                         </property>
                         <property>
@@ -198,7 +198,7 @@ under the License.
                <waitOnStart>false</waitOnStart>
                <systemProperties>
                   <property>
-                     <name>build.directory</name>
+                     <name>data.dir</name>
                      <value>${basedir}/target/</value>
                   </property>
                </systemProperties>

http://git-wip-us.apache.org/repos/asf/activemq-6/blob/25f3343b/examples/jms/clustered-grouping/src/main/resources/activemq/server0/activemq-configuration.xml
----------------------------------------------------------------------
diff --git a/examples/jms/clustered-grouping/src/main/resources/activemq/server0/activemq-configuration.xml b/examples/jms/clustered-grouping/src/main/resources/activemq/server0/activemq-configuration.xml
index f92bdb4..e363263 100644
--- a/examples/jms/clustered-grouping/src/main/resources/activemq/server0/activemq-configuration.xml
+++ b/examples/jms/clustered-grouping/src/main/resources/activemq/server0/activemq-configuration.xml
@@ -30,13 +30,13 @@ under the License.
    <core xmlns="urn:activemq:core">
 
 
-      <bindings-directory>${build.directory}/server0/data/messaging/bindings</bindings-directory>
+      <bindings-directory>${data.dir}/server0/data/messaging/bindings</bindings-directory>
 
-      <journal-directory>${build.directory}/server0/data/messaging/journal</journal-directory>
+      <journal-directory>${data.dir}/server0/data/messaging/journal</journal-directory>
 
-      <large-messages-directory>${build.directory}/server0/data/messaging/largemessages</large-messages-directory>
+      <large-messages-directory>${data.dir}/server0/data/messaging/largemessages</large-messages-directory>
 
-      <paging-directory>${build.directory}/server0/data/messaging/paging</paging-directory>
+      <paging-directory>${data.dir}/server0/data/messaging/paging</paging-directory>
 
       <!-- Connectors -->
 

http://git-wip-us.apache.org/repos/asf/activemq-6/blob/25f3343b/examples/jms/clustered-grouping/src/main/resources/activemq/server1/activemq-configuration.xml
----------------------------------------------------------------------
diff --git a/examples/jms/clustered-grouping/src/main/resources/activemq/server1/activemq-configuration.xml b/examples/jms/clustered-grouping/src/main/resources/activemq/server1/activemq-configuration.xml
index a57852d..5c4bb4f 100644
--- a/examples/jms/clustered-grouping/src/main/resources/activemq/server1/activemq-configuration.xml
+++ b/examples/jms/clustered-grouping/src/main/resources/activemq/server1/activemq-configuration.xml
@@ -30,13 +30,13 @@ under the License.
    <core xmlns="urn:activemq:core">
 
 
-      <bindings-directory>${build.directory}/server1/data/messaging/bindings</bindings-directory>
+      <bindings-directory>${data.dir}/server1/data/messaging/bindings</bindings-directory>
 
-      <journal-directory>${build.directory}/server1/data/messaging/journal</journal-directory>
+      <journal-directory>${data.dir}/server1/data/messaging/journal</journal-directory>
 
-      <large-messages-directory>${build.directory}/server1/data/messaging/largemessages</large-messages-directory>
+      <large-messages-directory>${data.dir}/server1/data/messaging/largemessages</large-messages-directory>
 
-      <paging-directory>${build.directory}/server1/data/messaging/paging</paging-directory>
+      <paging-directory>${data.dir}/server1/data/messaging/paging</paging-directory>
 
       <!-- Connectors -->
       <connectors>

http://git-wip-us.apache.org/repos/asf/activemq-6/blob/25f3343b/examples/jms/clustered-grouping/src/main/resources/activemq/server2/activemq-configuration.xml
----------------------------------------------------------------------
diff --git a/examples/jms/clustered-grouping/src/main/resources/activemq/server2/activemq-configuration.xml b/examples/jms/clustered-grouping/src/main/resources/activemq/server2/activemq-configuration.xml
index ab6e98f..0e98c4a 100644
--- a/examples/jms/clustered-grouping/src/main/resources/activemq/server2/activemq-configuration.xml
+++ b/examples/jms/clustered-grouping/src/main/resources/activemq/server2/activemq-configuration.xml
@@ -30,13 +30,13 @@ under the License.
    <core xmlns="urn:activemq:core">
 
 
-      <bindings-directory>${build.directory}/server2/data/messaging/bindings</bindings-directory>
+      <bindings-directory>${data.dir}/server2/data/messaging/bindings</bindings-directory>
 
-      <journal-directory>${build.directory}/server2/data/messaging/journal</journal-directory>
+      <journal-directory>${data.dir}/server2/data/messaging/journal</journal-directory>
 
-      <large-messages-directory>${build.directory}/server2/data/messaging/largemessages</large-messages-directory>
+      <large-messages-directory>${data.dir}/server2/data/messaging/largemessages</large-messages-directory>
 
-      <paging-directory>${build.directory}/server2/data/messaging/paging</paging-directory>
+      <paging-directory>${data.dir}/server2/data/messaging/paging</paging-directory>
 
       <!-- Connectors -->
       <connectors>

http://git-wip-us.apache.org/repos/asf/activemq-6/blob/25f3343b/examples/jms/clustered-static-discovery/pom.xml
----------------------------------------------------------------------
diff --git a/examples/jms/clustered-static-discovery/pom.xml b/examples/jms/clustered-static-discovery/pom.xml
index 17cd794..48c0d4d 100644
--- a/examples/jms/clustered-static-discovery/pom.xml
+++ b/examples/jms/clustered-static-discovery/pom.xml
@@ -188,7 +188,7 @@ under the License.
                <waitOnStart>false</waitOnStart>
                <systemProperties>
                   <property>
-                     <name>build.directory</name>
+                     <name>data.dir</name>
                      <value>${basedir}/target/</value>
                   </property>
                </systemProperties>

http://git-wip-us.apache.org/repos/asf/activemq-6/blob/25f3343b/examples/jms/clustered-static-discovery/src/main/resources/activemq/server0/activemq-configuration.xml
----------------------------------------------------------------------
diff --git a/examples/jms/clustered-static-discovery/src/main/resources/activemq/server0/activemq-configuration.xml b/examples/jms/clustered-static-discovery/src/main/resources/activemq/server0/activemq-configuration.xml
index 4f04ecb..b37f4d8 100644
--- a/examples/jms/clustered-static-discovery/src/main/resources/activemq/server0/activemq-configuration.xml
+++ b/examples/jms/clustered-static-discovery/src/main/resources/activemq/server0/activemq-configuration.xml
@@ -30,13 +30,13 @@ under the License.
    <core xmlns="urn:activemq:core">
 
 
-      <bindings-directory>${build.directory}/server0/data/messaging/bindings</bindings-directory>
+      <bindings-directory>${data.dir}/server0/data/messaging/bindings</bindings-directory>
 
-      <journal-directory>${build.directory}/server0/data/messaging/journal</journal-directory>
+      <journal-directory>${data.dir}/server0/data/messaging/journal</journal-directory>
 
-      <large-messages-directory>${build.directory}/server0/data/messaging/largemessages</large-messages-directory>
+      <large-messages-directory>${data.dir}/server0/data/messaging/largemessages</large-messages-directory>
 
-      <paging-directory>${build.directory}/server0/data/messaging/paging</paging-directory>
+      <paging-directory>${data.dir}/server0/data/messaging/paging</paging-directory>
 
       <!-- Connectors -->
 

http://git-wip-us.apache.org/repos/asf/activemq-6/blob/25f3343b/examples/jms/clustered-static-discovery/src/main/resources/activemq/server1/activemq-configuration.xml
----------------------------------------------------------------------
diff --git a/examples/jms/clustered-static-discovery/src/main/resources/activemq/server1/activemq-configuration.xml b/examples/jms/clustered-static-discovery/src/main/resources/activemq/server1/activemq-configuration.xml
index 27ea9f8..8816fb7 100644
--- a/examples/jms/clustered-static-discovery/src/main/resources/activemq/server1/activemq-configuration.xml
+++ b/examples/jms/clustered-static-discovery/src/main/resources/activemq/server1/activemq-configuration.xml
@@ -30,13 +30,13 @@ under the License.
    <core xmlns="urn:activemq:core">
 
 
-      <bindings-directory>${build.directory}/server1/data/messaging/bindings</bindings-directory>
+      <bindings-directory>${data.dir}/server1/data/messaging/bindings</bindings-directory>
 
-      <journal-directory>${build.directory}/server1/data/messaging/journal</journal-directory>
+      <journal-directory>${data.dir}/server1/data/messaging/journal</journal-directory>
 
-      <large-messages-directory>${build.directory}/server1/data/messaging/largemessages</large-messages-directory>
+      <large-messages-directory>${data.dir}/server1/data/messaging/largemessages</large-messages-directory>
 
-      <paging-directory>${build.directory}/server1/data/messaging/paging</paging-directory>
+      <paging-directory>${data.dir}/server1/data/messaging/paging</paging-directory>
 
       <!-- Connectors -->
       <connectors>

http://git-wip-us.apache.org/repos/asf/activemq-6/blob/25f3343b/examples/jms/clustered-static-discovery/src/main/resources/activemq/server2/activemq-configuration.xml
----------------------------------------------------------------------
diff --git a/examples/jms/clustered-static-discovery/src/main/resources/activemq/server2/activemq-configuration.xml b/examples/jms/clustered-static-discovery/src/main/resources/activemq/server2/activemq-configuration.xml
index a3b1e6c..a90c7b9 100644
--- a/examples/jms/clustered-static-discovery/src/main/resources/activemq/server2/activemq-configuration.xml
+++ b/examples/jms/clustered-static-discovery/src/main/resources/activemq/server2/activemq-configuration.xml
@@ -27,13 +27,13 @@
    <core xmlns="urn:activemq:core">
 
 
-      <bindings-directory>${build.directory}/server2/data/messaging/bindings</bindings-directory>
+      <bindings-directory>${data.dir}/server2/data/messaging/bindings</bindings-directory>
 
-      <journal-directory>${build.directory}/server2/data/messaging/journal</journal-directory>
+      <journal-directory>${data.dir}/server2/data/messaging/journal</journal-directory>
 
-      <large-messages-directory>${build.directory}/server2/data/messaging/largemessages</large-messages-directory>
+      <large-messages-directory>${data.dir}/server2/data/messaging/largemessages</large-messages-directory>
 
-      <paging-directory>${build.directory}/server2/data/messaging/paging</paging-directory>
+      <paging-directory>${data.dir}/server2/data/messaging/paging</paging-directory>
 
       <!-- Connectors -->
       <connectors>

http://git-wip-us.apache.org/repos/asf/activemq-6/blob/25f3343b/examples/jms/clustered-static-discovery/src/main/resources/activemq/server3/activemq-configuration.xml
----------------------------------------------------------------------
diff --git a/examples/jms/clustered-static-discovery/src/main/resources/activemq/server3/activemq-configuration.xml b/examples/jms/clustered-static-discovery/src/main/resources/activemq/server3/activemq-configuration.xml
index 9dd03a6..b38eae0 100644
--- a/examples/jms/clustered-static-discovery/src/main/resources/activemq/server3/activemq-configuration.xml
+++ b/examples/jms/clustered-static-discovery/src/main/resources/activemq/server3/activemq-configuration.xml
@@ -27,13 +27,13 @@
    <core xmlns="urn:activemq:core">
 
 
-      <bindings-directory>${build.directory}/server3/data/messaging/bindings</bindings-directory>
+      <bindings-directory>${data.dir}/server3/data/messaging/bindings</bindings-directory>
 
-      <journal-directory>${build.directory}/server3/data/messaging/journal</journal-directory>
+      <journal-directory>${data.dir}/server3/data/messaging/journal</journal-directory>
 
-      <large-messages-directory>${build.directory}/server3/data/messaging/largemessages</large-messages-directory>
+      <large-messages-directory>${data.dir}/server3/data/messaging/largemessages</large-messages-directory>
 
-      <paging-directory>${build.directory}/server3/data/messaging/paging</paging-directory>
+      <paging-directory>${data.dir}/server3/data/messaging/paging</paging-directory>
 
       <!-- Connectors -->
       <connectors>

http://git-wip-us.apache.org/repos/asf/activemq-6/blob/25f3343b/examples/jms/clustered-static-oneway/pom.xml
----------------------------------------------------------------------
diff --git a/examples/jms/clustered-static-oneway/pom.xml b/examples/jms/clustered-static-oneway/pom.xml
index 125c322..ec9af39 100644
--- a/examples/jms/clustered-static-oneway/pom.xml
+++ b/examples/jms/clustered-static-oneway/pom.xml
@@ -168,7 +168,7 @@ under the License.
                <waitOnStart>false</waitOnStart>
                <systemProperties>
                   <property>
-                     <name>build.directory</name>
+                     <name>data.dir</name>
                      <value>${basedir}/target/</value>
                   </property>
                </systemProperties>

http://git-wip-us.apache.org/repos/asf/activemq-6/blob/25f3343b/examples/jms/clustered-static-oneway/src/main/resources/activemq/server0/activemq-configuration.xml
----------------------------------------------------------------------
diff --git a/examples/jms/clustered-static-oneway/src/main/resources/activemq/server0/activemq-configuration.xml b/examples/jms/clustered-static-oneway/src/main/resources/activemq/server0/activemq-configuration.xml
index 3b1e2a8..403d6a0 100644
--- a/examples/jms/clustered-static-oneway/src/main/resources/activemq/server0/activemq-configuration.xml
+++ b/examples/jms/clustered-static-oneway/src/main/resources/activemq/server0/activemq-configuration.xml
@@ -27,13 +27,13 @@
    <core xmlns="urn:activemq:core">
 
 
-      <bindings-directory>${build.directory}/server0/data/messaging/bindings</bindings-directory>
+      <bindings-directory>${data.dir}/server0/data/messaging/bindings</bindings-directory>
 
-      <journal-directory>${build.directory}/server0/data/messaging/journal</journal-directory>
+      <journal-directory>${data.dir}/server0/data/messaging/journal</journal-directory>
 
-      <large-messages-directory>${build.directory}/server0/data/messaging/largemessages</large-messages-directory>
+      <large-messages-directory>${data.dir}/server0/data/messaging/largemessages</large-messages-directory>
 
-      <paging-directory>${build.directory}/server0/data/messaging/paging</paging-directory>
+      <paging-directory>${data.dir}/server0/data/messaging/paging</paging-directory>
 
       <!-- Connectors -->
 

http://git-wip-us.apache.org/repos/asf/activemq-6/blob/25f3343b/examples/jms/clustered-static-oneway/src/main/resources/activemq/server1/activemq-configuration.xml
----------------------------------------------------------------------
diff --git a/examples/jms/clustered-static-oneway/src/main/resources/activemq/server1/activemq-configuration.xml b/examples/jms/clustered-static-oneway/src/main/resources/activemq/server1/activemq-configuration.xml
index 17f5463..9ba1943 100644
--- a/examples/jms/clustered-static-oneway/src/main/resources/activemq/server1/activemq-configuration.xml
+++ b/examples/jms/clustered-static-oneway/src/main/resources/activemq/server1/activemq-configuration.xml
@@ -27,13 +27,13 @@
    <core xmlns="urn:activemq:core">
 
 
-      <bindings-directory>${build.directory}/server1/data/messaging/bindings</bindings-directory>
+      <bindings-directory>${data.dir}/server1/data/messaging/bindings</bindings-directory>
 
-      <journal-directory>${build.directory}/server1/data/messaging/journal</journal-directory>
+      <journal-directory>${data.dir}/server1/data/messaging/journal</journal-directory>
 
-      <large-messages-directory>${build.directory}/server1/data/messaging/largemessages</large-messages-directory>
+      <large-messages-directory>${data.dir}/server1/data/messaging/largemessages</large-messages-directory>
 
-      <paging-directory>${build.directory}/server1/data/messaging/paging</paging-directory>
+      <paging-directory>${data.dir}/server1/data/messaging/paging</paging-directory>
 
       <!-- Connectors -->
       <connectors>

http://git-wip-us.apache.org/repos/asf/activemq-6/blob/25f3343b/examples/jms/clustered-static-oneway/src/main/resources/activemq/server2/activemq-configuration.xml
----------------------------------------------------------------------
diff --git a/examples/jms/clustered-static-oneway/src/main/resources/activemq/server2/activemq-configuration.xml b/examples/jms/clustered-static-oneway/src/main/resources/activemq/server2/activemq-configuration.xml
index 5913b63..63c70cd 100644
--- a/examples/jms/clustered-static-oneway/src/main/resources/activemq/server2/activemq-configuration.xml
+++ b/examples/jms/clustered-static-oneway/src/main/resources/activemq/server2/activemq-configuration.xml
@@ -27,13 +27,13 @@
    <core xmlns="urn:activemq:core">
 
 
-      <bindings-directory>${build.directory}/server2/data/messaging/bindings</bindings-directory>
+      <bindings-directory>${data.dir}/server2/data/messaging/bindings</bindings-directory>
 
-      <journal-directory>${build.directory}/server2/data/messaging/journal</journal-directory>
+      <journal-directory>${data.dir}/server2/data/messaging/journal</journal-directory>
 
-      <large-messages-directory>${build.directory}/server2/data/messaging/largemessages</large-messages-directory>
+      <large-messages-directory>${data.dir}/server2/data/messaging/largemessages</large-messages-directory>
 
-      <paging-directory>${build.directory}/server2/data/messaging/paging</paging-directory>
+      <paging-directory>${data.dir}/server2/data/messaging/paging</paging-directory>
 
       <!-- Connectors -->
       <connectors>

http://git-wip-us.apache.org/repos/asf/activemq-6/blob/25f3343b/examples/jms/clustered-topic/pom.xml
----------------------------------------------------------------------
diff --git a/examples/jms/clustered-topic/pom.xml b/examples/jms/clustered-topic/pom.xml
index 4dda418..f28b58a 100644
--- a/examples/jms/clustered-topic/pom.xml
+++ b/examples/jms/clustered-topic/pom.xml
@@ -59,7 +59,7 @@ under the License.
                      <configurationDir>${basedir}/target/classes/activemq/server0</configurationDir>
                      <systemProperties>
                         <property>
-                           <name>build.directory</name>
+                           <name>data.dir</name>
                            <value>${basedir}/target/</value>
                         </property>
                         <property>
@@ -79,7 +79,7 @@ under the License.
                      <fork>true</fork>
                      <systemProperties>
                         <property>
-                           <name>build.directory</name>
+                           <name>data.dir</name>
                            <value>${basedir}/target/</value>
                         </property>
                         <property>
@@ -168,7 +168,7 @@ under the License.
                <waitOnStart>false</waitOnStart>
                <systemProperties>
                   <property>
-                     <name>build.directory</name>
+                     <name>data.dir</name>
                      <value>${basedir}/target/</value>
                   </property>
                </systemProperties>

http://git-wip-us.apache.org/repos/asf/activemq-6/blob/25f3343b/examples/jms/clustered-topic/src/main/resources/activemq/server0/activemq-configuration.xml
----------------------------------------------------------------------
diff --git a/examples/jms/clustered-topic/src/main/resources/activemq/server0/activemq-configuration.xml b/examples/jms/clustered-topic/src/main/resources/activemq/server0/activemq-configuration.xml
index a97eb07..90e975d 100644
--- a/examples/jms/clustered-topic/src/main/resources/activemq/server0/activemq-configuration.xml
+++ b/examples/jms/clustered-topic/src/main/resources/activemq/server0/activemq-configuration.xml
@@ -30,13 +30,13 @@ under the License.
    <core xmlns="urn:activemq:core">
 
 
-      <bindings-directory>${build.directory}/server0/data/messaging/bindings</bindings-directory>
+      <bindings-directory>${data.dir}/server0/data/messaging/bindings</bindings-directory>
 
-      <journal-directory>${build.directory}/server0/data/messaging/journal</journal-directory>
+      <journal-directory>${data.dir}/server0/data/messaging/journal</journal-directory>
 
-      <large-messages-directory>${build.directory}/server0/data/messaging/largemessages</large-messages-directory>
+      <large-messages-directory>${data.dir}/server0/data/messaging/largemessages</large-messages-directory>
 
-      <paging-directory>${build.directory}/server0/data/messaging/paging</paging-directory>
+      <paging-directory>${data.dir}/server0/data/messaging/paging</paging-directory>
 
       <!-- Connectors -->
 

http://git-wip-us.apache.org/repos/asf/activemq-6/blob/25f3343b/examples/jms/clustered-topic/src/main/resources/activemq/server1/activemq-configuration.xml
----------------------------------------------------------------------
diff --git a/examples/jms/clustered-topic/src/main/resources/activemq/server1/activemq-configuration.xml b/examples/jms/clustered-topic/src/main/resources/activemq/server1/activemq-configuration.xml
index d23c090..bb60ecb 100644
--- a/examples/jms/clustered-topic/src/main/resources/activemq/server1/activemq-configuration.xml
+++ b/examples/jms/clustered-topic/src/main/resources/activemq/server1/activemq-configuration.xml
@@ -30,13 +30,13 @@ under the License.
    <core xmlns="urn:activemq:core">
 
 
-      <bindings-directory>${build.directory}/server1/data/messaging/bindings</bindings-directory>
+      <bindings-directory>${data.dir}/server1/data/messaging/bindings</bindings-directory>
 
-      <journal-directory>${build.directory}/server1/data/messaging/journal</journal-directory>
+      <journal-directory>${data.dir}/server1/data/messaging/journal</journal-directory>
 
-      <large-messages-directory>${build.directory}/server1/data/messaging/largemessages</large-messages-directory>
+      <large-messages-directory>${data.dir}/server1/data/messaging/largemessages</large-messages-directory>
 
-      <paging-directory>${build.directory}/server1/data/messaging/paging</paging-directory>
+      <paging-directory>${data.dir}/server1/data/messaging/paging</paging-directory>
 
       <!-- Connectors -->
       <connectors>

http://git-wip-us.apache.org/repos/asf/activemq-6/blob/25f3343b/examples/jms/consumer-rate-limit/pom.xml
----------------------------------------------------------------------
diff --git a/examples/jms/consumer-rate-limit/pom.xml b/examples/jms/consumer-rate-limit/pom.xml
index 6f3dbf4..2269fd7 100644
--- a/examples/jms/consumer-rate-limit/pom.xml
+++ b/examples/jms/consumer-rate-limit/pom.xml
@@ -58,7 +58,7 @@ under the License.
                   <configuration>
                      <systemProperties>
                         <property>
-                           <name>build.directory</name>
+                           <name>data.dir</name>
                            <value>${basedir}/target/</value>
                         </property>
                      </systemProperties>

http://git-wip-us.apache.org/repos/asf/activemq-6/blob/25f3343b/examples/jms/consumer-rate-limit/src/main/resources/activemq/server0/activemq-configuration.xml
----------------------------------------------------------------------
diff --git a/examples/jms/consumer-rate-limit/src/main/resources/activemq/server0/activemq-configuration.xml b/examples/jms/consumer-rate-limit/src/main/resources/activemq/server0/activemq-configuration.xml
index 2fa4eb8..e6fdb21 100644
--- a/examples/jms/consumer-rate-limit/src/main/resources/activemq/server0/activemq-configuration.xml
+++ b/examples/jms/consumer-rate-limit/src/main/resources/activemq/server0/activemq-configuration.xml
@@ -29,13 +29,13 @@ under the License.
 
    <core xmlns="urn:activemq:core">
 
-      <bindings-directory>${build.directory}/server0/data/messaging/bindings</bindings-directory>
+      <bindings-directory>${data.dir}/server0/data/messaging/bindings</bindings-directory>
 
-      <journal-directory>${build.directory}/server0/data/messaging/journal</journal-directory>
+      <journal-directory>${data.dir}/server0/data/messaging/journal</journal-directory>
 
-      <large-messages-directory>${build.directory}/server0/data/messaging/largemessages</large-messages-directory>
+      <large-messages-directory>${data.dir}/server0/data/messaging/largemessages</large-messages-directory>
 
-      <paging-directory>${build.directory}/server0/data/messaging/paging</paging-directory>
+      <paging-directory>${data.dir}/server0/data/messaging/paging</paging-directory>
 
       <!-- Acceptors -->
       <acceptors>

http://git-wip-us.apache.org/repos/asf/activemq-6/blob/25f3343b/examples/jms/dead-letter/pom.xml
----------------------------------------------------------------------
diff --git a/examples/jms/dead-letter/pom.xml b/examples/jms/dead-letter/pom.xml
index b4391a3..4fa9bca 100644
--- a/examples/jms/dead-letter/pom.xml
+++ b/examples/jms/dead-letter/pom.xml
@@ -58,7 +58,7 @@ under the License.
                   <configuration>
                      <systemProperties>
                         <property>
-                           <name>build.directory</name>
+                           <name>data.dir</name>
                            <value>${basedir}/target/</value>
                         </property>
                      </systemProperties>

http://git-wip-us.apache.org/repos/asf/activemq-6/blob/25f3343b/examples/jms/dead-letter/src/main/resources/activemq/server0/activemq-configuration.xml
----------------------------------------------------------------------
diff --git a/examples/jms/dead-letter/src/main/resources/activemq/server0/activemq-configuration.xml b/examples/jms/dead-letter/src/main/resources/activemq/server0/activemq-configuration.xml
index 669916d..a684f4e 100644
--- a/examples/jms/dead-letter/src/main/resources/activemq/server0/activemq-configuration.xml
+++ b/examples/jms/dead-letter/src/main/resources/activemq/server0/activemq-configuration.xml
@@ -32,13 +32,13 @@ under the License.
 
    <core xmlns="urn:activemq:core">
 
-      <bindings-directory>${build.directory}/server0/data/messaging/bindings</bindings-directory>
+      <bindings-directory>${data.dir}/server0/data/messaging/bindings</bindings-directory>
 
-      <journal-directory>${build.directory}/server0/data/messaging/journal</journal-directory>
+      <journal-directory>${data.dir}/server0/data/messaging/journal</journal-directory>
 
-      <large-messages-directory>${build.directory}/server0/data/messaging/largemessages</large-messages-directory>
+      <large-messages-directory>${data.dir}/server0/data/messaging/largemessages</large-messages-directory>
 
-      <paging-directory>${build.directory}/server0/data/messaging/paging</paging-directory>
+      <paging-directory>${data.dir}/server0/data/messaging/paging</paging-directory>
 
       <!-- Acceptors -->
       <acceptors>

http://git-wip-us.apache.org/repos/asf/activemq-6/blob/25f3343b/examples/jms/delayed-redelivery/pom.xml
----------------------------------------------------------------------
diff --git a/examples/jms/delayed-redelivery/pom.xml b/examples/jms/delayed-redelivery/pom.xml
index 770771c..eb24e1d 100644
--- a/examples/jms/delayed-redelivery/pom.xml
+++ b/examples/jms/delayed-redelivery/pom.xml
@@ -117,7 +117,7 @@ under the License.
                <configurationDir>${basedir}/target/classes/activemq/server0</configurationDir>
                <systemProperties>
                   <property>
-                     <name>build.directory</name>
+                     <name>data.dir</name>
                      <value>${basedir}/target/</value>
                   </property>
                </systemProperties>

http://git-wip-us.apache.org/repos/asf/activemq-6/blob/25f3343b/examples/jms/delayed-redelivery/src/main/resources/activemq/server0/activemq-configuration.xml
----------------------------------------------------------------------
diff --git a/examples/jms/delayed-redelivery/src/main/resources/activemq/server0/activemq-configuration.xml b/examples/jms/delayed-redelivery/src/main/resources/activemq/server0/activemq-configuration.xml
index 4939305..fca483a 100644
--- a/examples/jms/delayed-redelivery/src/main/resources/activemq/server0/activemq-configuration.xml
+++ b/examples/jms/delayed-redelivery/src/main/resources/activemq/server0/activemq-configuration.xml
@@ -32,13 +32,13 @@ under the License.
 
    <core xmlns="urn:activemq:core">
 
-      <bindings-directory>${build.directory}/server0/data/messaging/bindings</bindings-directory>
+      <bindings-directory>${data.dir}/server0/data/messaging/bindings</bindings-directory>
 
-      <journal-directory>${build.directory}/server0/data/messaging/journal</journal-directory>
+      <journal-directory>${data.dir}/server0/data/messaging/journal</journal-directory>
 
-      <large-messages-directory>${build.directory}/server0/data/messaging/largemessages</large-messages-directory>
+      <large-messages-directory>${data.dir}/server0/data/messaging/largemessages</large-messages-directory>
 
-      <paging-directory>${build.directory}/server0/data/messaging/paging</paging-directory>
+      <paging-directory>${data.dir}/server0/data/messaging/paging</paging-directory>
 
       <!-- Acceptors -->
       <acceptors>

http://git-wip-us.apache.org/repos/asf/activemq-6/blob/25f3343b/examples/jms/divert/pom.xml
----------------------------------------------------------------------
diff --git a/examples/jms/divert/pom.xml b/examples/jms/divert/pom.xml
index 9ff9234..2651264 100644
--- a/examples/jms/divert/pom.xml
+++ b/examples/jms/divert/pom.xml
@@ -153,7 +153,7 @@ under the License.
                <waitOnStart>false</waitOnStart>
                <systemProperties>
                   <property>
-                     <name>build.directory</name>
+                     <name>data.dir</name>
                      <value>${basedir}/target/</value>
                   </property>
                </systemProperties>

http://git-wip-us.apache.org/repos/asf/activemq-6/blob/25f3343b/examples/jms/divert/src/main/resources/activemq/server0/activemq-configuration.xml
----------------------------------------------------------------------
diff --git a/examples/jms/divert/src/main/resources/activemq/server0/activemq-configuration.xml b/examples/jms/divert/src/main/resources/activemq/server0/activemq-configuration.xml
index 8ef5e97..8c7fe63 100644
--- a/examples/jms/divert/src/main/resources/activemq/server0/activemq-configuration.xml
+++ b/examples/jms/divert/src/main/resources/activemq/server0/activemq-configuration.xml
@@ -43,13 +43,13 @@ under the License.
       <!-- We need to make it clustered otherwise the bridge won't deploy -->
 
 
-      <bindings-directory>${build.directory}/server0/data/messaging/bindings</bindings-directory>
+      <bindings-directory>${data.dir}/server0/data/messaging/bindings</bindings-directory>
 
-      <journal-directory>${build.directory}/server0/data/messaging/journal</journal-directory>
+      <journal-directory>${data.dir}/server0/data/messaging/journal</journal-directory>
 
-      <large-messages-directory>${build.directory}/server0/data/messaging/largemessages</large-messages-directory>
+      <large-messages-directory>${data.dir}/server0/data/messaging/largemessages</large-messages-directory>
 
-      <paging-directory>${build.directory}/server0/data/messaging/paging</paging-directory>
+      <paging-directory>${data.dir}/server0/data/messaging/paging</paging-directory>
 
       <!-- Connectors -->
 

http://git-wip-us.apache.org/repos/asf/activemq-6/blob/25f3343b/examples/jms/divert/src/main/resources/activemq/server1/activemq-configuration.xml
----------------------------------------------------------------------
diff --git a/examples/jms/divert/src/main/resources/activemq/server1/activemq-configuration.xml b/examples/jms/divert/src/main/resources/activemq/server1/activemq-configuration.xml
index 7177beb..a90aee2 100644
--- a/examples/jms/divert/src/main/resources/activemq/server1/activemq-configuration.xml
+++ b/examples/jms/divert/src/main/resources/activemq/server1/activemq-configuration.xml
@@ -32,13 +32,13 @@ under the License.
 
    <core xmlns="urn:activemq:core">
 
-      <bindings-directory>${build.directory}/server1/data/messaging/bindings</bindings-directory>
+      <bindings-directory>${data.dir}/server1/data/messaging/bindings</bindings-directory>
 
-      <journal-directory>${build.directory}/server1/data/messaging/journal</journal-directory>
+      <journal-directory>${data.dir}/server1/data/messaging/journal</journal-directory>
 
-      <large-messages-directory>${build.directory}/server1/data/messaging/largemessages</large-messages-directory>
+      <large-messages-directory>${data.dir}/server1/data/messaging/largemessages</large-messages-directory>
 
-      <paging-directory>${build.directory}/server1/data/messaging/paging</paging-directory>
+      <paging-directory>${data.dir}/server1/data/messaging/paging</paging-directory>
 
       <!-- Acceptors -->
 

http://git-wip-us.apache.org/repos/asf/activemq-6/blob/25f3343b/examples/jms/durable-subscription/pom.xml
----------------------------------------------------------------------
diff --git a/examples/jms/durable-subscription/pom.xml b/examples/jms/durable-subscription/pom.xml
index 13e78bf..ab00230 100644
--- a/examples/jms/durable-subscription/pom.xml
+++ b/examples/jms/durable-subscription/pom.xml
@@ -58,7 +58,7 @@ under the License.
                   <configuration>
                      <systemProperties>
                         <property>
-                           <name>build.directory</name>
+                           <name>data.dir</name>
                            <value>${basedir}/target/</value>
                         </property>
                      </systemProperties>

http://git-wip-us.apache.org/repos/asf/activemq-6/blob/25f3343b/examples/jms/durable-subscription/src/main/resources/activemq/server0/activemq-configuration.xml
----------------------------------------------------------------------
diff --git a/examples/jms/durable-subscription/src/main/resources/activemq/server0/activemq-configuration.xml b/examples/jms/durable-subscription/src/main/resources/activemq/server0/activemq-configuration.xml
index 058b434..51d9a56 100644
--- a/examples/jms/durable-subscription/src/main/resources/activemq/server0/activemq-configuration.xml
+++ b/examples/jms/durable-subscription/src/main/resources/activemq/server0/activemq-configuration.xml
@@ -29,13 +29,13 @@ under the License.
 
    <core xmlns="urn:activemq:core">
 
-      <bindings-directory>${build.directory}/server0/data/messaging/bindings</bindings-directory>
+      <bindings-directory>${data.dir}/server0/data/messaging/bindings</bindings-directory>
 
-      <journal-directory>${build.directory}/server0/data/messaging/journal</journal-directory>
+      <journal-directory>${data.dir}/server0/data/messaging/journal</journal-directory>
 
-      <large-messages-directory>${build.directory}/server0/data/messaging/largemessages</large-messages-directory>
+      <large-messages-directory>${data.dir}/server0/data/messaging/largemessages</large-messages-directory>
 
-      <paging-directory>${build.directory}/server0/data/messaging/paging</paging-directory>
+      <paging-directory>${data.dir}/server0/data/messaging/paging</paging-directory>
 
       <!-- Acceptors -->
 

http://git-wip-us.apache.org/repos/asf/activemq-6/blob/25f3343b/examples/jms/embedded/pom.xml
----------------------------------------------------------------------
diff --git a/examples/jms/embedded/pom.xml b/examples/jms/embedded/pom.xml
index ad3f8ad..0ed98b3 100644
--- a/examples/jms/embedded/pom.xml
+++ b/examples/jms/embedded/pom.xml
@@ -77,7 +77,7 @@ under the License.
                            <value>${basedir}/target/classes/activemq</value>
                         </property>
                         <property>
-                           <name>build.directory</name>
+                           <name>data.dir</name>
                            <value>${basedir}/target/</value>
                         </property>
                      </systemProperties>

http://git-wip-us.apache.org/repos/asf/activemq-6/blob/25f3343b/examples/jms/expiry/pom.xml
----------------------------------------------------------------------
diff --git a/examples/jms/expiry/pom.xml b/examples/jms/expiry/pom.xml
index c010d84..470ce64 100644
--- a/examples/jms/expiry/pom.xml
+++ b/examples/jms/expiry/pom.xml
@@ -58,7 +58,7 @@ under the License.
                   <configuration>
                      <systemProperties>
                         <property>
-                           <name>build.directory</name>
+                           <name>data.dir</name>
                            <value>${basedir}/target/</value>
                         </property>
                      </systemProperties>


Mime
View raw message