http://git-wip-us.apache.org/repos/asf/activemq-6/blob/8db56b73/examples/jms/bridge/readme.html
----------------------------------------------------------------------
diff --git a/examples/jms/bridge/readme.html b/examples/jms/bridge/readme.html
index 6080969..9879dbb 100644
--- a/examples/jms/bridge/readme.html
+++ b/examples/jms/bridge/readme.html
@@ -70,7 +70,7 @@ under the License.
      </code>
      </pre>              
      <h2>Example step-by-step</h2>
-     <p><i>To run the example, simply type <code>mvn verify</code> from this 
directory</i></p>
+     <p><i>To run the example, simply type <code>mvn verify -Pexample</code> 
from this directory</i></p>
 
      <ol>
         <li>We create an initial context for looking up JNDI on node 0</li>

http://git-wip-us.apache.org/repos/asf/activemq-6/blob/8db56b73/examples/jms/browser/pom.xml
----------------------------------------------------------------------
diff --git a/examples/jms/browser/pom.xml b/examples/jms/browser/pom.xml
index 51892e0..2f5719c 100644
--- a/examples/jms/browser/pom.xml
+++ b/examples/jms/browser/pom.xml
@@ -44,86 +44,91 @@ under the License.
       </dependency>
    </dependencies>
 
-   <build>
-      <plugins>
-         <plugin>
-            <groupId>org.apache.activemq</groupId>
-            <artifactId>activemq-maven-plugin</artifactId>
-            <executions>
-               <execution>
-                  <id>start</id>
-                  <goals>
-                     <goal>start</goal>
-                  </goals>
-               </execution>
-               <execution>
-                  <id>runClient</id>
-                  <goals>
-                     <goal>runClient</goal>
-                  </goals>
+   <profiles>
+      <profile>
+         <id>example</id>
+         <build>
+            <plugins>
+               <plugin>
+                  <groupId>org.apache.activemq</groupId>
+                  <artifactId>activemq-maven-plugin</artifactId>
+                  <executions>
+                     <execution>
+                        <id>start</id>
+                        <goals>
+                           <goal>start</goal>
+                        </goals>
+                     </execution>
+                     <execution>
+                        <id>runClient</id>
+                        <goals>
+                           <goal>runClient</goal>
+                        </goals>
+                        <configuration>
+                           
<clientClass>org.apache.activemq.jms.example.QueueBrowserExample</clientClass>
+                           <args>
+                              <param>tcp://localhost:61616</param>
+                           </args>
+                        </configuration>
+                     </execution>
+                     <execution>
+                        <id>stop</id>
+                        <goals>
+                           <goal>stop</goal>
+                        </goals>
+                     </execution>
+                  </executions>
+                  <dependencies>
+                     <dependency>
+                        <groupId>org.apache.activemq.examples.jms</groupId>
+                        <artifactId>activemq-jms-browser-example</artifactId>
+                        <version>${project.version}</version>
+                     </dependency>
+                     <dependency>
+                        <groupId>org.apache.activemq</groupId>
+                        <artifactId>activemq-core-client</artifactId>
+                        <version>${project.version}</version>
+                     </dependency>
+                     <dependency>
+                        <groupId>org.apache.activemq</groupId>
+                        <artifactId>activemq-server</artifactId>
+                        <version>${project.version}</version>
+                     </dependency>
+                     <dependency>
+                        <groupId>org.apache.activemq</groupId>
+                        <artifactId>activemq-jms-client</artifactId>
+                        <version>${project.version}</version>
+                     </dependency>
+                     <dependency>
+                        <groupId>org.apache.activemq</groupId>
+                        <artifactId>activemq-jms-server</artifactId>
+                        <version>${project.version}</version>
+                     </dependency>
+                     <dependency>
+                        <groupId>io.netty</groupId>
+                        <artifactId>netty-all</artifactId>
+                        <version>${netty.version}</version>
+                     </dependency>
+                     <dependency>
+                        <groupId>org.apache.geronimo.specs</groupId>
+                        <artifactId>geronimo-jms_2.0_spec</artifactId>
+                        <version>${geronimo.jms.2.spec.version}</version>
+                     </dependency>
+                  </dependencies>
                   <configuration>
-                     
<clientClass>org.apache.activemq.jms.example.QueueBrowserExample</clientClass>
-                     <args>
-                        <param>tcp://localhost:61616</param>
-                     </args>
+                     <waitOnStart>false</waitOnStart>
+                     
<configurationDir>${basedir}/target/classes/activemq/server0</configurationDir>
+                     <systemProperties>
+                        <property>
+                           <name>data.dir</name>
+                           <value>${basedir}/target/</value>
+                        </property>
+                     </systemProperties>
                   </configuration>
-               </execution>
-               <execution>
-                  <id>stop</id>
-                  <goals>
-                     <goal>stop</goal>
-                  </goals>
-               </execution>
-            </executions>
-            <dependencies>
-               <dependency>
-                  <groupId>org.apache.activemq.examples.jms</groupId>
-                  <artifactId>activemq-jms-browser-example</artifactId>
-                  <version>${project.version}</version>
-               </dependency>
-               <dependency>
-                  <groupId>org.apache.activemq</groupId>
-                  <artifactId>activemq-core-client</artifactId>
-                  <version>${project.version}</version>
-               </dependency>
-               <dependency>
-                  <groupId>org.apache.activemq</groupId>
-                  <artifactId>activemq-server</artifactId>
-                  <version>${project.version}</version>
-               </dependency>
-               <dependency>
-                  <groupId>org.apache.activemq</groupId>
-                  <artifactId>activemq-jms-client</artifactId>
-                  <version>${project.version}</version>
-               </dependency>
-               <dependency>
-                  <groupId>org.apache.activemq</groupId>
-                  <artifactId>activemq-jms-server</artifactId>
-                  <version>${project.version}</version>
-               </dependency>
-               <dependency>
-                  <groupId>io.netty</groupId>
-                  <artifactId>netty-all</artifactId>
-                  <version>${netty.version}</version>
-               </dependency>
-               <dependency>
-                  <groupId>org.apache.geronimo.specs</groupId>
-                  <artifactId>geronimo-jms_2.0_spec</artifactId>
-                  <version>${geronimo.jms.2.spec.version}</version>
-               </dependency>
-            </dependencies>
-            <configuration>
-               <waitOnStart>false</waitOnStart>
-               
<configurationDir>${basedir}/target/classes/activemq/server0</configurationDir>
-               <systemProperties>
-                  <property>
-                     <name>data.dir</name>
-                     <value>${basedir}/target/</value>
-                  </property>
-               </systemProperties>
-            </configuration>
-         </plugin>
-      </plugins>
-   </build>
+               </plugin>
+            </plugins>
+         </build>
+      </profile>
+   </profiles>
 
 </project>

http://git-wip-us.apache.org/repos/asf/activemq-6/blob/8db56b73/examples/jms/browser/readme.html
----------------------------------------------------------------------
diff --git a/examples/jms/browser/readme.html b/examples/jms/browser/readme.html
index 80e6f44..57ca9aa 100644
--- a/examples/jms/browser/readme.html
+++ b/examples/jms/browser/readme.html
@@ -36,7 +36,7 @@ under the License.
          the queue (looking at the message without removing them) and finally 
consume the 2 messages
      </p>
      <h2>Example step-by-step</h2>
-     <p><i>To run the example, simply type <code>mvn verify</code> from this 
directory</i></p>
+     <p><i>To run the example, simply type <code>mvn verify -Pexample</code> 
from this directory</i></p>
 
      <ol>
         <li>First we need to get an initial context so we can look-up the JMS 
connection factory and destination objects from JNDI. This initial context will 
get it's properties from the <code>client-jndi.properties</code> file in the 
directory <code>../common/config</code></li>

http://git-wip-us.apache.org/repos/asf/activemq-6/blob/8db56b73/examples/jms/client-kickoff/pom.xml
----------------------------------------------------------------------
diff --git a/examples/jms/client-kickoff/pom.xml 
b/examples/jms/client-kickoff/pom.xml
index 442d88a..bb7724c 100644
--- a/examples/jms/client-kickoff/pom.xml
+++ b/examples/jms/client-kickoff/pom.xml
@@ -49,106 +49,111 @@ under the License.
       </dependency>
    </dependencies>
 
