activemq-artemis/examples/soak/normal/pom.xml

196 lines
7.1 KiB
XML
Raw Normal View History

2014-11-10 11:14:12 -05:00
<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>
<artifactId>hornetq-jms-soak-example</artifactId>
<packaging>jar</packaging>
<name>HornetQ Soak Normal Example</name>
<parent>
<groupId>org.hornetq.example.soak</groupId>
<artifactId>soak-examples</artifactId>
<version>2.5.0-SNAPSHOT</version>
</parent>
<dependencies>
<dependency>
<groupId>org.hornetq</groupId>
<artifactId>hornetq-jms-client</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
<properties>
<server.dir>${basedir}/server0/</server.dir>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.hornetq</groupId>
<artifactId>hornetq-maven-plugin</artifactId>
<dependencies>
<dependency>
<groupId>org.hornetq.example.soak</groupId>
<artifactId>hornetq-jms-soak-example</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.hornetq</groupId>
<artifactId>hornetq-server</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.hornetq</groupId>
<artifactId>hornetq-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.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>
<profiles>
<profile>
<id>local</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.hornetq</groupId>
<artifactId>hornetq-maven-plugin</artifactId>
<executions>
<execution>
<id>start</id>
<goals>
<goal>start</goal>
</goals>
<configuration>
<fork>true</fork>
<hornetqConfigurationDir>${server.dir}</hornetqConfigurationDir>
</configuration>
</execution>
<execution>
<id>runConsumer</id>
<goals>
<goal>runClient</goal>
</goals>
<configuration>
<clientClass>org.hornetq.jms.soak.example.SoakReceiver</clientClass>
<args>
<param>jnp://localhost:1099</param>
</args>
</configuration>
</execution>
<execution>
<id>runProducer</id>
<goals>
<goal>runClient</goal>
</goals>
<configuration>
<clientClass>org.hornetq.jms.soak.example.SoakSender</clientClass>
<args>
<param>jnp://localhost:1099</param>
</args>
</configuration>
</execution>
<execution>
<id>stop</id>
<goals>
<goal>stop</goal>
</goals>
<configuration>
<hornetqConfigurationDir>${server.dir}</hornetqConfigurationDir>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>remote</id>
<build>
<plugins>
<plugin>
<groupId>org.hornetq</groupId>
<artifactId>hornetq-maven-plugin</artifactId>
<executions>
<execution>
<id>runConsumer</id>
<goals>
<goal>runClient</goal>
</goals>
<configuration>
<clientClass>org.hornetq.jms.soak.example.SoakReceiver</clientClass>
<args>
<param>jnp://localhost:1099</param>
</args>
</configuration>
</execution>
<execution>
<id>runProducer</id>
<goals>
<goal>runClient</goal>
</goals>
<configuration>
<clientClass>org.hornetq.jms.soak.example.SoakSender</clientClass>
<args>
<param>jnp://localhost:1099</param>
</args>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>server</id>
<build>
<plugins>
<plugin>
<groupId>org.hornetq</groupId>
<artifactId>hornetq-maven-plugin</artifactId>
<executions>
<execution>
<id>start</id>
<goals>
<goal>start</goal>
</goals>
<configuration>
<hornetqConfigurationDir>${server.dir}</hornetqConfigurationDir>
<fork>true</fork>
<waitOnStart>true</waitOnStart>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>