| <?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.2-SNAPSHOT</version> |
| </parent> |
| |
| <artifactId>camel-debezium-mongodb</artifactId> |
| <packaging>jar</packaging> |
| <name>Camel :: Debezium :: MongoDB</name> |
| <description>Camel Debezium MongoDB support</description> |
| |
| <dependencies> |
| <!-- camel --> |
| <dependency> |
| <groupId>org.apache.camel</groupId> |
| <artifactId>camel-debezium-common</artifactId> |
| </dependency> |
| |
| <!-- debezium MongoDB Connector --> |
| <dependency> |
| <groupId>io.debezium</groupId> |
| <artifactId>debezium-connector-mongodb</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-mongodb</artifactId> |
| <version>${debezium-version}</version> |
| <scope>runtime</scope> |
| </dependency> |
| </dependencies> |
| <configuration> |
| <connectorClassName>io.debezium.connector.mongodb.MongoDbConnector</connectorClassName> |
| <connectorConfigClassName>io.debezium.connector.mongodb.MongoDbConnectorConfig</connectorConfigClassName> |
| <fields> |
| <tombstones.on.delete>false</tombstones.on.delete> |
| </fields> |
| <requiredFields> |
| <field>mongodb.password</field> |
| <field>mongodb.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> |