activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From martyntay...@apache.org
Subject [02/14] activemq-6 git commit: added examples to release profile
Date Mon, 09 Mar 2015 11:25:29 GMT
http://git-wip-us.apache.org/repos/asf/activemq-6/blob/8db56b73/examples/jms/stomp1.1/pom.xml
----------------------------------------------------------------------
diff --git a/examples/jms/stomp1.1/pom.xml b/examples/jms/stomp1.1/pom.xml
index a7ca522..a80817f 100644
--- a/examples/jms/stomp1.1/pom.xml
+++ b/examples/jms/stomp1.1/pom.xml
@@ -44,90 +44,95 @@ 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>
-                     <systemProperties>
-                        <property>
-                           <name>data.dir</name>
-                           <value>${basedir}/target/</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>
+                           <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.StompExample</clientClass>
+                        </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-stomp1.1-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-stomp-protocol</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.StompExample</clientClass>
+                     <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-stomp1.1-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-stomp-protocol</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/stomp1.1/readme.html
----------------------------------------------------------------------
diff --git a/examples/jms/stomp1.1/readme.html b/examples/jms/stomp1.1/readme.html
index e3cab8f..c4252bc 100644
--- a/examples/jms/stomp1.1/readme.html
+++ b/examples/jms/stomp1.1/readme.html
@@ -33,7 +33,7 @@ under the License.
        The client will then consume a message from a JMS Queue and check it is the message sent with Stomp.</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>We create a TCP socket to connect to the Stomp port

http://git-wip-us.apache.org/repos/asf/activemq-6/blob/8db56b73/examples/jms/stomp1.2/pom.xml
----------------------------------------------------------------------
diff --git a/examples/jms/stomp1.2/pom.xml b/examples/jms/stomp1.2/pom.xml
index 0375a48..4b02f37 100644
--- a/examples/jms/stomp1.2/pom.xml
+++ b/examples/jms/stomp1.2/pom.xml
@@ -44,90 +44,95 @@ 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>
-                     <systemProperties>
-                        <property>
-                           <name>data.dir</name>
-                           <value>${basedir}/target/</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>
+                           <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.StompExample</clientClass>
+                        </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-stomp1.2-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>org.apache.activemq</groupId>
+                        <artifactId>activemq-stomp-protocol</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.StompExample</clientClass>
+                     <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-stomp1.2-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>org.apache.activemq</groupId>
-                  <artifactId>activemq-stomp-protocol</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/stomp1.2/readme.html
----------------------------------------------------------------------
diff --git a/examples/jms/stomp1.2/readme.html b/examples/jms/stomp1.2/readme.html
index 53e553c..9900025 100644
--- a/examples/jms/stomp1.2/readme.html
+++ b/examples/jms/stomp1.2/readme.html
@@ -33,7 +33,7 @@ under the License.
        The client will then consume a message from a JMS Queue and check it is the message sent with Stomp.</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>We create a TCP socket to connect to the Stomp port

http://git-wip-us.apache.org/repos/asf/activemq-6/blob/8db56b73/examples/jms/stop-server-failover/pom.xml
----------------------------------------------------------------------
diff --git a/examples/jms/stop-server-failover/pom.xml b/examples/jms/stop-server-failover/pom.xml
index c1fce77..d5fcace 100644
--- a/examples/jms/stop-server-failover/pom.xml
+++ b/examples/jms/stop-server-failover/pom.xml
@@ -44,137 +44,142 @@ 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.StopServerFailoverExample</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-stop-server-failover-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.StopServerFailoverExample</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-stop-server-failover-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/stop-server-failover/readme.html
----------------------------------------------------------------------
diff --git a/examples/jms/stop-server-failover/readme.html b/examples/jms/stop-server-failover/readme.html
index 39d563f..c5c552f 100644
--- a/examples/jms/stop-server-failover/readme.html
+++ b/examples/jms/stop-server-failover/readme.html
@@ -38,7 +38,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>
      <p>In this example, the live server is server 1, and the backup server is server 0</p>
      <p>The connection will initially be created to server1, server 1 will crash, and the client will carry on
      seamlessly on server 0, the backup server.</p>