-   <build>
-      <plugins>
-         <plugin>
-            <groupId>org.apache.activemq</groupId>
-            <artifactId>activemq-maven-plugin</artifactId>
-            <executions>
-               <execution>
-                  <id>start</id>
-                  <goals>
-                     <goal>start</goal>
-                  </goals>
-                  <configuration>
-                     <!--we need to fork the server as we have system props 
that need set pre runtime-->
-                     <fork>true</fork>
-                     <systemProperties>
-                        <property>
-                           <name>data.dir</name>
-                           <value>${basedir}/target/</value>
-                        </property>
-                        <property>
-                           <name>com.sun.management.jmxremote</name>
-                           <value></value>
-                        </property>
-                        <property>
-                           <name>com.sun.management.jmxremote.port</name>
-                           <value>3000</value>
-                        </property>
-                        <property>
-                           <name>com.sun.management.jmxremote.ssl</name>
-                           <value>false</value>
-                        </property>
-                        <property>
-                           
<name>com.sun.management.jmxremote.authenticate</name>
-                           <value>false</value>
-                        </property>
-                     </systemProperties>
-                  </configuration>
-               </execution>
-               <execution>
-                  <id>runClient</id>
-                  <goals>
-                     <goal>runClient</goal>
-                  </goals>
+   <profiles>
+      <profile>
+         <id>example</id>
+         <build>
+            <plugins>
+               <plugin>
+                  <groupId>org.apache.activemq</groupId>
+                  <artifactId>activemq-maven-plugin</artifactId>
+                  <executions>
+                     <execution>
+                        <id>start</id>
+                        <goals>
+                           <goal>start</goal>
+                        </goals>
+                        <configuration>
+                           <!--we need to fork the server as we have system 
props that need set pre runtime-->
+                           <fork>true</fork>
+                           <systemProperties>
+                              <property>
+                                 <name>data.dir</name>
+                                 <value>${basedir}/target/</value>
+                              </property>
+                              <property>
+                                 <name>com.sun.management.jmxremote</name>
+                                 <value></value>
+                              </property>
+                              <property>
+                                 <name>com.sun.management.jmxremote.port</name>
+                                 <value>3000</value>
+                              </property>
+                              <property>
+                                 <name>com.sun.management.jmxremote.ssl</name>
+                                 <value>false</value>
+                              </property>
+                              <property>
+                                 
<name>com.sun.management.jmxremote.authenticate</name>
+                                 <value>false</value>
+                              </property>
+                           </systemProperties>
+                        </configuration>
+                     </execution>
+                     <execution>
+                        <id>runClient</id>
+                        <goals>
+                           <goal>runClient</goal>
+                        </goals>
+                        <configuration>
+                           
<clientClass>org.apache.activemq.jms.example.ClientKickoffExample</clientClass>
+                           <args>
+                              <param>tcp://localhost:61616</param>
+                           </args>
+                        </configuration>
+                     </execution>
+                     <execution>
+                        <id>stop</id>
+                        <goals>
+                           <goal>stop</goal>
+                        </goals>
+                     </execution>
+                  </executions>
+                  <dependencies>
+                     <dependency>
+                        <groupId>org.apache.activemq.examples.jms</groupId>
+                        
<artifactId>activemq-jms-client-kickoff-example</artifactId>
+                        <version>${project.version}</version>
+                     </dependency>
+                     <dependency>
+                        <groupId>org.apache.activemq</groupId>
+                        <artifactId>activemq-core-client</artifactId>
+                        <version>${project.version}</version>
+                     </dependency>
+                     <dependency>
+                        <groupId>org.apache.activemq</groupId>
+                        <artifactId>activemq-server</artifactId>
+                        <version>${project.version}</version>
+                     </dependency>
+                     <dependency>
+                        <groupId>org.apache.activemq</groupId>
+                        <artifactId>activemq-jms-client</artifactId>
+                        <version>${project.version}</version>
+                     </dependency>
+                     <dependency>
+                        <groupId>org.apache.activemq</groupId>
+                        <artifactId>activemq-jms-server</artifactId>
+                        <version>${project.version}</version>
+                     </dependency>
+                     <dependency>
+                        <groupId>io.netty</groupId>
+                        <artifactId>netty-all</artifactId>
+                        <version>${netty.version}</version>
+                     </dependency>
+                     <dependency>
+                        <groupId>org.apache.geronimo.specs</groupId>
+                        <artifactId>geronimo-jms_2.0_spec</artifactId>
+                        <version>${geronimo.jms.2.spec.version}</version>
+                     </dependency>
+                  </dependencies>
                   <configuration>
-                     
<clientClass>org.apache.activemq.jms.example.ClientKickoffExample</clientClass>
-                     <args>
-                        <param>tcp://localhost:61616</param>
-                     </args>
+                     <waitOnStart>false</waitOnStart>
+                     
<configurationDir>${basedir}/target/classes/activemq/server0</configurationDir>
                   </configuration>
-               </execution>
-               <execution>
-                  <id>stop</id>
-                  <goals>
-                     <goal>stop</goal>
-                  </goals>
-               </execution>
-            </executions>
-            <dependencies>
-               <dependency>
-                  <groupId>org.apache.activemq.examples.jms</groupId>
-                  <artifactId>activemq-jms-client-kickoff-example</artifactId>
-                  <version>${project.version}</version>
-               </dependency>
-               <dependency>
-                  <groupId>org.apache.activemq</groupId>
-                  <artifactId>activemq-core-client</artifactId>
-                  <version>${project.version}</version>
-               </dependency>
-               <dependency>
-                  <groupId>org.apache.activemq</groupId>
-                  <artifactId>activemq-server</artifactId>
-                  <version>${project.version}</version>
-               </dependency>
-               <dependency>
-                  <groupId>org.apache.activemq</groupId>
-                  <artifactId>activemq-jms-client</artifactId>
-                  <version>${project.version}</version>
-               </dependency>
-               <dependency>
-                  <groupId>org.apache.activemq</groupId>
-                  <artifactId>activemq-jms-server</artifactId>
-                  <version>${project.version}</version>
-               </dependency>
-               <dependency>
-                  <groupId>io.netty</groupId>
-                  <artifactId>netty-all</artifactId>
-                  <version>${netty.version}</version>
-               </dependency>
-               <dependency>
-                  <groupId>org.apache.geronimo.specs</groupId>
-                  <artifactId>geronimo-jms_2.0_spec</artifactId>
-                  <version>${geronimo.jms.2.spec.version}</version>
-               </dependency>
-            </dependencies>
-            <configuration>
-               <waitOnStart>false</waitOnStart>
-               
<configurationDir>${basedir}/target/classes/activemq/server0</configurationDir>
-            </configuration>
-         </plugin>
-      </plugins>
-   </build>
+               </plugin>
+            </plugins>
+         </build>
+      </profile>
+   </profiles>
 
 </project>

http://git-wip-us.apache.org/repos/asf/activemq-6/blob/8db56b73/examples/jms/client-kickoff/readme.html
----------------------------------------------------------------------
diff --git a/examples/jms/client-kickoff/readme.html 
b/examples/jms/client-kickoff/readme.html
index 878f8d1..6b2732e 100644
--- a/examples/jms/client-kickoff/readme.html
+++ b/examples/jms/client-kickoff/readme.html
@@ -50,7 +50,7 @@ under the License.
      </p>
          
      <h2>Example step-by-step</h2>
-     <p><em>To run the example, simply type <code>mvn verify</code> from this 
directory</em></p>
+     <p><em>To run the example, simply type <code>mvn verify -Pexample</code> 
from this directory</em></p>
      <ol>
         <li>First we need to get an initial context so we can look-up the JMS 
connection factory and destination objects from JNDI. This initial context will 
get its properties from <a 
href="src/main/resources/activemq/server0/client-jndi.properties">client-jndi.properties</a></li>
         <pre class="prettyprint">

http://git-wip-us.apache.org/repos/asf/activemq-6/blob/8db56b73/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 2e116e9..1850066 100644
--- a/examples/jms/client-side-failoverlistener/pom.xml
+++ b/examples/jms/client-side-failoverlistener/pom.xml
@@ -44,134 +44,139 @@ under the License.
       </dependency>
    </dependencies>
 
