blob: 7301f4da721731a1b823ca2cee9c4b1c9ca5f5a3 [file] [log] [blame]
<?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>3.0.0</version>
</parent>
<artifactId>camel-debezium-sqlserver</artifactId>
<packaging>jar</packaging>
<name>Camel :: Debezium :: SQL Server</name>
<description>Camel Debezium SQL Server support</description>
<dependencies>
<!-- camel -->
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-debezium-common</artifactId>
</dependency>
<!-- debezium SQL Server Connector -->
<dependency>
<groupId>io.debezium</groupId>
<artifactId>debezium-connector-sqlserver</artifactId>
<version>${debezium-version}</version>
</dependency>
<!-- test -->
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-api</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-slf4j-impl</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-1.2-api</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.camel.maven</groupId>
<artifactId>camel-debezium-maven-plugin</artifactId>
<version>${project.version}</version>
<executions>
<execution>
<id>generate</id>
<goals>
<goal>generate-connector-config</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>io.debezium</groupId>
<artifactId>debezium-connector-sqlserver</artifactId>
<!-- Only for the maven plugin, we will use 1.0.0.Beta2 to generate the config due to missing configs on 0.10 -->
<!-- Once we have 1.0.0.Final, we will change this back to ${debezium-version} -->
<version>1.0.0.Beta2</version>
<scope>runtime</scope>
</dependency>
</dependencies>
<configuration>
<connectorClassName>io.debezium.connector.sqlserver.SqlServerConnector</connectorClassName>
<connectorConfigClassName>io.debezium.connector.sqlserver.SqlServerConnectorConfig</connectorConfigClassName>
<fields>
<database.history>io.debezium.relational.history.FileDatabaseHistory</database.history>
<tombstones.on.delete>false</tombstones.on.delete>
</fields>
<requiredFields>
<field>database.password</field>
<field>database.server.name</field>
</requiredFields>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<executions>
<execution>
<id>add-generated-configurations-sources</id>
<goals>
<goal>add-source</goal>
</goals>
<configuration>
<sources>
<source>${project.build.directory}/generated-sources/connector-configurations</source>
</sources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<!-- This used to copy EmbeddedDebeziumConfiguration source in order to generate the metadata via APT plugin-->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>src-dependencies</id>
<goals>
<goal>unpack-dependencies</goal>
</goals>
<configuration>
<classifier>sources</classifier>
<includeArtifactIds>camel-debezium-common</includeArtifactIds>
<includes>**/*EmbeddedDebeziumConfiguration.java</includes>
<outputDirectory>${project.build.directory}/generated-sources/connector-configurations</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>