http://git-wip-us.apache.org/repos/asf/activemq-6/blob/8db56b73/examples/jms/symmetric-cluster/pom.xml
----------------------------------------------------------------------
diff --git a/examples/jms/symmetric-cluster/pom.xml b/examples/jms/symmetric-cluster/pom.xml
index 200c4be..81a3e40 100644
--- a/examples/jms/symmetric-cluster/pom.xml
+++ b/examples/jms/symmetric-cluster/pom.xml
@@ -44,267 +44,262 @@ 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>
-                     <jndiPort>1199</jndiPort>
-                     <jndiRmiPort>1198</jndiRmiPort>
-                     <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>
-                     <jndiPort>1299</jndiPort>
-                     <jndiRmiPort>1298</jndiRmiPort>
-                     <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>start3</id>
-                  <goals>
-                     <goal>start</goal>
-                  </goals>
-                  <configuration>
-                     <jndiPort>1399</jndiPort>
-                     <jndiRmiPort>1398</jndiRmiPort>
-                     <configurationDir>${basedir}/target/classes/activemq/server3</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>start4</id>
-                  <goals>
-                     <goal>start</goal>
-                  </goals>
-                  <configuration>
-                     <jndiPort>1499</jndiPort>
-                     <jndiRmiPort>1498</jndiRmiPort>
-                     <configurationDir>${basedir}/target/classes/activemq/server4</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>start5</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>start3</id>
+                        <goals>
+                           <goal>start</goal>
+                        </goals>
+                        <configuration>
+                           <configurationDir>${basedir}/target/classes/activemq/server3</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>start4</id>
+                        <goals>
+                           <goal>start</goal>
+                        </goals>
+                        <configuration>
+                           <configurationDir>${basedir}/target/classes/activemq/server4</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>start5</id>
+                        <goals>
+                           <goal>start</goal>
+                        </goals>
+                        <configuration>
+                           <configurationDir>${basedir}/target/classes/activemq/server5</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.SymmetricClusterExample</clientClass>
+                           <args>
+                              <param>tcp://localhost:61616</param>
+                              <param>tcp://localhost:61617</param>
+                              <param>tcp://localhost:61618</param>
+                              <param>tcp://localhost:61619</param>
+                              <param>tcp://localhost:61620</param>
+                              <param>tcp://localhost:5450</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>
+                     <execution>
+                        <id>stop3</id>
+                        <goals>
+                           <goal>stop</goal>
+                        </goals>
+                        <configuration>
+                           <configurationDir>${basedir}/target/classes/activemq/server3</configurationDir>
+                        </configuration>
+                     </execution>
+                     <execution>
+                        <id>stop4</id>
+                        <goals>
+                           <goal>stop</goal>
+                        </goals>
+                        <configuration>
+                           <configurationDir>${basedir}/target/classes/activemq/server4</configurationDir>
+                        </configuration>
+                     </execution>
+                     <execution>
+                        <id>stop5</id>
+                        <goals>
+                           <goal>stop</goal>
+                        </goals>
+                        <configuration>
+                           <configurationDir>${basedir}/target/classes/activemq/server5</configurationDir>
+                        </configuration>
+                     </execution>
+                  </executions>
+                  <dependencies>
+                     <dependency>
+                        <groupId>org.apache.activemq.examples.jms</groupId>
+                        <artifactId>activemq-jms-symmetric-cluster-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>
-                     <jndiPort>1599</jndiPort>
-                     <jndiRmiPort>1598</jndiRmiPort>
-                     <configurationDir>${basedir}/target/classes/activemq/server5</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.SymmetricClusterExample</clientClass>
-                     <args>
-                        <param>tcp://localhost:61616</param>
-                        <param>tcp://localhost:61617</param>
-                        <param>tcp://localhost:61618</param>
-                        <param>tcp://localhost:61619</param>
-                        <param>tcp://localhost:61620</param>
-                        <param>tcp://localhost:5450</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>
-               <execution>
-                  <id>stop3</id>
-                  <goals>
-                     <goal>stop</goal>
-                  </goals>
-                  <configuration>
-                     <configurationDir>${basedir}/target/classes/activemq/server3</configurationDir>
-                  </configuration>
-               </execution>
-               <execution>
-                  <id>stop4</id>
-                  <goals>
-                     <goal>stop</goal>
-                  </goals>
-                  <configuration>
-                     <configurationDir>${basedir}/target/classes/activemq/server4</configurationDir>
-                  </configuration>
-               </execution>
-               <execution>
-                  <id>stop5</id>
-                  <goals>
-                     <goal>stop</goal>
-                  </goals>
-                  <configuration>
-                     <configurationDir>${basedir}/target/classes/activemq/server5</configurationDir>
-                  </configuration>
-               </execution>
-            </executions>
-            <dependencies>
-               <dependency>
-                  <groupId>org.apache.activemq.examples.jms</groupId>
-                  <artifactId>activemq-jms-symmetric-cluster-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/symmetric-cluster/readme.html
----------------------------------------------------------------------
diff --git a/examples/jms/symmetric-cluster/readme.html b/examples/jms/symmetric-cluster/readme.html
index b514351..59acd58 100644
--- a/examples/jms/symmetric-cluster/readme.html
+++ b/examples/jms/symmetric-cluster/readme.html
@@ -68,7 +68,7 @@ under the License.
     <p>For more information on configuring ActiveMQ clustering in general, please see the clustering
      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>We instantiate a connection factory directly, specifying the UDP address and port for discovering

