| <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"> |
| <modelVersion>4.0.0</modelVersion> |
| |
| <parent> |
| <groupId>org.apache</groupId> |
| <artifactId>apache</artifactId> |
| <version>21</version> |
| </parent> |
| |
| <groupId>org.apache.camel.kafkaconnector</groupId> |
| <artifactId>parent</artifactId> |
| <version>0.0.1-SNAPSHOT</version> |
| <packaging>pom</packaging> |
| |
| <name>Camel-Kafka-Connector :: Parent</name> |
| <description>Parent for all Camel Kafka Connector modules</description> |
| |
| <licenses> |
| <license> |
| <name>Apache License</name> |
| <url>http://www.apache.org/licenses/LICENSE-2.0</url> |
| <distribution>repo</distribution> |
| </license> |
| </licenses> |
| |
| <properties> |
| <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| |
| <activemq.version>5.15.12</activemq.version> |
| <kafka.version>2.4.1</kafka.version> |
| <junit.version>5.6.2</junit.version> |
| <camel.version>3.1.0</camel.version> |
| <jackson.version>2.10.3</jackson.version> |
| <log4j2.version>2.8.2</log4j2.version> |
| <version.commons-io>2.6</version.commons-io> |
| <version.java>1.8</version.java> |
| <version.guava>20.0</version.guava> |
| |
| |
| <version.maven.compiler>3.8.1</version.maven.compiler> |
| <version.maven.javadoc>3.1.1</version.maven.javadoc> |
| <version.maven.source>3.0.1</version.maven.source> |
| <version.maven.resources>3.0.1</version.maven.resources> |
| <version.maven.antrun>1.8</version.maven.antrun> |
| <version.maven.nexus-staging>1.6.7</version.maven.nexus-staging> |
| <version.maven.buildhelper>1.12</version.maven.buildhelper> |
| <version.maven.bundle>3.5.1</version.maven.bundle> |
| <version.maven.jar>3.1.0</version.maven.jar> |
| <version.maven.failsafe>2.22.2</version.maven.failsafe> |
| <version.maven.surefire>3.0.0-M4</version.maven.surefire> |
| <version.scala.library>2.12.4</version.scala.library> |
| <version.testcontainers>1.14.0</version.testcontainers> |
| <version.qpid-jms-client>0.50.0</version.qpid-jms-client> |
| <version.maven.maven-remote-resources-plugin>1.6.0</version.maven.maven-remote-resources-plugin> |
| |
| <version.maven.checkstyle>8.26</version.maven.checkstyle> |
| <version.maven.checkstyle.plugin>3.1.0</version.maven.checkstyle.plugin> |
| <version.maven.surefire.plugin>3.0.0-M4</version.maven.surefire.plugin> |
| |
| <mycila-license-version>3.0</mycila-license-version> |
| <gmavenplus-plugin-version>1.6.2</gmavenplus-plugin-version> |
| <groovy-version>2.5.8</groovy-version> |
| |
| <itest.zookeeper.container.image>strimzi/kafka:0.16.0-kafka-2.4.0</itest.zookeeper.container.image> |
| <itest.strimzi.container.image>strimzi/kafka:0.16.0-kafka-2.4.0</itest.strimzi.container.image> |
| |
| <checkstyle.failOnViolation>false</checkstyle.failOnViolation> |
| </properties> |
| |
| <repositories> |
| <repository> |
| <id>apache.snapshots</id> |
| <url>https://repository.apache.org/snapshots/</url> |
| <name>Apache Snapshot Repo</name> |
| <snapshots> |
| <enabled>true</enabled> |
| </snapshots> |
| <releases> |
| <enabled>false</enabled> |
| </releases> |
| </repository> |
| </repositories> |
| <pluginRepositories> |
| <pluginRepository> |
| <id>apache.snapshots</id> |
| <url>https://repository.apache.org/snapshots/</url> |
| <snapshots> |
| <enabled>true</enabled> |
| </snapshots> |
| <releases> |
| <enabled>false</enabled> |
| </releases> |
| </pluginRepository> |
| </pluginRepositories> |
| |
| <dependencyManagement> |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.camel</groupId> |
| <artifactId>camel-parent</artifactId> |
| <version>${camel.version}</version> |
| <type>pom</type> |
| <scope>import</scope> |
| <exclusions> |
| <exclusion> |
| <groupId>com.google.guava</groupId> |
| <artifactId>guava</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <!-- This needs to be aligned with the version used in kafka connector --> |
| <dependency> |
| <groupId>com.google.guava</groupId> |
| <artifactId>guava</artifactId> |
| <version>${version.guava}</version> |
| </dependency> |
| |
| <!-- Kafka dependencies --> |
| <dependency> |
| <groupId>org.apache.kafka</groupId> |
| <artifactId>connect-api</artifactId> |
| <version>${kafka.version}</version> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.kafka</groupId> |
| <artifactId>connect-runtime</artifactId> |
| <version>${kafka.version}</version> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.kafka</groupId> |
| <artifactId>connect-runtime</artifactId> |
| <version>${kafka.version}</version> |
| <classifier>test</classifier> |
| <type>test-jar</type> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.kafka</groupId> |
| <artifactId>kafka_2.12</artifactId> |
| <version>${kafka.version}</version> |
| <classifier>test</classifier> |
| <type>test-jar</type> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.kafka</groupId> |
| <artifactId>connect-transforms</artifactId> |
| <version>${kafka.version}</version> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.kafka</groupId> |
| <artifactId>kafka_2.12</artifactId> |
| <version>${kafka.version}</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.kafka</groupId> |
| <artifactId>kafka-clients</artifactId> |
| <version>${kafka.version}</version> |
| <!-- <scope>test</scope>--> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.kafka</groupId> |
| <artifactId>kafka-clients</artifactId> |
| <version>${kafka.version}</version> |
| <scope>test</scope> |
| <classifier>test</classifier> |
| <type>test-jar</type> |
| </dependency> |
| |
| <!-- Test dependencies --> |
| <dependency> |
| <groupId>org.junit.jupiter</groupId> |
| <artifactId>junit-jupiter-api</artifactId> |
| <version>${junit.version}</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.junit.jupiter</groupId> |
| <artifactId>junit-jupiter-engine</artifactId> |
| <version>${junit.version}</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.junit.jupiter</groupId> |
| <artifactId>junit-jupiter-params</artifactId> |
| <version>${junit.version}</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.logging.log4j</groupId> |
| <artifactId>log4j-api</artifactId> |
| <version>${log4j2.version}</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.logging.log4j</groupId> |
| <artifactId>log4j-1.2-api</artifactId> |
| <version>${log4j2.version}</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.logging.log4j</groupId> |
| <artifactId>log4j-core</artifactId> |
| <version>${log4j2.version}</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.logging.log4j</groupId> |
| <artifactId>log4j-slf4j-impl</artifactId> |
| <version>${log4j2.version}</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.logging.log4j</groupId> |
| <artifactId>log4j-jcl</artifactId> |
| <version>${log4j2.version}</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.logging.log4j</groupId> |
| <artifactId>log4j-jul</artifactId> |
| <version>${log4j2.version}</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.scala-lang</groupId> |
| <artifactId>scala-library</artifactId> |
| <version>${version.scala.library}</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.testcontainers</groupId> |
| <artifactId>testcontainers</artifactId> |
| <version>${version.testcontainers}</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.testcontainers</groupId> |
| <artifactId>junit-jupiter</artifactId> |
| <version>${version.testcontainers}</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.testcontainers</groupId> |
| <artifactId>kafka</artifactId> |
| <version>${version.testcontainers}</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.testcontainers</groupId> |
| <artifactId>localstack</artifactId> |
| <version>${version.testcontainers}</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.testcontainers</groupId> |
| <artifactId>elasticsearch</artifactId> |
| <version>${version.testcontainers}</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.qpid</groupId> |
| <artifactId>qpid-jms-client</artifactId> |
| <version>${version.qpid-jms-client}</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>commons-io</groupId> |
| <artifactId>commons-io</artifactId> |
| <version>${version.commons-io}</version> |
| </dependency> |
| |
| </dependencies> |
| </dependencyManagement> |
| <build> |
| <pluginManagement> |
| <plugins> |
| <plugin> |
| <artifactId>maven-compiler-plugin</artifactId> |
| <version>${version.maven.compiler}</version> |
| <configuration> |
| <source>${version.java}</source> |
| <target>${version.java}</target> |
| <encoding>UTF-8</encoding> |
| </configuration> |
| </plugin> |
| |
| <plugin> |
| <artifactId>maven-release-plugin</artifactId> |
| <version>2.5.2</version> |
| <configuration> |
| <tagNameFormat>@{project.version}</tagNameFormat> |
| </configuration> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-javadoc-plugin</artifactId> |
| <version>${version.maven.javadoc}</version> |
| <configuration> |
| <doclint>none</doclint> |
| </configuration> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.apache.felix</groupId> |
| <artifactId>maven-bundle-plugin</artifactId> |
| <version>${version.maven.bundle}</version> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.sonatype.plugins</groupId> |
| <artifactId>nexus-staging-maven-plugin</artifactId> |
| <version>${version.maven.nexus-staging}</version> |
| </plugin> |
| |
| <plugin> |
| <artifactId>maven-resources-plugin</artifactId> |
| <version>${version.maven.resources}</version> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-surefire-plugin</artifactId> |
| <version>${version.maven.surefire}</version> |
| <configuration> |
| <failIfNoTests>false</failIfNoTests> |
| </configuration> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-surefire-report-plugin</artifactId> |
| <version>${version.maven.surefire.plugin}</version> |
| <executions> |
| <execution> |
| <phase>verify</phase> |
| <goals> |
| <goal>report</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-failsafe-plugin</artifactId> |
| <version>${version.maven.failsafe}</version> |
| <executions> |
| <execution> |
| <id>integration-test</id> |
| <phase>test</phase> |
| <goals> |
| <goal>integration-test</goal> |
| <goal>verify</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>build-helper-maven-plugin</artifactId> |
| <version>${version.maven.buildhelper}</version> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-remote-resources-plugin</artifactId> |
| <version>${version.maven.maven-remote-resources-plugin}</version> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-checkstyle-plugin</artifactId> |
| <version>${version.maven.checkstyle.plugin}</version> |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.camel.kafkaconnector</groupId> |
| <artifactId>camel-buildtools</artifactId> |
| <version>${project.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>com.puppycrawl.tools</groupId> |
| <artifactId>checkstyle</artifactId> |
| <version>${version.maven.checkstyle}</version> |
| </dependency> |
| </dependencies> |
| <executions> |
| <execution> |
| <id>default-cli</id> |
| <phase>validate</phase> |
| <configuration> |
| <includeResources>false</includeResources> |
| <configLocation>camel-checkstyle.xml</configLocation> |
| <consoleOutput>true</consoleOutput> |
| <failsOnError>${checkstyle.failOnViolation}</failsOnError> |
| <linkXRef>false</linkXRef> |
| <suppressionsLocation>camel-checkstyle-suppressions.xml</suppressionsLocation> |
| <encoding>UTF-8</encoding> |
| <sourceDirectories> |
| <sourceDirectory>${basedir}/src</sourceDirectory> |
| </sourceDirectories> |
| <headerLocation>header-java.txt</headerLocation> |
| <includes>**/*.java,**/*.groovy,**/*.scala,**/*.properties,**/*.xml,**/*.xsd</includes> |
| <excludes> |
| **/archetype-resources/**/*.java,**/archetype-resources/**/*.groovy,**/archetype-resources/**/*.scala,**/archetype-resources/**/*.xml,**/org/json/simple/**/*.java,**/camel-checkstyle.xml |
| </excludes> |
| </configuration> |
| <goals> |
| <goal>checkstyle</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </pluginManagement> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-enforcer-plugin</artifactId> |
| <version>1.3.1</version> |
| <executions> |
| <execution> |
| <id>enforce-java</id> |
| <goals> |
| <goal>enforce</goal> |
| </goals> |
| <configuration> |
| <rules> |
| <requireJavaVersion> |
| <version>[${version.java},)</version> |
| </requireJavaVersion> |
| <requireMavenVersion> |
| <version>[3.1.1,)</version> |
| </requireMavenVersion> |
| </rules> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| |
| <profiles> |
| <profile> |
| <id>sourcecheck</id> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-checkstyle-plugin</artifactId> |
| <version>${version.maven.checkstyle.plugin}</version> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| </profiles> |
| </project> |