-   <build>
-      <plugins>
-         <plugin>
-            <groupId>org.apache.activemq</groupId>
-            <artifactId>activemq-maven-plugin</artifactId>
-            <executions>
-               <execution>
-                  <id>start0</id>
-                  <goals>
-                     <goal>start</goal>
-                  </goals>
-                  <configuration>
-                     
<configurationDir>${basedir}/target/classes/activemq/server0</configurationDir>
-                     <systemProperties>
-                        <property>
-                           <name>data.dir</name>
-                           <value>${basedir}/target/</value>
-                        </property>
-                        <property>
-                           <name>udp-address</name>
-                           <value>${udp-address}</value>
-                        </property>
-                     </systemProperties>
-                  </configuration>
-               </execution>
-               <execution>
-                  <id>start1</id>
-                  <goals>
-                     <goal>start</goal>
-                  </goals>
+   <profiles>
+      <profile>
+         <id>example</id>
+         <build>
+            <plugins>
+               <plugin>
+                  <groupId>org.apache.activemq</groupId>
+                  <artifactId>activemq-maven-plugin</artifactId>
+                  <executions>
+                     <execution>
+                        <id>start0</id>
+                        <goals>
+                           <goal>start</goal>
+                        </goals>
+                        <configuration>
+                           
<configurationDir>${basedir}/target/classes/activemq/server0</configurationDir>
+                           <systemProperties>
+                              <property>
+                                 <name>data.dir</name>
+                                 <value>${basedir}/target/</value>
+                              </property>
+                              <property>
+                                 <name>udp-address</name>
+                                 <value>${udp-address}</value>
+                              </property>
+                           </systemProperties>
+                        </configuration>
+                     </execution>
+                     <execution>
+                        <id>start1</id>
+                        <goals>
+                           <goal>start</goal>
+                        </goals>
+                        <configuration>
+                           
<configurationDir>${basedir}/target/classes/activemq/server1</configurationDir>
+                           <fork>true</fork>
+                           <systemProperties>
+                              <property>
+                                 <name>data.dir</name>
+                                 <value>${basedir}/target/</value>
+                              </property>
+                              <property>
+                                 <name>udp-address</name>
+                                 <value>${udp-address}</value>
+                              </property>
+                           </systemProperties>
+                        </configuration>
+                     </execution>
+
+                     <execution>
+                        <id>runClient</id>
+                        <goals>
+                           <goal>runClient</goal>
+                        </goals>
+                        <configuration>
+                           
<clientClass>org.apache.activemq.jms.example.ClientSideFailoverListerExample</clientClass>
+                           <systemProperties>
+                              <property>
+                                 <name>exampleConfigDir</name>
+                                 
<value>${basedir}/target/classes/activemq</value>
+                              </property>
+                           </systemProperties>
+                        </configuration>
+                     </execution>
+                     <execution>
+                        <id>stop0</id>
+                        <goals>
+                           <goal>stop</goal>
+                        </goals>
+                        <configuration>
+                           
<configurationDir>${basedir}/target/classes/activemq/server0</configurationDir>
+                        </configuration>
+                     </execution>
+                     <execution>
+                        <id>stop1</id>
+                        <goals>
+                           <goal>stop</goal>
+                        </goals>
+                        <configuration>
+                           
<configurationDir>${basedir}/target/classes/activemq/server1</configurationDir>
+                        </configuration>
+                     </execution>
+                  </executions>
+                  <dependencies>
+                     <dependency>
+                        <groupId>org.apache.activemq.examples.jms</groupId>
+                        
<artifactId>activemq-jms-client-side-fileoverlistener-example</artifactId>
+                        <version>${project.version}</version>
+                     </dependency>
+                     <dependency>
+                        <groupId>org.apache.activemq</groupId>
+                        <artifactId>activemq-core-client</artifactId>
+                        <version>${project.version}</version>
+                     </dependency>
+                     <dependency>
+                        <groupId>org.apache.activemq</groupId>
+                        <artifactId>activemq-server</artifactId>
+                        <version>${project.version}</version>
+                     </dependency>
+                     <dependency>
+                        <groupId>org.apache.activemq</groupId>
+                        <artifactId>activemq-jms-client</artifactId>
+                        <version>${project.version}</version>
+                     </dependency>
+                     <dependency>
+                        <groupId>org.apache.activemq</groupId>
+                        <artifactId>activemq-jms-server</artifactId>
+                        <version>${project.version}</version>
+                     </dependency>
+                     <dependency>
+                        <groupId>io.netty</groupId>
+                        <artifactId>netty-all</artifactId>
+                        <version>${netty.version}</version>
+                     </dependency>
+                     <dependency>
+                        <groupId>org.apache.geronimo.specs</groupId>
+                        <artifactId>geronimo-jms_2.0_spec</artifactId>
+                        <version>${geronimo.jms.2.spec.version}</version>
+                     </dependency>
+                  </dependencies>
                   <configuration>
-                     
<configurationDir>${basedir}/target/classes/activemq/server1</configurationDir>
-                     <fork>true</fork>
+                     <waitOnStart>false</waitOnStart>
                      <systemProperties>
                         <property>
                            <name>data.dir</name>
                            <value>${basedir}/target/</value>
                         </property>
-                        <property>
-                           <name>udp-address</name>
-                           <value>${udp-address}</value>
-                        </property>
                      </systemProperties>
                   </configuration>
-               </execution>
-
-               <execution>
-                  <id>runClient</id>
-                  <goals>
-                     <goal>runClient</goal>
-                  </goals>
-                  <configuration>
-                     
<clientClass>org.apache.activemq.jms.example.ClientSideFailoverListerExample</clientClass>
-                     <systemProperties>
-                        <property>
-                           <name>exampleConfigDir</name>
-                           <value>${basedir}/target/classes/activemq</value>
-                        </property>
-                     </systemProperties>
-                  </configuration>
-               </execution>
-               <execution>
-                  <id>stop0</id>
-                  <goals>
-                     <goal>stop</goal>
-                  </goals>
-                  <configuration>
-                     
<configurationDir>${basedir}/target/classes/activemq/server0</configurationDir>
-                  </configuration>
-               </execution>
-               <execution>
-                  <id>stop1</id>
-                  <goals>
-                     <goal>stop</goal>
-                  </goals>
-                  <configuration>
-                     
<configurationDir>${basedir}/target/classes/activemq/server1</configurationDir>
-                  </configuration>
-               </execution>
-            </executions>
-            <dependencies>
-               <dependency>
-                  <groupId>org.apache.activemq.examples.jms</groupId>
-                  
<artifactId>activemq-jms-client-side-fileoverlistener-example</artifactId>
-                  <version>${project.version}</version>
-               </dependency>
-               <dependency>
-                  <groupId>org.apache.activemq</groupId>
-                  <artifactId>activemq-core-client</artifactId>
-                  <version>${project.version}</version>
-               </dependency>
-               <dependency>
-                  <groupId>org.apache.activemq</groupId>
-                  <artifactId>activemq-server</artifactId>
-                  <version>${project.version}</version>
-               </dependency>
-               <dependency>
-                  <groupId>org.apache.activemq</groupId>
-                  <artifactId>activemq-jms-client</artifactId>
-                  <version>${project.version}</version>
-               </dependency>
-               <dependency>
-                  <groupId>org.apache.activemq</groupId>
-                  <artifactId>activemq-jms-server</artifactId>
-                  <version>${project.version}</version>
-               </dependency>
-               <dependency>
-                  <groupId>io.netty</groupId>
-                  <artifactId>netty-all</artifactId>
-                  <version>${netty.version}</version>
-               </dependency>
-               <dependency>
-                  <groupId>org.apache.geronimo.specs</groupId>
-                  <artifactId>geronimo-jms_2.0_spec</artifactId>
-                  <version>${geronimo.jms.2.spec.version}</version>
-               </dependency>
-            </dependencies>
-            <configuration>
-               <waitOnStart>false</waitOnStart>
-               <systemProperties>
-                  <property>
-                     <name>data.dir</name>
-                     <value>${basedir}/target/</value>
-                  </property>
-               </systemProperties>
-            </configuration>
-         </plugin>
-      </plugins>
-   </build>
+               </plugin>
+            </plugins>
+         </build>
+      </profile>
+   </profiles>
 
 </project>