http://git-wip-us.apache.org/repos/asf/activemq-6/blob/8db56b73/examples/jms/temp-queue/pom.xml
----------------------------------------------------------------------
diff --git a/examples/jms/temp-queue/pom.xml b/examples/jms/temp-queue/pom.xml
index 6574b3e..2a2e171 100644
--- a/examples/jms/temp-queue/pom.xml
+++ b/examples/jms/temp-queue/pom.xml
@@ -44,85 +44,90 @@ 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>
-                     <systemProperties>
-                        <property>
-                           <name>data.dir</name>
-                           <value>${basedir}/target/</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>
+                           <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.TemporaryQueueExample</clientClass>
+                        </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-temp-queue-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.TemporaryQueueExample</clientClass>
+                     <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-temp-queue-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/temp-queue/readme.html
----------------------------------------------------------------------
diff --git a/examples/jms/temp-queue/readme.html b/examples/jms/temp-queue/readme.html
index a167e4c..fcc8c56 100644
--- a/examples/jms/temp-queue/readme.html
+++ b/examples/jms/temp-queue/readme.html
@@ -35,7 +35,7 @@ under the License.
          Please consult the JMS 1.1 specification for full details.</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 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/topic-hierarchies/pom.xml
----------------------------------------------------------------------
diff --git a/examples/jms/topic-hierarchies/pom.xml b/examples/jms/topic-hierarchies/pom.xml
index 0787010..8248f58 100644
--- a/examples/jms/topic-hierarchies/pom.xml
+++ b/examples/jms/topic-hierarchies/pom.xml
@@ -44,85 +44,90 @@ 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>
-                     <systemProperties>
-                        <property>
-                           <name>data.dir</name>
-                           <value>${basedir}/target/</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>
+                           <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.TopicHierarchyExample</clientClass>
+                        </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-topic-hierarchies-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.TopicHierarchyExample</clientClass>
+                     <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-topic-hierarchies-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/topic-hierarchies/readme.html
----------------------------------------------------------------------
diff --git a/examples/jms/topic-hierarchies/readme.html b/examples/jms/topic-hierarchies/readme.html
index e007b48..7ec4a79 100644
--- a/examples/jms/topic-hierarchies/readme.html
+++ b/examples/jms/topic-hierarchies/readme.html
@@ -36,7 +36,7 @@ under the License.
      address "news.usa.wrestling"</p>
      <p>For more information on the wild-card syntax please consult 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>
      <p>In this example we will define a hierarchy of topics in the file <code>activemq-jms.xml</code></p>
      <pre class="prettyprint">
         <code>

http://git-wip-us.apache.org/repos/asf/activemq-6/blob/8db56b73/examples/jms/topic-selector-example1/pom.xml
----------------------------------------------------------------------
diff --git a/examples/jms/topic-selector-example1/pom.xml b/examples/jms/topic-selector-example1/pom.xml
index 65ad547..8a1106e 100644
--- a/examples/jms/topic-selector-example1/pom.xml
+++ b/examples/jms/topic-selector-example1/pom.xml
@@ -44,85 +44,90 @@ 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>
-                     <systemProperties>
-                        <property>
-                           <name>data.dir</name>
-                           <value>${basedir}/target/</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>
+                           <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.TopicSelectorExample1</clientClass>
+                        </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-topic-selector-example1-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.TopicSelectorExample1</clientClass>
+                     <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-topic-selector-example1-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/topic-selector-example1/readme.html
----------------------------------------------------------------------
diff --git a/examples/jms/topic-selector-example1/readme.html b/examples/jms/topic-selector-example1/readme.html
index 519366a..9ddd492 100644
--- a/examples/jms/topic-selector-example1/readme.html
+++ b/examples/jms/topic-selector-example1/readme.html
@@ -33,7 +33,7 @@ under the License.
 
 
      <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/topic-selector-example2/pom.xml
----------------------------------------------------------------------
diff --git a/examples/jms/topic-selector-example2/pom.xml b/examples/jms/topic-selector-example2/pom.xml
index f7d8afb..eb18e35 100644
--- a/examples/jms/topic-selector-example2/pom.xml
+++ b/examples/jms/topic-selector-example2/pom.xml
@@ -44,85 +44,90 @@ 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>
-                     <systemProperties>
-                        <property>
-                           <name>data.dir</name>
-                           <value>${basedir}/target/</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>
+                           <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.TopicSelectorExample2</clientClass>
+                        </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-topic-selector-example2-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.TopicSelectorExample2</clientClass>
+                     <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-topic-selector-example2-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/topic-selector-example2/readme.html
----------------------------------------------------------------------
diff --git a/examples/jms/topic-selector-example2/readme.html b/examples/jms/topic-selector-example2/readme.html
index 75e71ab..6acdcab 100644
--- a/examples/jms/topic-selector-example2/readme.html
+++ b/examples/jms/topic-selector-example2/readme.html
@@ -42,7 +42,7 @@ under the License.
      with different 'color' property values are created and sent.</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>


Mime
View raw message