| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You under the Apache License, Version 2.0 |
| (the "License"); you may not use this file except in compliance with |
| the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| |
| <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" |
| xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| <modelVersion>4.0.0</modelVersion> |
| <parent> |
| <groupId>org.apache.bookkeeper</groupId> |
| <artifactId>bookkeeper</artifactId> |
| <version>4.3.1</version> |
| </parent> |
| <groupId>org.apache.bookkeeper</groupId> |
| <artifactId>hedwig-client-jms</artifactId> |
| <name>hedwig-client-jms</name> |
| <url>http://maven.apache.org</url> |
| |
| <dependencies> |
| <dependency> |
| <groupId>com.google.protobuf</groupId> |
| <artifactId>protobuf-java</artifactId> |
| <version>2.4.1</version> |
| <scope>compile</scope> |
| </dependency> |
| <dependency> |
| <groupId>junit</groupId> |
| <artifactId>junit</artifactId> |
| <version>4.8.1</version> |
| <scope>test</scope> |
| </dependency> |
| <!-- As suggested by Matthieu - Using geronimo-spec-jms instead of ver=1.1, groupId=java.jms, artifcatId=jms --> |
| <dependency> |
| <groupId>geronimo-spec</groupId> |
| <artifactId>geronimo-spec-jms</artifactId> |
| <version>1.1-rc4</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.bookkeeper</groupId> |
| <artifactId>hedwig-client</artifactId> |
| <version>${project.parent.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.bookkeeper</groupId> |
| <artifactId>hedwig-protocol</artifactId> |
| <version>${project.parent.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.bookkeeper</groupId> |
| <artifactId>bookkeeper-server</artifactId> |
| <version>${project.parent.version}</version> |
| <scope>test</scope> |
| <type>test-jar</type> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.bookkeeper</groupId> |
| <artifactId>hedwig-server</artifactId> |
| <version>${project.parent.version}</version> |
| <scope>test</scope> |
| <type>test-jar</type> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.bookkeeper</groupId> |
| <artifactId>hedwig-server</artifactId> |
| <version>${project.parent.version}</version> |
| <scope>test</scope> |
| <type>jar</type> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.bookkeeper</groupId> |
| <artifactId>bookkeeper-server</artifactId> |
| <version>${project.parent.version}</version> |
| <scope>test</scope> |
| <type>jar</type> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.zookeeper</groupId> |
| <artifactId>zookeeper</artifactId> |
| <version>${zookeeper.version}</version> |
| <type>test-jar</type> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>log4j</groupId> |
| <artifactId>log4j</artifactId> |
| <version>1.2.15</version> |
| <scope>provided</scope> |
| <exclusions> |
| <exclusion> |
| <groupId>javax.mail</groupId> |
| <artifactId>mail</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>javax.jms</groupId> |
| <artifactId>jms</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>com.sun.jdmk</groupId> |
| <artifactId>jmxtools</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>com.sun.jmx</groupId> |
| <artifactId>jmxri</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| </dependencies> |
| |
| <build> |
| <testResources> |
| <testResource> |
| <directory>src/test/resources</directory> |
| <includes> |
| <include>log4j.properties</include> |
| </includes> |
| </testResource> |
| </testResources> |
| <plugins> |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>javacc-maven-plugin</artifactId> |
| <version>2.6</version> |
| <executions> |
| <execution> |
| <id>jjtree-javacc</id> |
| <goals> |
| <goal>jjtree-javacc</goal> |
| </goals> |
| <configuration> |
| <sourceDirectory>${basedir}/src/main/grammar/javacc</sourceDirectory> |
| <packageName>org.apache.hedwig.jms.selector</packageName> |
| </configuration> |
| <phase>generate-sources</phase> |
| </execution> |
| </executions> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-surefire-plugin</artifactId> |
| <version>2.9</version> |
| <configuration> |
| <!-- Skip the default running of this plug-in (or everything is run twice...see below) --> |
| <skip>true</skip> |
| <!-- Show 100% of the lines from the stack trace (doesn't work ?) --> |
| <trimStackTrace>false</trimStackTrace> |
| <systemProperties> |
| <property> |
| <name>log4j.configuration</name> |
| <value>log4j.properties</value> |
| </property> |
| <property> |
| <name>java.net.preferIPv4Stack</name> |
| <value>true</value> |
| </property> |
| <property> |
| <name>com.sun.management.jmxremote</name> |
| <value>true</value> |
| </property> |
| <property> |
| <name>com.sun.management.jmxremote.local.only</name> |
| <value>true</value> |
| </property> |
| <property> |
| <name>com.sun.management.jmxremote.ssl</name> |
| <value>false</value> |
| </property> |
| <property> |
| <name>com.sun.management.jmxremote.authenticate</name> |
| <value>false</value> |
| </property> |
| <property> |
| <name>java.rmi.server.hostname</name> |
| <value>localhost</value> |
| </property> |
| <!-- |
| <property> |
| <name>com.sun.management.jmxremote.port</name> |
| <value>39999</value> |
| </property> |
| --> |
| </systemProperties> |
| <!-- <forkMode>always</forkMode> --> |
| <forkMode>pertest</forkMode> |
| <argLine>-Xmx1G</argLine> |
| </configuration> |
| |
| <executions> |
| <execution> |
| <id>unit-tests</id> |
| <phase>test</phase> |
| <goals> |
| <goal>test</goal> |
| </goals> |
| <configuration> |
| <skip>false</skip> |
| <!-- run everything other than activemq testcases --> |
| <excludes> |
| <exclude>org/apache/activemq/**/Test*.java</exclude> |
| <exclude>org/apache/activemq/**/*Test.java</exclude> |
| <exclude>org/apache/activemq/**/*TestCase.java</exclude> |
| </excludes> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.apache.rat</groupId> |
| <artifactId>apache-rat-plugin</artifactId> |
| <version>0.7</version> |
| <configuration> |
| <excludes> |
| <!-- exclude generated file //--> |
| <exclude>**/JmsHeader.java</exclude> |
| </excludes> |
| </configuration> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>findbugs-maven-plugin</artifactId> |
| <configuration> |
| <excludeFilterFile>${basedir}/src/main/resources/findbugsExclude.xml</excludeFilterFile> |
| </configuration> |
| </plugin> |
| |
| </plugins> |
| </build> |
| <profiles> |
| <profile> |
| <id>protobuf</id> |
| <build> |
| <plugins> |
| <plugin> |
| <artifactId>maven-antrun-plugin</artifactId> |
| <executions> |
| <execution> |
| <phase>generate-sources</phase> |
| <id>default-cli</id> |
| <configuration> |
| <target> |
| <exec executable="protoc" failonerror="true"> |
| <arg value="--java_out=src/main/java" /> |
| <arg value="src/main/protobuf/JmsHeader.proto" /> |
| </exec> |
| </target> |
| </configuration> |
| <goals> |
| <goal>run</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| <profile> |
| <id>activemqtests</id> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-surefire-plugin</artifactId> |
| <version>2.9</version> |
| <executions> |
| <execution> |
| <id>integration-tests</id> |
| <phase>test</phase> |
| <goals> |
| <goal>test</goal> |
| </goals> |
| <configuration> |
| <skip>false</skip> |
| <includes> |
| <!-- run the activemq testcases --> |
| <include>org/apache/activemq/**/Test*.java</include> |
| <include>org/apache/activemq/**/*Test.java</include> |
| <include>org/apache/activemq/**/*TestCase.java</include> |
| </includes> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| </profiles> |
| </project> |