http://git-wip-us.apache.org/repos/asf/activemq-6/blob/8db56b73/examples/jms/client-side-failoverlistener/readme.html
----------------------------------------------------------------------
diff --git a/examples/jms/client-side-failoverlistener/readme.html 
b/examples/jms/client-side-failoverlistener/readme.html
index 8165d5e..a64e4b1 100644
--- a/examples/jms/client-side-failoverlistener/readme.html
+++ b/examples/jms/client-side-failoverlistener/readme.html
@@ -33,7 +33,7 @@ under the License.
         but after a while the first server will crash. This will trigger an 
fail-over event.</p>
          
      <h2>Example step-by-step</h2>
-     <p><em>To run the example, simply type <code>mvn verify</code> from this 
directory</em></p>
+     <p><em>To run the example, simply type <code>mvn verify -Pexample</code> 
from this directory</em></p>
      <ol>
         <li>First we need to get an initial context so we can look-up the JMS 
connection factory and destination objects from JNDI. This initial context will 
get its properties from <a 
href="src/main/resources/activemq/server0/client-jndi.properties">client-jndi.properties</a></li>
         <pre class="prettyprint">

http://git-wip-us.apache.org/repos/asf/activemq-6/blob/8db56b73/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 b1896a9..2a2022a 100644
--- a/examples/jms/client-side-load-balancing/pom.xml
+++ b/examples/jms/client-side-load-balancing/pom.xml
@@ -44,55 +44,148 @@ under the License.
       </dependency>
    </dependencies>
 
-   <build>
-      <plugins>
-         <plugin>
-            <groupId>org.apache.activemq</groupId>
-            <artifactId>activemq-maven-plugin</artifactId>
-            <executions>
-               <execution>
-                  <id>start0</id>
-                  <goals>
-                     <goal>start</goal>
-                  </goals>
-                  <configuration>
-                     
<configurationDir>${basedir}/target/classes/activemq/server0</configurationDir>
-                     <systemProperties>
-                        <property>
-                           <name>data.dir</name>
-                           <value>${basedir}/target/</value>
-                        </property>
-                     </systemProperties>
-                  </configuration>
-               </execution>
-               <execution>
-                  <id>start1</id>
-                  <goals>
-                     <goal>start</goal>
-                  </goals>
-                  <configuration>
-                     
<configurationDir>${basedir}/target/classes/activemq/server1</configurationDir>
-                     <fork>true</fork>
-                     <systemProperties>
-                        <property>
-                           <name>data.dir</name>
-                           <value>${basedir}/target/</value>
-                        </property>
-                        <property>
-                           <name>udp-address</name>
-                           <value>${udp-address}</value>
-                        </property>
-                     </systemProperties>
-                  </configuration>
-               </execution>
-               <execution>
-                  <id>start2</id>
-                  <goals>
-                     <goal>start</goal>
-                  </goals>
+   <profiles>
+      <profile>
+         <id>example</id>
+         <build>
+            <plugins>
+               <plugin>
+                  <groupId>org.apache.activemq</groupId>
+                  <artifactId>activemq-maven-plugin</artifactId>
+                  <executions>
+                     <execution>
+                        <id>start0</id>
+                        <goals>
+                           <goal>start</goal>
+                        </goals>
+                        <configuration>
+                           
<configurationDir>${basedir}/target/classes/activemq/server0</configurationDir>
+                           <systemProperties>
+                              <property>
+                                 <name>data.dir</name>
+                                 <value>${basedir}/target/</value>
+                              </property>
+                           </systemProperties>
+                        </configuration>
+                     </execution>
+                     <execution>
+                        <id>start1</id>
+                        <goals>
+                           <goal>start</goal>
+                        </goals>
+                        <configuration>
+                           
<configurationDir>${basedir}/target/classes/activemq/server1</configurationDir>
+                           <fork>true</fork>
+                           <systemProperties>
+                              <property>
+                                 <name>data.dir</name>
+                                 <value>${basedir}/target/</value>
+                              </property>
+                              <property>
+                                 <name>udp-address</name>
+                                 <value>${udp-address}</value>
+                              </property>
+                           </systemProperties>
+                        </configuration>
+                     </execution>
+                     <execution>
+                        <id>start2</id>
+                        <goals>
+                           <goal>start</goal>
+                        </goals>
+                        <configuration>
+                           
<configurationDir>${basedir}/target/classes/activemq/server2</configurationDir>
+                           <fork>true</fork>
+                           <systemProperties>
+                              <property>
+                                 <name>data.dir</name>
+                                 <value>${basedir}/target/</value>
+                              </property>
+                           </systemProperties>
+                        </configuration>
+                     </execution>
+                     <execution>
+                        <id>runClient</id>
+                        <goals>
+                           <goal>runClient</goal>
+                        </goals>
+                        <configuration>
+                           
<clientClass>org.apache.activemq.jms.example.ClientSideLoadBalancingExample</clientClass>
+                           <systemProperties>
+                              <property>
+                                 <name>exampleConfigDir</name>
+                                 
<value>${basedir}/target/classes/activemq</value>
+                              </property>
+                           </systemProperties>
+                        </configuration>
+                     </execution>
+                     <execution>
+                        <id>stop0</id>
+                        <goals>
+                           <goal>stop</goal>
+                        </goals>
+                        <configuration>
+                           
<configurationDir>${basedir}/target/classes/activemq/server0</configurationDir>
+                        </configuration>
+                     </execution>
+                     <execution>
+                        <id>stop1</id>
+                        <goals>
+                           <goal>stop</goal>
+                        </goals>
+                        <configuration>
+                           
<configurationDir>${basedir}/target/classes/activemq/server1</configurationDir>
+                        </configuration>
+                     </execution>
+                     <execution>
+                        <id>stop2</id>
+                        <goals>
+                           <goal>stop</goal>
+                        </goals>
+                        <configuration>
+                           
<configurationDir>${basedir}/target/classes/activemq/server2</configurationDir>
+                        </configuration>
+                     </execution>
+                  </executions>
+                  <dependencies>
+                     <dependency>
+                        <groupId>org.apache.activemq.examples.jms</groupId>
+                        
<artifactId>activemq-jms-client-side-load-balancing-example</artifactId>
+                        <version>${project.version}</version>
+                     </dependency>
+                     <dependency>
+                        <groupId>org.apache.activemq</groupId>
+                        <artifactId>activemq-core-client</artifactId>
+                        <version>${project.version}</version>
+                     </dependency>
+                     <dependency>
+                        <groupId>org.apache.activemq</groupId>
+                        <artifactId>activemq-server</artifactId>
+                        <version>${project.version}</version>
+                     </dependency>
+                     <dependency>
+                        <groupId>org.apache.activemq</groupId>
+                        <artifactId>activemq-jms-client</artifactId>
+                        <version>${project.version}</version>
+                     </dependency>
+                     <dependency>
+                        <groupId>org.apache.activemq</groupId>
+                        <artifactId>activemq-jms-server</artifactId>
+                        <version>${project.version}</version>
+                     </dependency>
+                     <dependency>
+                        <groupId>io.netty</groupId>
+                        <artifactId>netty-all</artifactId>
+                        <version>${netty.version}</version>
+                     </dependency>
+                     <dependency>
+                        <groupId>org.apache.geronimo.specs</groupId>
+                        <artifactId>geronimo-jms_2.0_spec</artifactId>
+                        <version>${geronimo.jms.2.spec.version}</version>
+                     </dependency>
+                  </dependencies>
                   <configuration>
-                     
<configurationDir>${basedir}/target/classes/activemq/server2</configurationDir>
-                     <fork>true</fork>
+                     <waitOnStart>false</waitOnStart>
                      <systemProperties>
                         <property>
                            <name>data.dir</name>
@@ -100,98 +193,10 @@ under the License.
                         </property>
                      </systemProperties>
                   </configuration>
