| <?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>4.4.3</version> |
| </parent> |
| |
| <artifactId>camel-kafka</artifactId> |
| <packaging>jar</packaging> |
| <name>Camel :: Kafka</name> |
| <description>Camel Kafka support</description> |
| |
| <dependencies> |
| |
| <!-- camel --> |
| <dependency> |
| <groupId>org.apache.camel</groupId> |
| <artifactId>camel-support</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.camel</groupId> |
| <artifactId>camel-health</artifactId> |
| </dependency> |
| |
| <!-- kafka java client --> |
| <dependency> |
| <groupId>org.apache.kafka</groupId> |
| <artifactId>kafka-clients</artifactId> |
| <version>${kafka-version}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>com.fasterxml.jackson.core</groupId> |
| <artifactId>jackson-databind</artifactId> |
| </dependency> |
| |
| <!-- test --> |
| <dependency> |
| <groupId>org.awaitility</groupId> |
| <artifactId>awaitility</artifactId> |
| <version>${awaitility-version}</version> |
| <scope>test</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.hamcrest</groupId> |
| <artifactId>hamcrest</artifactId> |
| <version>${hamcrest-version}</version> |
| <scope>test</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.camel</groupId> |
| <artifactId>camel-test-infra-core</artifactId> |
| <version>${project.version}</version> |
| <scope>test</scope> |
| <type>test-jar</type> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.camel</groupId> |
| <artifactId>camel-test-infra-kafka</artifactId> |
| <version>${project.version}</version> |
| <type>test-jar</type> |
| <scope>test</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.camel</groupId> |
| <artifactId>camel-jackson</artifactId> |
| <scope>test</scope> |
| </dependency> |
| |
| <!-- Required by the admin client--> |
| <dependency> |
| <groupId>org.apache.camel</groupId> |
| <artifactId>camel-direct</artifactId> |
| <scope>test</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.camel</groupId> |
| <artifactId>camel-resilience4j</artifactId> |
| <scope>test</scope> |
| </dependency> |
| |
| <!-- |
| It does not really have a dependency on camel-test-junit5, but it brings a lot of dependencies that are needed for |
| running the tests |
| --> |
| <dependency> |
| <groupId>org.apache.camel</groupId> |
| <artifactId>camel-test-junit5</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.junit.jupiter</groupId> |
| <artifactId>junit-jupiter</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.junit.jupiter</groupId> |
| <artifactId>junit-jupiter-params</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.mockito</groupId> |
| <artifactId>mockito-junit-jupiter</artifactId> |
| <version>${mockito-version}</version> |
| <scope>test</scope> |
| </dependency> |
| </dependencies> |
| |
| <profiles> |
| <profile> |
| <!-- This is needed only for camel-kafka to skip itests selected in the backwards-compatibility profile --> |
| <id>quickly</id> |
| <activation> |
| <property> |
| <name>quickly</name> |
| </property> |
| </activation> |
| <properties> |
| <skipITs>true</skipITs> |
| <skipTests>true</skipTests> |
| </properties> |
| </profile> |
| <profile> |
| <id>backwards-compatibility</id> |
| <activation> |
| <os> |
| <arch>amd64</arch> |
| </os> |
| </activation> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-failsafe-plugin</artifactId> |
| <configuration> |
| <skipITs>${skipITs}</skipITs> |
| <reuseForks>true</reuseForks> |
| </configuration> |
| <executions> |
| <execution> |
| <id>kafka-2</id> |
| <configuration> |
| <skipITs>${skipITs}</skipITs> |
| <systemPropertyVariables> |
| <kafka.instance.type>local-kafka2-container</kafka.instance.type> |
| </systemPropertyVariables> |
| <reuseForks>true</reuseForks> |
| <reportNameSuffix>kafka-2</reportNameSuffix> |
| <excludedGroups>non-abstract,health,idempotent</excludedGroups> |
| </configuration> |
| <goals> |
| <goal>integration-test</goal> |
| <goal>verify</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| <profile> |
| <id>full</id> |
| <activation> |
| <property> |
| <name>!quickly</name> |
| </property> |
| </activation> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-failsafe-plugin</artifactId> |
| <configuration> |
| <skipITs>${skipITs}</skipITs> |
| <skipTests>${skipTests}</skipTests> |
| <reuseForks>true</reuseForks> |
| </configuration> |
| <executions> |
| <execution> |
| <id>integration-test</id> |
| <goals> |
| <goal>integration-test</goal> |
| <goal>verify</goal> |
| </goals> |
| <configuration> |
| <skipITs>${skipITs}</skipITs> |
| <forkCount>1</forkCount> |
| <reuseForks>true</reuseForks> |
| <excludedGroups>health,idempotent,breakOnFirstError</excludedGroups> |
| </configuration> |
| </execution> |
| <execution> |
| <id>serials-test</id> |
| <goals> |
| <goal>integration-test</goal> |
| </goals> |
| <configuration> |
| <reuseForks>false</reuseForks> |
| <groups>health,idempotent,breakOnFirstError</groups> |
| <forkedProcessTimeoutInSeconds>600</forkedProcessTimeoutInSeconds> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| </profiles> |
| </project> |