activemq-artemis/examples/jms/symmetric-cluster/pom.xml

295 lines
12 KiB
XML

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.apache.activemq.examples.jms</groupId>
<artifactId>jms-examples</artifactId>
<version>6.0.0-SNAPSHOT</version>
</parent>
<artifactId>activemq-jms-symmetric-cluster-example</artifactId>
<packaging>jar</packaging>
<name>ActiveMQ6 JMS Symmetric Cluster Example</name>
<dependencies>
<dependency>
<groupId>org.apache.activemq.examples.jms</groupId>
<artifactId>activemq-jms-examples-common</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.jboss.spec.javax.jms</groupId>
<artifactId>jboss-jms-api_2.0_spec</artifactId>
</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>
<hornetqConfigurationDir>${basedir}/target/classes/hornetq/server0</hornetqConfigurationDir>
<systemProperties>
<property>
<name>build.directory</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>
<hornetqConfigurationDir>${basedir}/target/classes/hornetq/server1</hornetqConfigurationDir>
<fork>true</fork>
<systemProperties>
<property>
<name>build.directory</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>
<hornetqConfigurationDir>${basedir}/target/classes/hornetq/server2</hornetqConfigurationDir>
<fork>true</fork>
<systemProperties>
<property>
<name>build.directory</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>
<hornetqConfigurationDir>${basedir}/target/classes/hornetq/server3</hornetqConfigurationDir>
<fork>true</fork>
<systemProperties>
<property>
<name>build.directory</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>
<hornetqConfigurationDir>${basedir}/target/classes/hornetq/server4</hornetqConfigurationDir>
<fork>true</fork>
<systemProperties>
<property>
<name>build.directory</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>
<jndiPort>1599</jndiPort>
<jndiRmiPort>1598</jndiRmiPort>
<hornetqConfigurationDir>${basedir}/target/classes/hornetq/server5</hornetqConfigurationDir>
<fork>true</fork>
<systemProperties>
<property>
<name>build.directory</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>jnp://localhost:1099</param>
<param>jnp://localhost:1199</param>
<param>jnp://localhost:1299</param>
<param>jnp://localhost:1399</param>
<param>jnp://localhost:1499</param>
<param>jnp://localhost:1599</param>
</args>
<systemProperties>
<property>
<name>exampleConfigDir</name>
<value>${basedir}/target/classes/hornetq</value>
</property>
</systemProperties>
</configuration>
</execution>
<execution>
<id>stop0</id>
<goals>
<goal>stop</goal>
</goals>
<configuration>
<hornetqConfigurationDir>${basedir}/target/classes/hornetq/server0</hornetqConfigurationDir>
</configuration>
</execution>
<execution>
<id>stop1</id>
<goals>
<goal>stop</goal>
</goals>
<configuration>
<hornetqConfigurationDir>${basedir}/target/classes/hornetq/server1</hornetqConfigurationDir>
</configuration>
</execution>
<execution>
<id>stop2</id>
<goals>
<goal>stop</goal>
</goals>
<configuration>
<hornetqConfigurationDir>${basedir}/target/classes/hornetq/server2</hornetqConfigurationDir>
</configuration>
</execution>
<execution>
<id>stop3</id>
<goals>
<goal>stop</goal>
</goals>
<configuration>
<hornetqConfigurationDir>${basedir}/target/classes/hornetq/server3</hornetqConfigurationDir>
</configuration>
</execution>
<execution>
<id>stop4</id>
<goals>
<goal>stop</goal>
</goals>
<configuration>
<hornetqConfigurationDir>${basedir}/target/classes/hornetq/server4</hornetqConfigurationDir>
</configuration>
</execution>
<execution>
<id>stop5</id>
<goals>
<goal>stop</goal>
</goals>
<configuration>
<hornetqConfigurationDir>${basedir}/target/classes/hornetq/server5</hornetqConfigurationDir>
</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.jboss.javaee</groupId>
<artifactId>jboss-jms-api</artifactId>
<version>1.1.0.GA</version>
</dependency>
<dependency>
<groupId>org.jboss.naming</groupId>
<artifactId>jnpserver</artifactId>
<version>5.0.3.GA</version>
</dependency>
</dependencies>
<configuration>
<waitOnStart>false</waitOnStart>
<systemProperties>
<property>
<name>build.directory</name>
<value>${basedir}/target/</value>
</property>
</systemProperties>
</configuration>
</plugin>
</plugins>
</build>
</project>