-               </execution>
-               <execution>
-                  <id>runClient</id>
-                  <goals>
-                     <goal>runClient</goal>
-                  </goals>
-                  <configuration>
-                     
<clientClass>org.apache.activemq.jms.example.ClientSideLoadBalancingExample</clientClass>
-                     <systemProperties>
-                        <property>
-                           <name>exampleConfigDir</name>
-                           <value>${basedir}/target/classes/activemq</value>
-                        </property>
-                     </systemProperties>
-                  </configuration>
-               </execution>
-               <execution>
-                  <id>stop0</id>
-                  <goals>
-                     <goal>stop</goal>
-                  </goals>
-                  <configuration>
-                     
<configurationDir>${basedir}/target/classes/activemq/server0</configurationDir>
-                  </configuration>
-               </execution>
-               <execution>
-                  <id>stop1</id>
-                  <goals>
-                     <goal>stop</goal>
-                  </goals>
-                  <configuration>
-                     
<configurationDir>${basedir}/target/classes/activemq/server1</configurationDir>
-                  </configuration>
-               </execution>
-               <execution>
-                  <id>stop2</id>
-                  <goals>
-                     <goal>stop</goal>
-                  </goals>
-                  <configuration>
-                     
<configurationDir>${basedir}/target/classes/activemq/server2</configurationDir>
-                  </configuration>
-               </execution>
-            </executions>
-            <dependencies>
-               <dependency>
-                  <groupId>org.apache.activemq.examples.jms</groupId>
-                  
<artifactId>activemq-jms-client-side-load-balancing-example</artifactId>
-                  <version>${project.version}</version>
-               </dependency>
-               <dependency>
-                  <groupId>org.apache.activemq</groupId>
-                  <artifactId>activemq-core-client</artifactId>
-                  <version>${project.version}</version>
-               </dependency>
-               <dependency>
-                  <groupId>org.apache.activemq</groupId>
-                  <artifactId>activemq-server</artifactId>
-                  <version>${project.version}</version>
-               </dependency>
-               <dependency>
-                  <groupId>org.apache.activemq</groupId>
-                  <artifactId>activemq-jms-client</artifactId>
-                  <version>${project.version}</version>
-               </dependency>
-               <dependency>
-                  <groupId>org.apache.activemq</groupId>
-                  <artifactId>activemq-jms-server</artifactId>
-                  <version>${project.version}</version>
-               </dependency>
-               <dependency>
-                  <groupId>io.netty</groupId>
-                  <artifactId>netty-all</artifactId>
-                  <version>${netty.version}</version>
-               </dependency>
-               <dependency>
-                  <groupId>org.apache.geronimo.specs</groupId>
-                  <artifactId>geronimo-jms_2.0_spec</artifactId>
-                  <version>${geronimo.jms.2.spec.version}</version>
-               </dependency>
-            </dependencies>
-            <configuration>
-               <waitOnStart>false</waitOnStart>
-               <systemProperties>
-                  <property>
-                     <name>data.dir</name>
-                     <value>${basedir}/target/</value>
-                  </property>
-               </systemProperties>
-            </configuration>
-         </plugin>
-      </plugins>
-   </build>
+               </plugin>
+            </plugins>
+         </build>
+      </profile>
+   </profiles>
 
 </project>

http://git-wip-us.apache.org/repos/asf/activemq-6/blob/8db56b73/examples/jms/client-side-load-balancing/readme.html
----------------------------------------------------------------------
diff --git a/examples/jms/client-side-load-balancing/readme.html 
b/examples/jms/client-side-load-balancing/readme.html
index 5edd59a..da54387 100644
--- a/examples/jms/client-side-load-balancing/readme.html
+++ b/examples/jms/client-side-load-balancing/readme.html
@@ -45,7 +45,7 @@ under the License.
      section of the user manual.</p>      
 
      <h2>Example step-by-step</h2>
-     <p><i>To run the example, simply type <code>mvn verify</code> from this 
directory</i></p>
+     <p><i>To run the example, simply type <code>mvn verify -Pexample</code> 
from this directory</i></p>
 
      <ol>
         <li> Get an initial context for looking up JNDI from server 0.</li>

http://git-wip-us.apache.org/repos/asf/activemq-6/blob/8db56b73/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 43d8ae7..4b12ad7 100644
--- a/examples/jms/clustered-durable-subscription/pom.xml
+++ b/examples/jms/clustered-durable-subscription/pom.xml
@@ -44,35 +44,123 @@ under the License.
       </dependency>
    </dependencies>
 
-   <build>
-      <plugins>
-         <plugin>
-            <groupId>org.apache.activemq</groupId>
-            <artifactId>activemq-maven-plugin</artifactId>
-            <executions>
-               <execution>
-                  <id>start0</id>
-                  <goals>
-                     <goal>start</goal>
-                  </goals>
-                  <configuration>
-                     
<configurationDir>${basedir}/target/classes/activemq/server0</configurationDir>
-                     <systemProperties>
-                        <property>
-                           <name>data.dir</name>
-                           <value>${basedir}/target/</value>
-                        </property>
-                     </systemProperties>
-                  </configuration>
-               </execution>
-               <execution>
-                  <id>start1</id>
-                  <goals>
-                     <goal>start</goal>
-                  </goals>
+   <profiles>
+      <profile>
+         <id>example</id>
+         <build>
+            <plugins>
+               <plugin>
+                  <groupId>org.apache.activemq</groupId>
+                  <artifactId>activemq-maven-plugin</artifactId>
+                  <executions>
+                     <execution>
+                        <id>start0</id>
+                        <goals>
+                           <goal>start</goal>
+                        </goals>
+                        <configuration>
+                           
<configurationDir>${basedir}/target/classes/activemq/server0</configurationDir>
+                           <systemProperties>
+                              <property>
+                                 <name>data.dir</name>
+                                 <value>${basedir}/target/</value>
+                              </property>
+                           </systemProperties>
+                        </configuration>
+                     </execution>
+                     <execution>
+                        <id>start1</id>
+                        <goals>
+                           <goal>start</goal>
+                        </goals>
+                        <configuration>
+                           
<configurationDir>${basedir}/target/classes/activemq/server1</configurationDir>
+                           <fork>true</fork>
+                           <systemProperties>
+                              <property>
+                                 <name>data.dir</name>
+                                 <value>${basedir}/target/</value>
+                              </property>
+                           </systemProperties>
+                        </configuration>
+                     </execution>
+                     <execution>
+                        <id>runClient</id>
+                        <goals>
+                           <goal>runClient</goal>
+                        </goals>
+                        <configuration>
+                           
<clientClass>org.apache.activemq.jms.example.ClusteredDurableSubscriptionExample</clientClass>
+                           <args>
+                              <param>tcp://localhost:61616</param>
+                              <param>tcp://localhost:61617</param>
+                           </args>
+                           <systemProperties>
+                              <property>
+                                 <name>exampleConfigDir</name>
+                                 
<value>${basedir}/target/classes/activemq</value>
+                              </property>
+                           </systemProperties>
+                        </configuration>
+                     </execution>
+                     <execution>
+                        <id>stop0</id>
+                        <goals>
+                           <goal>stop</goal>
+                        </goals>
+                        <configuration>
+                           
<configurationDir>${basedir}/target/classes/activemq/server0</configurationDir>
+                        </configuration>
+                     </execution>
+                     <execution>
+                        <id>stop1</id>
+                        <goals>
+                           <goal>stop</goal>
+                        </goals>
+                        <configuration>
+                           
<configurationDir>${basedir}/target/classes/activemq/server1</configurationDir>
+                        </configuration>
+                     </execution>
+                  </executions>
+                  <dependencies>
+                     <dependency>
+                        <groupId>org.apache.activemq.examples.jms</groupId>
+                        
<artifactId>activemq-jms-clustered-durable-subscription-example</artifactId>
+                        <version>${project.version}</version>
+                     </dependency>
+                     <dependency>
+                        <groupId>org.apache.activemq</groupId>
+                        <artifactId>activemq-core-client</artifactId>
+                        <version>${project.version}</version>
+                     </dependency>
+                     <dependency>
+                        <groupId>org.apache.activemq</groupId>
+                        <artifactId>activemq-server</artifactId>
+                        <version>${project.version}</version>
+                     </dependency>
+                     <dependency>
+                        <groupId>org.apache.activemq</groupId>
+                        <artifactId>activemq-jms-client</artifactId>
+                        <version>${project.version}</version>
+                     </dependency>
+                     <dependency>
+                        <groupId>org.apache.activemq</groupId>
+                        <artifactId>activemq-jms-server</artifactId>
+                        <version>${project.version}</version>
+                     </dependency>
+                     <dependency>
+                        <groupId>io.netty</groupId>
+                        <artifactId>netty-all</artifactId>
+                        <version>${netty.version}</version>
+                     </dependency>
+                     <dependency>
+                        <groupId>org.apache.geronimo.specs</groupId>
+                        <artifactId>geronimo-jms_2.0_spec</artifactId>
+                        <version>${geronimo.jms.2.spec.version}</version>
+                     </dependency>
+                  </dependencies>
                   <configuration>
