http://git-wip-us.apache.org/repos/asf/activemq-6/blob/8db56b73/examples/jms/multiple-failover-failback/pom.xml ---------------------------------------------------------------------- diff --git a/examples/jms/multiple-failover-failback/pom.xml b/examples/jms/multiple-failover-failback/pom.xml index 98b4cfb..a55e762 100644 --- a/examples/jms/multiple-failover-failback/pom.xml +++ b/examples/jms/multiple-failover-failback/pom.xml @@ -44,162 +44,167 @@ 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.MultipleFailoverFailbackExample</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-multiple-failover-failback-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.MultipleFailoverFailbackExample</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-multiple-failover-failback-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/multiple-failover/pom.xml ---------------------------------------------------------------------- diff --git a/examples/jms/multiple-failover/pom.xml b/examples/jms/multiple-failover/pom.xml index b908ab3..8712fef 100644 --- a/examples/jms/multiple-failover/pom.xml +++ b/examples/jms/multiple-failover/pom.xml @@ -44,162 +44,167 @@ 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.MultipleFailoverExample</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-multiple-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/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.MultipleFailoverExample</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-multiple-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/no-consumer-buffering/pom.xml ---------------------------------------------------------------------- diff --git a/examples/jms/no-consumer-buffering/pom.xml b/examples/jms/no-consumer-buffering/pom.xml index c52775d..63274bb 100644 --- a/examples/jms/no-consumer-buffering/pom.xml +++ b/examples/jms/no-consumer-buffering/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.NoConsumerBufferingExample</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-no-consumer-buffering-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.NoConsumerBufferingExample</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-no-consumer-buffering-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/no-consumer-buffering/readme.html ---------------------------------------------------------------------- diff --git a/examples/jms/no-consumer-buffering/readme.html b/examples/jms/no-consumer-buffering/readme.html index a693064..aa64266 100644 --- a/examples/jms/no-consumer-buffering/readme.html +++ b/examples/jms/no-consumer-buffering/readme.html @@ -69,7 +69,7 @@ under the License. <p>If the messages had been buffered in each consumer they would not be available to be consumed in an order determined afer delivery.</p> - <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>Create an initial context to perform the JNDI lookup.</li> http://git-wip-us.apache.org/repos/asf/activemq-6/blob/8db56b73/examples/jms/non-transaction-failover/pom.xml ---------------------------------------------------------------------- diff --git a/examples/jms/non-transaction-failover/pom.xml b/examples/jms/non-transaction-failover/pom.xml index ac56075..db4da25 100644 --- a/examples/jms/non-transaction-failover/pom.xml +++ b/examples/jms/non-transaction-failover/pom.xml @@ -44,127 +44,132 @@ 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> - <systemProperties> - <property> - <name>data.dir</name> - <value>${basedir}/target/</value> - </property> - <property> - <name>udp-address</name> - <value>${udp-address}</value> - </property> - </systemProperties> - <configurationDir>${basedir}/target/classes/activemq/server0</configurationDir> - </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.NonTransactionFailoverExample</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> + <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> + <systemProperties> + <property> + <name>data.dir</name> + <value>${basedir}/target/</value> + </property> + <property> + <name>udp-address</name> + <value>${udp-address}</value> + </property> + </systemProperties> + <configurationDir>${basedir}/target/classes/activemq/server0</configurationDir> + </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.NonTransactionFailoverExample</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>non-transaction-failover</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>non-transaction-failover</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> http://git-wip-us.apache.org/repos/asf/activemq-6/blob/8db56b73/examples/jms/non-transaction-failover/readme.html ---------------------------------------------------------------------- diff --git a/examples/jms/non-transaction-failover/readme.html b/examples/jms/non-transaction-failover/readme.html index 39d563f..c5c552f 100644 --- a/examples/jms/non-transaction-failover/readme.html +++ b/examples/jms/non-transaction-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/openwire/pom.xml ---------------------------------------------------------------------- diff --git a/examples/jms/openwire/pom.xml b/examples/jms/openwire/pom.xml index 4457a6f..3bf0748 100644 --- a/examples/jms/openwire/pom.xml +++ b/examples/jms/openwire/pom.xml @@ -32,6 +32,96 @@ under the License. <packaging>jar</packaging> <name>ActiveMQ6 JMS Openwire Example</name> + <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.OpenWireExample</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-openwire-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-openwire-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> + </profile> + </profiles> <dependencies> <dependency> <groupId>org.apache.activemq.examples.jms</groupId> @@ -48,90 +138,5 @@ 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> - <configuration> - <clientClass>org.apache.activemq.jms.example.OpenWireExample</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-openwire-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-openwire-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> </project> http://git-wip-us.apache.org/repos/asf/activemq-6/blob/8db56b73/examples/jms/openwire/readme.html ---------------------------------------------------------------------- diff --git a/examples/jms/openwire/readme.html b/examples/jms/openwire/readme.html index fee796e..5ab6f25 100644 --- a/examples/jms/openwire/readme.html +++ b/examples/jms/openwire/readme.html @@ -30,7 +30,7 @@ under the License. <p>This example shows you how to configure ActiveMQ server to communicate with an ActiveMQ JMS client using ActiveMQ's native openwire protocol.</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 create an ActiveMQ connection factory.</code></li> http://git-wip-us.apache.org/repos/asf/activemq-6/blob/8db56b73/examples/jms/paging/pom.xml ---------------------------------------------------------------------- diff --git a/examples/jms/paging/pom.xml b/examples/jms/paging/pom.xml index 9f4ca09..e2cfadd 100644 --- a/examples/jms/paging/pom.xml +++ b/examples/jms/paging/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.PagingExample</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-paging-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.PagingExample</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-paging-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/paging/readme.html ---------------------------------------------------------------------- diff --git a/examples/jms/paging/readme.html b/examples/jms/paging/readme.html index 53c36c0..6813b04 100644 --- a/examples/jms/paging/readme.html +++ b/examples/jms/paging/readme.html @@ -37,7 +37,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/perf/pom.xml ---------------------------------------------------------------------- diff --git a/examples/jms/perf/pom.xml b/examples/jms/perf/pom.xml index 77bff21..ea99e79 100644 --- a/examples/jms/perf/pom.xml +++ b/examples/jms/perf/pom.xml @@ -57,18 +57,11 @@ under the License. <artifactId>activemq-jms-examples-common</artifactId> <version>${project.version}</version> </dependency> - <dependency> - <groupId>org.apache.geronimo.specs</groupId> - <artifactId>geronimo-jms_2.0_spec</artifactId> - </dependency> </dependencies> <profiles> <profile> - <id>default</id> - <activation> - <activeByDefault>true</activeByDefault> - </activation> + <id>server</id> <build> <plugins> <plugin> @@ -130,6 +123,7 @@ under the License. <dependency> <groupId>org.apache.geronimo.specs</groupId> <artifactId>geronimo-jms_2.0_spec</artifactId> + <version>${geronimo.jms.2.spec.version}</version> </dependency> </dependencies> </plugin> http://git-wip-us.apache.org/repos/asf/activemq-6/blob/8db56b73/examples/jms/perf/readme.html ---------------------------------------------------------------------- diff --git a/examples/jms/perf/readme.html b/examples/jms/perf/readme.html index 1a4b219..dcf1772 100644 --- a/examples/jms/perf/readme.html +++ b/examples/jms/perf/readme.html @@ -27,7 +27,7 @@ under the License. <body onload="prettyPrint()"> <h1>JMS Simple Performance</h1> - <p>To start the server run <code>mvn verify</code></p> + <p>To start the server run <code>mvn verify -Pexample</code></p> <p>To start the listener run <code>mvn -Plistener package</code></p> http://git-wip-us.apache.org/repos/asf/activemq-6/blob/8db56b73/examples/jms/pom.xml ---------------------------------------------------------------------- diff --git a/examples/jms/pom.xml b/examples/jms/pom.xml index 27171bb..7c6cb0a 100644 --- a/examples/jms/pom.xml +++ b/examples/jms/pom.xml @@ -38,20 +38,109 @@ under the License. <profiles> <profile> - <id>maven-release</id> + <id>release</id> <modules> + <module>aerogear</module> <module>activemq-jms-examples-common</module> + <module>activemq-ra-rar</module> + <module>application-layer-failover</module> + <module>bridge</module> + <module>browser</module> + <module>client-kickoff</module> + <module>client-side-load-balancing</module> + <module>client-side-failoverlistener</module> + <module>clustered-durable-subscription</module> + <module>clustered-grouping</module> + <module>clustered-jgroups</module> + <module>clustered-queue</module> + <module>clustered-standalone</module> + <module>clustered-static-oneway</module> + <module>clustered-static-discovery</module> + <module>clustered-topic</module> + <module>colocated-failover</module> + <module>colocated-failover-scale-down</module> + <module>consumer-rate-limit</module> + <module>dead-letter</module> + <module>delayed-redelivery</module> + <module>divert</module> + <module>durable-subscription</module> + <module>embedded</module> + <module>embedded-simple</module> + <module>expiry</module> + <module>http-transport</module> + <module>interceptor</module> + <module>instantiate-connection-factory</module> + <module>ha-policy-autobackup</module> + <module>jms-auto-closeable</module> + <module>jms-bridge</module> + <module>jms-completion-listener</module> + <module>jms-context</module> + <module>jms-shared-consumer</module> + <module>jmx</module> + <module>large-message</module> + <module>last-value-queue</module> + <module>management</module> + <module>management-notifications</module> + <module>message-counters</module> + <module>message-group</module> + <module>message-group2</module> + <module>message-priority</module> + <module>multiple-failover</module> + <module>multiple-failover-failback</module> + <module>no-consumer-buffering</module> + <module>non-transaction-failover</module> + <module>openwire</module> + <module>paging</module> + <module>perf</module> + <module>pre-acknowledge</module> + <module>producer-rate-limit</module> + <module>proton-cpp</module> + <module>proton-j</module> + <module>proton-ruby</module> + <module>queue</module> + <module>queue-message-redistribution</module> + <module>queue-requestor</module> + <module>queue-selector</module> + <module>reattach-node</module> + <module>rest</module> + <module>replicated-failback</module> + <module>replicated-failback-static</module> + <module>replicated-multiple-failover</module> + <module>replicated-transaction-failover</module> + <module>request-reply</module> + <module>scale-down</module> + <module>scheduled-message</module> + <module>security</module> + <module>send-acknowledgements</module> + <module>spring-integration</module> + <module>ssl-enabled</module> + <module>static-selector</module> + <module>static-selector-jms</module> + <module>stomp</module> + <module>stomp-websockets</module> + <module>stomp1.1</module> + <module>stomp1.2</module> + <module>stop-server-failover</module> + <module>symmetric-cluster</module> + <module>temp-queue</module> + <module>topic</module> + <module>topic-hierarchies</module> + <module>topic-selector-example1</module> + <module>topic-selector-example2</module> + <module>transactional</module> + <module>transaction-failover</module> + <module>xa-heuristic</module> + <module>xa-receive</module> + <module>xa-send</module> </modules> </profile> <profile> - <id>examples</id> + <id>example</id> <activation> <activeByDefault>true</activeByDefault> </activation> <modules> <module>activemq-jms-examples-common</module> - <!--this needs to be run standalone--> - <!--<module>applet</module>--> <module>application-layer-failover</module> <module>bridge</module> <module>browser</module> @@ -126,12 +215,6 @@ under the License. <module>xa-send</module> </modules> </profile> - <profile> - <id>release</id> - <modules> - <module>activemq-jms-examples-common</module> - </modules> - </profile> </profiles> </project> http://git-wip-us.apache.org/repos/asf/activemq-6/blob/8db56b73/examples/jms/pre-acknowledge/pom.xml ---------------------------------------------------------------------- diff --git a/examples/jms/pre-acknowledge/pom.xml b/examples/jms/pre-acknowledge/pom.xml index 5ef6f0c..445776b 100644 --- a/examples/jms/pre-acknowledge/pom.xml +++ b/examples/jms/pre-acknowledge/pom.xml @@ -44,88 +44,93 @@ 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.PreacknowledgeExample</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-pre-acknowledge-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.PreacknowledgeExample</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-pre-acknowledge-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/pre-acknowledge/readme.html ---------------------------------------------------------------------- diff --git a/examples/jms/pre-acknowledge/readme.html b/examples/jms/pre-acknowledge/readme.html index a9d667f..f322628 100644 --- a/examples/jms/pre-acknowledge/readme.html +++ b/examples/jms/pre-acknowledge/readme.html @@ -46,7 +46,7 @@ under the License. a special, ActiveMQ specific acknowledgement mode, given by the value of <code>ActiveMQJMSConstants.PRE_ACKNOWLEDGE</code>. <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>Create an initial context to perform the JNDI lookup.</li>
