2020-05-29 06:46:56 +02:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
<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/xsd/maven-4.0.0.xsd">
|
|
|
|
<parent>
|
|
|
|
<groupId>io.debezium</groupId>
|
|
|
|
<artifactId>debezium-server</artifactId>
|
2021-01-07 09:38:13 +01:00
|
|
|
<version>1.4.0.Final</version>
|
2020-05-29 06:46:56 +02:00
|
|
|
<relativePath>../pom.xml</relativePath>
|
|
|
|
</parent>
|
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<artifactId>debezium-server-pulsar</artifactId>
|
|
|
|
<name>Debezium Server Pulsar Sink Adapter</name>
|
|
|
|
<packaging>jar</packaging>
|
|
|
|
|
|
|
|
<properties>
|
|
|
|
<pulsar.port.native>6650</pulsar.port.native>
|
|
|
|
<pulsar.port.http>8080</pulsar.port.http>
|
|
|
|
</properties>
|
|
|
|
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>io.debezium</groupId>
|
|
|
|
<artifactId>debezium-server-core</artifactId>
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<!-- Target systems -->
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.pulsar</groupId>
|
|
|
|
<artifactId>pulsar-client</artifactId>
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<!-- Testing -->
|
|
|
|
<dependency>
|
|
|
|
<groupId>io.quarkus</groupId>
|
|
|
|
<artifactId>quarkus-junit5</artifactId>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.easytesting</groupId>
|
|
|
|
<artifactId>fest-assert</artifactId>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>io.debezium</groupId>
|
|
|
|
<artifactId>debezium-core</artifactId>
|
|
|
|
<type>test-jar</type>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>io.debezium</groupId>
|
|
|
|
<artifactId>debezium-server-core</artifactId>
|
|
|
|
<type>test-jar</type>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.awaitility</groupId>
|
|
|
|
<artifactId>awaitility</artifactId>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>io.confluent</groupId>
|
|
|
|
<artifactId>kafka-connect-avro-converter</artifactId>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.testcontainers</groupId>
|
|
|
|
<artifactId>testcontainers</artifactId>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>io.debezium</groupId>
|
|
|
|
<artifactId>debezium-connector-postgres</artifactId>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>io.quarkus</groupId>
|
|
|
|
<artifactId>quarkus-maven-plugin</artifactId>
|
|
|
|
<version>${quarkus.version}</version>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<goals>
|
|
|
|
<goal>build</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
2020-06-11 15:45:01 +02:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.jboss.jandex</groupId>
|
|
|
|
<artifactId>jandex-maven-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>make-index</id>
|
|
|
|
<goals>
|
|
|
|
<goal>jandex</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
2020-05-29 06:46:56 +02:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-failsafe-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>integration-test</id>
|
|
|
|
<goals>
|
|
|
|
<goal>integration-test</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
<execution>
|
|
|
|
<id>verify</id>
|
|
|
|
<goals>
|
|
|
|
<goal>verify</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
<configuration>
|
|
|
|
<skipTests>${skipITs}</skipTests>
|
|
|
|
<enableAssertions>true</enableAssertions>
|
|
|
|
<systemProperties>
|
|
|
|
<test.type>IT</test.type>
|
|
|
|
<pulsar.port.native>${pulsar.port.native}</pulsar.port.native>
|
|
|
|
</systemProperties>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>io.fabric8</groupId>
|
|
|
|
<artifactId>docker-maven-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<watchInterval>500</watchInterval>
|
|
|
|
<logDate>default</logDate>
|
|
|
|
<verbose>true</verbose>
|
|
|
|
<images>
|
|
|
|
<image>
|
|
|
|
<!-- A Docker image using the all in one Pulsar server -->
|
|
|
|
<name>apachepulsar/pulsar:${version.pulsar}</name>
|
|
|
|
<run>
|
|
|
|
<namingStrategy>none</namingStrategy>
|
|
|
|
<cmd>bin/pulsar standalone</cmd>
|
|
|
|
<ports>
|
|
|
|
<port>${pulsar.port.native}:6650</port>
|
|
|
|
<port>${pulsar.port.http}:8080</port>
|
|
|
|
</ports>
|
|
|
|
<log>
|
|
|
|
<prefix>pulsar</prefix>
|
|
|
|
<enabled>true</enabled>
|
|
|
|
<color>yellow</color>
|
|
|
|
</log>
|
|
|
|
<wait>
|
2020-06-04 12:02:49 +02:00
|
|
|
<time>90000</time> <!-- 90 seconds max -->
|
2020-05-29 06:46:56 +02:00
|
|
|
<log>(?s)org.apache.pulsar.broker.PulsarService - messaging service is ready</log>
|
2020-06-17 08:10:15 +02:00
|
|
|
</wait>
|
|
|
|
<volumes>
|
|
|
|
<bind>
|
|
|
|
<volume>docker/conf:/pulsar/conf</volume>
|
|
|
|
</bind>
|
|
|
|
</volumes>
|
2020-05-29 06:46:56 +02:00
|
|
|
</run>
|
|
|
|
</image>
|
|
|
|
</images>
|
|
|
|
</configuration>
|
|
|
|
<!--
|
|
|
|
Connect this plugin to the maven lifecycle around the integration-test phase:
|
|
|
|
start the container in pre-integration-test and stop it in post-integration-test.
|
|
|
|
-->
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>start</id>
|
|
|
|
<phase>pre-integration-test</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>build</goal>
|
|
|
|
<goal>start</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
<execution>
|
|
|
|
<id>stop</id>
|
|
|
|
<phase>post-integration-test</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>stop</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
<resources>
|
|
|
|
<!-- Apply the properties set in the POM to the resource files -->
|
|
|
|
<resource>
|
|
|
|
<filtering>true</filtering>
|
|
|
|
<directory>src/main/resources</directory>
|
|
|
|
<includes>
|
|
|
|
<include>**/build.properties</include>
|
|
|
|
</includes>
|
|
|
|
</resource>
|
|
|
|
</resources>
|
|
|
|
</build>
|
2020-06-03 15:37:09 +02:00
|
|
|
<profiles>
|
|
|
|
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
Do not perform any Docker-related functionality
|
|
|
|
To use, specify "-DskipITs" on the Maven command line.
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
|
|
|
|
<profile>
|
|
|
|
<id>skip-integration-tests</id>
|
|
|
|
<activation>
|
|
|
|
<activeByDefault>false</activeByDefault>
|
|
|
|
<property>
|
|
|
|
<name>skipITs</name>
|
|
|
|
</property>
|
|
|
|
</activation>
|
|
|
|
<properties>
|
|
|
|
<docker.skip>true</docker.skip>
|
|
|
|
</properties>
|
|
|
|
</profile>
|
|
|
|
</profiles>
|
2020-05-29 06:46:56 +02:00
|
|
|
</project>
|