-                     
<configurationDir>${basedir}/target/classes/activemq/server1</configurationDir>
-                     <fork>true</fork>
+                     <waitOnStart>false</waitOnStart>
                      <systemProperties>
                         <property>
                            <name>data.dir</name>
@@ -80,93 +168,10 @@ under the License.
                         </property>
                      </systemProperties>
                   </configuration>
-               </execution>
-               <execution>
-                  <id>runClient</id>
-                  <goals>
-                     <goal>runClient</goal>
-                  </goals>
-                  <configuration>
-                     
<clientClass>org.apache.activemq.jms.example.ClusteredDurableSubscriptionExample</clientClass>
-                     <args>
-                        <param>tcp://localhost:61616</param>
-                        <param>tcp://localhost:61617</param>
-                     </args>
-                     <systemProperties>
-                        <property>
-                           <name>exampleConfigDir</name>
-                           <value>${basedir}/target/classes/activemq</value>
-                        </property>
-                     </systemProperties>
-                  </configuration>
-               </execution>
-               <execution>
-                  <id>stop0</id>
-                  <goals>
-                     <goal>stop</goal>
-                  </goals>
-                  <configuration>
-                     
<configurationDir>${basedir}/target/classes/activemq/server0</configurationDir>
-                  </configuration>
-               </execution>
-               <execution>
-                  <id>stop1</id>
-                  <goals>
-                     <goal>stop</goal>
-                  </goals>
-                  <configuration>
-                     
<configurationDir>${basedir}/target/classes/activemq/server1</configurationDir>
-                  </configuration>
-               </execution>
-            </executions>
-            <dependencies>
-               <dependency>
-                  <groupId>org.apache.activemq.examples.jms</groupId>
-                  
<artifactId>activemq-jms-clustered-durable-subscription-example</artifactId>
-                  <version>${project.version}</version>
-               </dependency>
-               <dependency>
-                  <groupId>org.apache.activemq</groupId>
-                  <artifactId>activemq-core-client</artifactId>
-                  <version>${project.version}</version>
-               </dependency>
-               <dependency>
-                  <groupId>org.apache.activemq</groupId>
-                  <artifactId>activemq-server</artifactId>
-                  <version>${project.version}</version>
-               </dependency>
-               <dependency>
-                  <groupId>org.apache.activemq</groupId>
-                  <artifactId>activemq-jms-client</artifactId>
-                  <version>${project.version}</version>
-               </dependency>
-               <dependency>
-                  <groupId>org.apache.activemq</groupId>
-                  <artifactId>activemq-jms-server</artifactId>
-                  <version>${project.version}</version>
-               </dependency>
-               <dependency>
-                  <groupId>io.netty</groupId>
-                  <artifactId>netty-all</artifactId>
-                  <version>${netty.version}</version>
-               </dependency>
-               <dependency>
-                  <groupId>org.apache.geronimo.specs</groupId>
-                  <artifactId>geronimo-jms_2.0_spec</artifactId>
-                  <version>${geronimo.jms.2.spec.version}</version>
-               </dependency>
-            </dependencies>
-            <configuration>
-               <waitOnStart>false</waitOnStart>
-               <systemProperties>
-                  <property>
-                     <name>data.dir</name>
-                     <value>${basedir}/target/</value>
-                  </property>
-               </systemProperties>
-            </configuration>
-         </plugin>
-      </plugins>
-   </build>
+               </plugin>
+            </plugins>
+         </build>
+      </profile>
+   </profiles>
 
 </project>

http://git-wip-us.apache.org/repos/asf/activemq-6/blob/8db56b73/examples/jms/clustered-durable-subscription/readme.html
----------------------------------------------------------------------
diff --git a/examples/jms/clustered-durable-subscription/readme.html 
b/examples/jms/clustered-durable-subscription/readme.html
index 84b5166..3af64f8 100644
--- a/examples/jms/clustered-durable-subscription/readme.html
+++ b/examples/jms/clustered-durable-subscription/readme.html
@@ -60,7 +60,7 @@ under the License.
      section of the user manual.</p>    
        
      <h2>Example step-by-step</h2>
-     <p><i>To run the example, simply type <code>mvn verify</code> from this 
directory</i></p>
+     <p><i>To run the example, simply type <code>mvn verify -Pexample</code> 
from this directory</i></p>
 
      <ol>
         <li> Get an initial context for looking up JNDI from server 0.</li>

http://git-wip-us.apache.org/repos/asf/activemq-6/blob/8db56b73/examples/jms/clustered-grouping/pom.xml
----------------------------------------------------------------------
diff --git a/examples/jms/clustered-grouping/pom.xml 
b/examples/jms/clustered-grouping/pom.xml
index ffd3ea5..98a0899 100644
--- a/examples/jms/clustered-grouping/pom.xml
+++ b/examples/jms/clustered-grouping/pom.xml
@@ -44,167 +44,172 @@ under the License.
       </dependency>
    </dependencies>
 
-   <build>
-      <plugins>
-         <plugin>
-            <groupId>org.apache.activemq</groupId>
-            <artifactId>activemq-maven-plugin</artifactId>
-            <executions>
-               <execution>
-                  <id>start0</id>
-                  <goals>
-                     <goal>start</goal>
-                  </goals>
-                  <configuration>
-                     
<configurationDir>${basedir}/target/classes/activemq/server0</configurationDir>
-                     <systemProperties>
-                        <property>
-                           <name>data.dir</name>
-                           <value>${basedir}/target/</value>
-                        </property>
-                        <property>
-                           <name>udp-address</name>
-                           <value>${udp-address}</value>
-                        </property>
-                     </systemProperties>
-                  </configuration>
-               </execution>
-               <execution>
-                  <id>start1</id>
-                  <goals>
-                     <goal>start</goal>
-                  </goals>
-                  <configuration>
-                     
<configurationDir>${basedir}/target/classes/activemq/server1</configurationDir>
-                     <fork>true</fork>
-                     <systemProperties>
-                        <property>
-                           <name>data.dir</name>
-                           <value>${basedir}/target/</value>
-                        </property>
-                        <property>
-                           <name>udp-address</name>
-                           <value>${udp-address}</value>
-                        </property>
-                     </systemProperties>
-                  </configuration>
-               </execution>
-               <execution>
-                  <id>start2</id>
-                  <goals>
-                     <goal>start</goal>
-                  </goals>
+   <profiles>
+      <profile>
+         <id>example</id>
+         <build>
+            <plugins>
+               <plugin>
+                  <groupId>org.apache.activemq</groupId>
+                  <artifactId>activemq-maven-plugin</artifactId>
+                  <executions>
+                     <execution>
+                        <id>start0</id>
+                        <goals>
+                           <goal>start</goal>
+                        </goals>
+                        <configuration>
+                           
<configurationDir>${basedir}/target/classes/activemq/server0</configurationDir>
+                           <systemProperties>
+                              <property>
+                                 <name>data.dir</name>
+                                 <value>${basedir}/target/</value>
+                              </property>
+                              <property>
+                                 <name>udp-address</name>
+                                 <value>${udp-address}</value>
+                              </property>
+                           </systemProperties>
+                        </configuration>
+                     </execution>
+                     <execution>
+                        <id>start1</id>
+                        <goals>
+                           <goal>start</goal>
+                        </goals>
+                        <configuration>
+                           
<configurationDir>${basedir}/target/classes/activemq/server1</configurationDir>
+                           <fork>true</fork>
+                           <systemProperties>
+                              <property>
+                                 <name>data.dir</name>
+                                 <value>${basedir}/target/</value>
+                              </property>
+                              <property>
+                                 <name>udp-address</name>
+                                 <value>${udp-address}</value>
+                              </property>
+                           </systemProperties>
+                        </configuration>
+                     </execution>
+                     <execution>
+                        <id>start2</id>
+                        <goals>
+                           <goal>start</goal>
+                        </goals>
+                        <configuration>
+                           
<configurationDir>${basedir}/target/classes/activemq/server2</configurationDir>
+                           <fork>true</fork>
+                           <systemProperties>
+                              <property>
+                                 <name>data.dir</name>
+                                 <value>${basedir}/target/</value>
+                              </property>
+                              <property>
+                                 <name>udp-address</name>
+                                 <value>${udp-address}</value>
+                              </property>
+                           </systemProperties>
+                        </configuration>
+                     </execution>
+                     <execution>
+                        <id>runClient</id>
+                        <goals>
+                           <goal>runClient</goal>
+                        </goals>
+                        <configuration>
+                           
<clientClass>org.apache.activemq.jms.example.ClusteredGroupingExample</clientClass>
+                           <args>
+                              <param>tcp://localhost:61616</param>
+                              <param>tcp://localhost:61617</param>
+                              <param>tcp://localhost:61618</param>
+                           </args>
+                           <systemProperties>
+                              <property>
+                                 <name>exampleConfigDir</name>
+                                 
<value>${basedir}/target/classes/activemq</value>
+                              </property>
+                           </systemProperties>
+                        </configuration>
+                     </execution>
+                     <execution>
+                        <id>stop0</id>
+                        <goals>
+                           <goal>stop</goal>
+                        </goals>
+                        <configuration>
+                           
<configurationDir>${basedir}/target/classes/activemq/server0</configurationDir>
+                        </configuration>
+                     </execution>
+                     <execution>
+                        <id>stop1</id>
+                        <goals>
+                           <goal>stop</goal>
+                        </goals>
+                        <configuration>
+                           
<configurationDir>${basedir}/target/classes/activemq/server1</configurationDir>
+                        </configuration>
+                     </execution>
+                     <execution>
+                        <id>stop2</id>
+                        <goals>
+                           <goal>stop</goal>
+                        </goals>
+                        <configuration>
+                           
<configurationDir>${basedir}/target/classes/activemq/server2</configurationDir>
+                        </configuration>
+                     </execution>
+                  </executions>
+                  <dependencies>
+                     <dependency>
+                        <groupId>org.apache.activemq.examples.jms</groupId>
+                        
<artifactId>activemq-jms-clustered-grouping-example</artifactId>
+                        <version>${project.version}</version>
+                     </dependency>
+                     <dependency>
+                        <groupId>org.apache.activemq</groupId>
+                        <artifactId>activemq-core-client</artifactId>
+                        <version>${project.version}</version>
+                     </dependency>
+                     <dependency>
+                        <groupId>org.apache.activemq</groupId>
+                        <artifactId>activemq-server</artifactId>
+                        <version>${project.version}</version>
+                     </dependency>
+                     <dependency>
+                        <groupId>org.apache.activemq</groupId>
+                        <artifactId>activemq-jms-client</artifactId>
+                        <version>${project.version}</version>
+                     </dependency>
+                     <dependency>
+                        <groupId>org.apache.activemq</groupId>
+                        <artifactId>activemq-jms-server</artifactId>
+                        <version>${project.version}</version>
+                     </dependency>
+                     <dependency>
+                        <groupId>io.netty</groupId>
+                        <artifactId>netty-all</artifactId>
+                        <version>${netty.version}</version>
+                     </dependency>
+                     <dependency>
+                        <groupId>org.apache.geronimo.specs</groupId>
+                        <artifactId>geronimo-jms_2.0_spec</artifactId>
+                        <version>${geronimo.jms.2.spec.version}</version>
+                     </dependency>
+                  </dependencies>
                   <configuration>
