| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| 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 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.camel</groupId> |
| <artifactId>components</artifactId> |
| <version>2.17.0</version> |
| </parent> |
| |
| <artifactId>camel-infinispan</artifactId> |
| <packaging>bundle</packaging> |
| <name>Camel :: Infinispan</name> |
| <description>Camel Infinispan support</description> |
| |
| <properties> |
| <camel.osgi.export.pkg>org.apache.camel.component.infinispan.*</camel.osgi.export.pkg> |
| <camel.osgi.export.service>org.apache.camel.spi.ComponentResolver;component=infinispan</camel.osgi.export.service> |
| </properties> |
| |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.camel</groupId> |
| <artifactId>camel-core</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.infinispan</groupId> |
| <artifactId>infinispan-core</artifactId> |
| <version>${infinispan-version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.infinispan</groupId> |
| <artifactId>infinispan-query-dsl</artifactId> |
| <version>${infinispan-version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.infinispan</groupId> |
| <artifactId>infinispan-client-hotrod</artifactId> |
| <version>${infinispan-version}</version> |
| </dependency> |
| |
| <!-- testing --> |
| <dependency> |
| <groupId>org.apache.camel</groupId> |
| <artifactId>camel-test</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.infinispan</groupId> |
| <artifactId>infinispan-core</artifactId> |
| <version>${infinispan-version}</version> |
| <type>test-jar</type> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.infinispan.server</groupId> |
| <artifactId>infinispan-server-testsuite</artifactId> |
| <version>${infinispan-version}</version> |
| <classifier>tests</classifier> |
| <scope>test</scope> |
| <exclusions> |
| <exclusion> |
| <groupId>org.jboss.remoting3</groupId> |
| <artifactId>remoting-jmx</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.infinispan</groupId> |
| <artifactId>infinispan-core</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.infinispan</groupId> |
| <artifactId>infinispan-client-hotrod</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.infinispan</groupId> |
| <artifactId>infinispan-query-dsl</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.infinispan</groupId> |
| <artifactId>infinispan-remote-query-client</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <dependency> |
| <groupId>org.slf4j</groupId> |
| <artifactId>slf4j-log4j12</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.logging.log4j</groupId> |
| <artifactId>log4j-to-slf4j</artifactId> |
| <version>${log4j2-version}</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>junit</groupId> |
| <artifactId>junit</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.mockito</groupId> |
| <artifactId>mockito-all</artifactId> |
| <version>${mockito-version}</version> |
| <scope>test</scope> |
| </dependency> |
| </dependencies> |
| |
| <!-- unit testing requires java 8 --> |
| <profiles> |
| <profile> |
| <id>jdk8-test</id> |
| <activation> |
| <jdk>!1.8</jdk> |
| </activation> |
| <build> |
| <plugins> |
| <plugin> |
| <artifactId>maven-surefire-plugin</artifactId> |
| <configuration> |
| <skipTests>true</skipTests> |
| </configuration> |
| </plugin> |
| <plugin> |
| <artifactId>maven-compiler-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>default-testCompile</id> |
| <phase>test-compile</phase> |
| <goals> |
| <goal>testCompile</goal> |
| </goals> |
| <configuration> |
| <skip>true</skip> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| <profile> |
| <id>infinispan-itests</id> |
| <activation> |
| <activeByDefault>false</activeByDefault> |
| </activation> |
| <properties> |
| <server.dir.parent>${project.build.directory}</server.dir.parent> |
| <server.dir.name>infinispan-server-${infinispan-version}</server.dir.name> |
| <server.dir>${server.dir.parent}/${server.dir.name}</server.dir> |
| </properties> |
| <dependencies> |
| <dependency> |
| <groupId>org.infinispan.server</groupId> |
| <artifactId>infinispan-server</artifactId> |
| <version>${infinispan-version}</version> |
| <type>zip</type> |
| <classifier>bin</classifier> |
| <scope>test</scope> |
| </dependency> |
| </dependencies> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-dependency-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>unpack-server</id> |
| <phase>generate-test-resources</phase> |
| <goals> |
| <goal>unpack</goal> |
| </goals> |
| <configuration> |
| <artifactItems> |
| <artifactItem> |
| <groupId>org.infinispan.server</groupId> |
| <artifactId>infinispan-server</artifactId> |
| <version>${infinispan-version}</version> |
| <classifier>bin</classifier> |
| <type>zip</type> |
| <outputDirectory>${server.dir.parent}</outputDirectory> |
| </artifactItem> |
| </artifactItems> |
| </configuration> |
| </execution> |
| <execution> |
| <id>deploy-converter-factory</id> |
| <phase>generate-test-resources</phase> |
| <goals> |
| <goal>copy</goal> |
| </goals> |
| <configuration> |
| <artifactItems> |
| <artifactItem> |
| <groupId>org.infinispan.server</groupId> |
| <artifactId>infinispan-server-testsuite</artifactId> |
| <classifier>tests</classifier> |
| <version>${infinispan-version}</version> |
| <outputDirectory>${server.dir}/standalone/deployments</outputDirectory> |
| </artifactItem> |
| </artifactItems> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.wildfly.plugins</groupId> |
| <artifactId>wildfly-maven-plugin</artifactId> |
| <version>1.1.0.Alpha6</version> |
| <executions> |
| <execution> |
| <id>start-server</id> |
| <phase>pre-integration-test</phase> |
| <goals> |
| <goal>start</goal> |
| </goals> |
| <configuration> |
| <skip>${skipTests}</skip> |
| <jbossHome>${server.dir}</jbossHome> |
| </configuration> |
| </execution> |
| <execution> |
| <id>configure-caches</id> |
| <phase>pre-integration-test</phase> |
| <goals> |
| <goal>execute-commands</goal> |
| </goals> |
| <configuration> |
| <skip>${skipTests}</skip> |
| <executeCommands> |
| <commands> |
| <!-- Separate cache for protobuf serialized objects. --> |
| <command>/subsystem=datagrid-infinispan/cache-container=local/local-cache=remote_query:add(configuration=default)</command> |
| <!-- Separate cache for converter factory which uses Int keys --> |
| <command>/subsystem=datagrid-infinispan/cache-container=local/local-cache=static_converter_factory:add(configuration=default)</command> |
| <!-- Separate cache for converter factory which uses Int keys --> |
| <command>/subsystem=datagrid-infinispan/cache-container=local/local-cache=static_filter_factory:add(configuration=default)</command> |
| <!-- Separate cache for @ClientListener(includeCurrentState=true) --> |
| <command>/subsystem=datagrid-infinispan/cache-container=local/local-cache=include_current_state:add(configuration=default)</command> |
| </commands> |
| </executeCommands> |
| </configuration> |
| </execution> |
| <execution> |
| <id>stop-server</id> |
| <phase>post-integration-test</phase> |
| <goals> |
| <goal>shutdown</goal> |
| </goals> |
| <configuration> |
| <skip>${skipTests}</skip> |
| <jbossHome>${server.dir}</jbossHome> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-failsafe-plugin</artifactId> |
| <executions> |
| <execution> |
| <goals> |
| <goal>integration-test</goal> |
| <goal>verify</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| </profiles> |
| </project> |