139 lines
5.6 KiB
XML
139 lines
5.6 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.activemq6.examples.jms</groupId>
|
|
<artifactId>jms-examples</artifactId>
|
|
<version>6.0.0-SNAPSHOT</version>
|
|
</parent>
|
|
|
|
<artifactId>activemq6-jms-jaas-example</artifactId>
|
|
<packaging>jar</packaging>
|
|
<name>ActiveMQ6 JMS "JAAS" Example</name>
|
|
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.apache.activemq6.examples.jms</groupId>
|
|
<artifactId>activemq6-jms-examples-common</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.apache.activemq6</groupId>
|
|
<artifactId>activemq6-core-client</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.apache.activemq6</groupId>
|
|
<artifactId>activemq6-server</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.activemq6</groupId>
|
|
<artifactId>activemq6-maven-plugin</artifactId>
|
|
<version>1.1.0</version>
|
|
<executions>
|
|
<execution>
|
|
<id>start</id>
|
|
<goals>
|
|
<goal>start</goal>
|
|
</goals>
|
|
<configuration>
|
|
<securityManager implementation="org.hornetq.spi.core.security.JAASSecurityManager">
|
|
<configurationName>org.hornetq.jms.example.ExampleLoginModule</configurationName>
|
|
<callbackHandler implementation="org.hornetq.jms.example.ExampleCallbackHandler"/>
|
|
<config implementation="org.hornetq.jms.example.ExampleConfiguration">
|
|
<loginModuleName>org.hornetq.jms.example.ExampleLoginModule</loginModuleName>
|
|
<options>
|
|
<user>jboss</user>
|
|
<pass>redhat</pass>
|
|
<role>guest</role>
|
|
</options>
|
|
</config>
|
|
</securityManager>
|
|
<systemProperties>
|
|
<property>
|
|
<name>build.directory</name>
|
|
<value>${basedir}/target/</value>
|
|
</property>
|
|
</systemProperties>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>runClient</id>
|
|
<goals>
|
|
<goal>runClient</goal>
|
|
</goals>
|
|
<configuration>
|
|
<clientClass>org.hornetq.jms.example.JAASExample</clientClass>
|
|
<args>
|
|
<param>jnp://localhost:1099</param>
|
|
</args>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>stop</id>
|
|
<goals>
|
|
<goal>stop</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.apache.activemq6.examples.jms</groupId>
|
|
<artifactId>activemq6-jms-jaas-example</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.apache.activemq6</groupId>
|
|
<artifactId>activemq6-core-client</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.apache.activemq6</groupId>
|
|
<artifactId>activemq6-server</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.apache.activemq6</groupId>
|
|
<artifactId>activemq6-jms-client</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.apache.activemq6</groupId>
|
|
<artifactId>activemq6-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>
|
|
<hornetqConfigurationDir>${basedir}/target/classes/hornetq/server0</hornetqConfigurationDir>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
|
|
</project> |