-                     
<configurationDir>${basedir}/target/classes/activemq/server2</configurationDir>
-                     <fork>true</fork>
+                     <waitOnStart>false</waitOnStart>
                      <systemProperties>
                         <property>
                            <name>data.dir</name>
                            <value>${basedir}/target/</value>
                         </property>
-                        <property>
-                           <name>udp-address</name>
-                           <value>${udp-address}</value>
-                        </property>
-                     </systemProperties>
-                  </configuration>
-               </execution>
-               <execution>
-                  <id>runClient</id>
-                  <goals>
-                     <goal>runClient</goal>
-                  </goals>
-                  <configuration>
-                     
<clientClass>org.apache.activemq.jms.example.ClusteredGroupingExample</clientClass>
-                     <args>
-                        <param>tcp://localhost:61616</param>
-                        <param>tcp://localhost:61617</param>
-                        <param>tcp://localhost:61618</param>
-                     </args>
-                     <systemProperties>
-                        <property>
-                           <name>exampleConfigDir</name>
-                           <value>${basedir}/target/classes/activemq</value>
-                        </property>
                      </systemProperties>
                   </configuration>
-               </execution>
-               <execution>
-                  <id>stop0</id>
-                  <goals>
-                     <goal>stop</goal>
-                  </goals>
-                  <configuration>
-                     
<configurationDir>${basedir}/target/classes/activemq/server0</configurationDir>
-                  </configuration>
-               </execution>
-               <execution>
-                  <id>stop1</id>
-                  <goals>
-                     <goal>stop</goal>
-                  </goals>
-                  <configuration>
-                     
<configurationDir>${basedir}/target/classes/activemq/server1</configurationDir>
-                  </configuration>
-               </execution>
-               <execution>
-                  <id>stop2</id>
-                  <goals>
-                     <goal>stop</goal>
-                  </goals>
-                  <configuration>
-                     
<configurationDir>${basedir}/target/classes/activemq/server2</configurationDir>
-                  </configuration>
-               </execution>
-            </executions>
-            <dependencies>
-               <dependency>
-                  <groupId>org.apache.activemq.examples.jms</groupId>
-                  
<artifactId>activemq-jms-clustered-grouping-example</artifactId>
-                  <version>${project.version}</version>
-               </dependency>
-               <dependency>
-                  <groupId>org.apache.activemq</groupId>
-                  <artifactId>activemq-core-client</artifactId>
-                  <version>${project.version}</version>
-               </dependency>
-               <dependency>
-                  <groupId>org.apache.activemq</groupId>
-                  <artifactId>activemq-server</artifactId>
-                  <version>${project.version}</version>
-               </dependency>
-               <dependency>
-                  <groupId>org.apache.activemq</groupId>
-                  <artifactId>activemq-jms-client</artifactId>
-                  <version>${project.version}</version>
-               </dependency>
-               <dependency>
-                  <groupId>org.apache.activemq</groupId>
-                  <artifactId>activemq-jms-server</artifactId>
-                  <version>${project.version}</version>
-               </dependency>
-               <dependency>
-                  <groupId>io.netty</groupId>
-                  <artifactId>netty-all</artifactId>
-                  <version>${netty.version}</version>
-               </dependency>
-               <dependency>
-                  <groupId>org.apache.geronimo.specs</groupId>
-                  <artifactId>geronimo-jms_2.0_spec</artifactId>
-                  <version>${geronimo.jms.2.spec.version}</version>
-               </dependency>
-            </dependencies>
-            <configuration>
-               <waitOnStart>false</waitOnStart>
-               <systemProperties>
-                  <property>
-                     <name>data.dir</name>
-                     <value>${basedir}/target/</value>
-                  </property>
-               </systemProperties>
-            </configuration>
-         </plugin>
-      </plugins>
-   </build>
+               </plugin>
+            </plugins>
+         </build>
+      </profile>
+   </profiles>
 
 </project>

http://git-wip-us.apache.org/repos/asf/activemq-6/blob/8db56b73/examples/jms/clustered-grouping/readme.html
----------------------------------------------------------------------
diff --git a/examples/jms/clustered-grouping/readme.html 
b/examples/jms/clustered-grouping/readme.html
index 2920e92..94da4f0 100644
--- a/examples/jms/clustered-grouping/readme.html
+++ b/examples/jms/clustered-grouping/readme.html
@@ -78,7 +78,7 @@ under the License.
      <p>For more information on ActiveMQ clustering and grouping see the 
clustering and grouping
      section of the user manual.</p>      
      <h2>Example step-by-step</h2>
-     <p><i>To run the example, simply type <code>mvn verify</code> from this 
directory</i></p>
+     <p><i>To run the example, simply type <code>mvn verify -Pexample</code> 
from this directory</i></p>
 
       <ol>
         <li> Get an initial context for looking up JNDI from server 0.</li>

http://git-wip-us.apache.org/repos/asf/activemq-6/blob/8db56b73/examples/jms/clustered-jgroups/pom.xml
----------------------------------------------------------------------
diff --git a/examples/jms/clustered-jgroups/pom.xml 
b/examples/jms/clustered-jgroups/pom.xml
index 61dd54e..3743552 100644
--- a/examples/jms/clustered-jgroups/pom.xml
+++ b/examples/jms/clustered-jgroups/pom.xml
@@ -44,121 +44,126 @@ under the License.
       </dependency>
    </dependencies>
 
-   <build>
-      <plugins>
-         <plugin>
-            <groupId>org.apache.activemq</groupId>
-            <artifactId>activemq-maven-plugin</artifactId>
-            <executions>
-               <execution>
-                  <id>start0</id>
-                  <goals>
-                     <goal>start</goal>
-                  </goals>
-                  <configuration>
-                     
<configurationDir>${basedir}/target/classes/activemq/server0</configurationDir>
-                     <systemProperties>
-                        <!-- this is to make sure the example will run fine on 
any box.
-                             you may tweak this to any property you like. More 
information on the JGroups docs  -->
-                        <property>
-                           <name>jgroups.bind_addr</name>
-                           <value>::1</value>
-                        </property>
-                     </systemProperties>
-                  </configuration>
-               </execution>
-               <execution>
-                  <id>start1</id>
-                  <goals>
-                     <goal>start</goal>
-                  </goals>
-                  <configuration>
-                     
<configurationDir>${basedir}/target/classes/activemq/server1</configurationDir>
-                     <fork>true</fork>
-                     <systemProperties>
-                        <!-- this is to make sure the example will run fine on 
any box. 
-                             you may tweak this to any property you like. More 
information on the JGroups docs  -->
-                        <property>
-                           <name>jgroups.bind_addr</name>
-                           <value>::1</value>
-                        </property>
-                     </systemProperties>
-                  </configuration>
-               </execution>
-               <execution>
-                  <id>runClient</id>
-                  <goals>
-                     <goal>runClient</goal>
-                  </goals>
-                  <configuration>
-                     
<clientClass>org.apache.activemq.jms.example.ClusteredJgroupsExample</clientClass>
-                     <args>
-                        <param>tcp://localhost:61616</param>
-                        <param>tcp://localhost:61617</param>
-                     </args>
-                  </configuration>
-               </execution>
-               <execution>
-                  <id>stop0</id>
-                  <goals>
-                     <goal>stop</goal>
-                  </goals>
-                  <configuration>
-                     
<configurationDir>${basedir}/target/classes/activemq/server0</configurationDir>
-                  </configuration>
-               </execution>
-               <execution>
-                  <id>stop1</id>
-                  <goals>
-                     <goal>stop</goal>
-                  </goals>
+   <profiles>
+      <profile>
+         <id>example</id>
+         <build>
+            <plugins>
+               <plugin>
+                  <groupId>org.apache.activemq</groupId>
+                  <artifactId>activemq-maven-plugin</artifactId>
+                  <executions>
+                     <execution>
+                        <id>start0</id>
+                        <goals>
+                           <goal>start</goal>
+                        </goals>
+                        <configuration>
+                           
<configurationDir>${basedir}/target/classes/activemq/server0</configurationDir>
+                           <systemProperties>
+                              <!-- this is to make sure the example will run 
fine on any box.
+                                   you may tweak this to any property you 
like. More information on the JGroups docs  -->
+                              <property>
+                                 <name>jgroups.bind_addr</name>
+                                 <value>::1</value>
+                              </property>
+                           </systemProperties>
+                        </configuration>
+                     </execution>
+                     <execution>
+                        <id>start1</id>
+                        <goals>
+                           <goal>start</goal>
+                        </goals>
+                        <configuration>
+                           
<configurationDir>${basedir}/target/classes/activemq/server1</configurationDir>
+                           <fork>true</fork>
+                           <systemProperties>
+                              <!-- this is to make sure the example will run 
fine on any box.
+                                   you may tweak this to any property you 
like. More information on the JGroups docs  -->
+                              <property>
+                                 <name>jgroups.bind_addr</name>
+                                 <value>::1</value>
+                              </property>
+                           </systemProperties>
+                        </configuration>
+                     </execution>
+                     <execution>
+                        <id>runClient</id>
+                        <goals>
+                           <goal>runClient</goal>
+                        </goals>
+                        <configuration>
+                           
<clientClass>org.apache.activemq.jms.example.ClusteredJgroupsExample</clientClass>
+                           <args>
+                              <param>tcp://localhost:61616</param>
+                              <param>tcp://localhost:61617</param>
+                           </args>
+                        </configuration>
+                     </execution>
+                     <execution>
+                        <id>stop0</id>
+                        <goals>
+                           <goal>stop</goal>
+                        </goals>
+                        <configuration>
+                           
<configurationDir>${basedir}/target/classes/activemq/server0</configurationDir>
+                        </configuration>
+                     </execution>
+                     <execution>
+                        <id>stop1</id>
+                        <goals>
+                           <goal>stop</goal>
+                        </goals>
+                        <configuration>
+                           
<configurationDir>${basedir}/target/classes/activemq/server1</configurationDir>
+                        </configuration>
+                     </execution>
+                  </executions>
+                  <dependencies>
+                     <dependency>
+                        <groupId>org.apache.activemq.examples.jms</groupId>
+                        <artifactId>clustered-jgroups</artifactId>
+                        <version>${project.version}</version>
+                     </dependency>
+                     <dependency>
+                        <groupId>org.apache.activemq</groupId>
+                        <artifactId>activemq-core-client</artifactId>
+                        <version>${project.version}</version>
+                     </dependency>
+                     <dependency>
+                        <groupId>org.apache.activemq</groupId>
+                        <artifactId>activemq-server</artifactId>
+                        <version>${project.version}</version>
+                     </dependency>
+                     <dependency>
+                        <groupId>org.apache.activemq</groupId>
+                        <artifactId>activemq-jms-client</artifactId>
+                        <version>${project.version}</version>
+                     </dependency>
+                     <dependency>
+                        <groupId>org.apache.activemq</groupId>
+                        <artifactId>activemq-jms-server</artifactId>
+                        <version>${project.version}</version>
+                     </dependency>
+                     <dependency>
+                        <groupId>io.netty</groupId>
+                        <artifactId>netty-all</artifactId>
+                        <version>${netty.version}</version>
+                     </dependency>
+                     <dependency>
+                        <groupId>org.apache.geronimo.specs</groupId>
+                        <artifactId>geronimo-jms_2.0_spec</artifactId>
+                        <version>${geronimo.jms.2.spec.version}</version>
+                     </dependency>
+                  </dependencies>
                   <configuration>
-                     
<configurationDir>${basedir}/target/classes/activemq/server1</configurationDir>
+                     <waitOnStart>false</waitOnStart>
                   </configuration>
-               </execution>
-            </executions>
-            <dependencies>
-               <dependency>
-                  <groupId>org.apache.activemq.examples.jms</groupId>
-                  <artifactId>clustered-jgroups</artifactId>
-                  <version>${project.version}</version>
-               </dependency>
-               <dependency>
-                  <groupId>org.apache.activemq</groupId>
-                  <artifactId>activemq-core-client</artifactId>
-                  <version>${project.version}</version>
-               </dependency>
-               <dependency>
-                  <groupId>org.apache.activemq</groupId>
-                  <artifactId>activemq-server</artifactId>
-                  <version>${project.version}</version>
-               </dependency>
-               <dependency>
-                  <groupId>org.apache.activemq</groupId>
-                  <artifactId>activemq-jms-client</artifactId>
-                  <version>${project.version}</version>
-               </dependency>
-               <dependency>
-                  <groupId>org.apache.activemq</groupId>
-                  <artifactId>activemq-jms-server</artifactId>
-                  <version>${project.version}</version>
-               </dependency>
-               <dependency>
-                  <groupId>io.netty</groupId>
-                  <artifactId>netty-all</artifactId>
-                  <version>${netty.version}</version>
-               </dependency>
-               <dependency>
-                  <groupId>org.apache.geronimo.specs</groupId>
-                  <artifactId>geronimo-jms_2.0_spec</artifactId>
-                  <version>${geronimo.jms.2.spec.version}</version>
-               </dependency>
-            </dependencies>
-            <configuration>
-               <waitOnStart>false</waitOnStart>
-            </configuration>
-         </plugin>
-      </plugins>
-   </build>
+               </plugin>
+            </plugins>
+         </build>
+      </profile>
+   </profiles>
 
 </project>

Reply via email to