<?xml version="1.0" encoding="UTF-8"?>
<!--

    This file is part of VoltSP.
    Copyright (C) 2024-2026 Volt Active Data Inc. All rights reserved.

-->
<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>

    <groupId>org.voltdb</groupId>
    <artifactId>volt-stream</artifactId>
    <version>1.8.0</version>
    <packaging>pom</packaging>

    <name>Volt Stream</name>
    <description>VoltSP - a cloud-native framework for building streaming data pipelines.</description>
    <url>https://voltactivedata.com</url>

    <scm>
        <connection>scm:git:https://github.com/VoltDB/volt-stream.git</connection>
        <developerConnection>scm:git:https://github.com/VoltDB/volt-stream.git</developerConnection>
        <url>https://github.com/VoltDB/volt-stream</url>
    </scm>

    <developers>
        <developer>
            <id>rmorgenstein</id>
            <name>Ruth Morgenstein</name>
            <email>rmorgenstein@voltdb.com</email>
            <organizationUrl>https://voltactivedata.com</organizationUrl>
        </developer>
    </developers>

    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

        <maven.compiler.release>21</maven.compiler.release>

        <!-- prod dependencies -->
        <volt.external.version>14.3.1</volt.external.version>
        <volt.metric.version>15.0.0-20250922</volt.metric.version>
        <netty.version>4.1.133.Final</netty.version>
        <commons-lang3.version>3.17.0</commons-lang3.version>
        <jackson.version>2.21.1</jackson.version>
        <log4j2.version>2.25.4</log4j2.version>
        <slf4j.version>1.7.36</slf4j.version>
        <javapoet.version>0.6.0</javapoet.version>

        <!-- test -->
        <junit.version>5.13.1</junit.version>
        <hamcrest.version>2.2</hamcrest.version>
        <mockito.version>5.12.0</mockito.version>
        <assertj.version>3.25.2</assertj.version>
        <volt.testcontainer.version>1.6.0</volt.testcontainer.version>
        <volt.procedureapi.version>15.0.0</volt.procedureapi.version>

        <!-- deployment -->
        <license-maven-plugin.version>5.0.0</license-maven-plugin.version>
        <license-report-dir>${project.build.directory}/license_report</license-report-dir>
        <confluent-registry-url>https://packages.confluent.io/maven/</confluent-registry-url>
        <maven.build.timestamp.format>yyyy-MM-dd'T'HH:mm:ss'Z'</maven.build.timestamp.format>

        <repo-id>central</repo-id>
        <repo-url>https://oss.sonatype.org/service/local/staging/deploy/maven2</repo-url>
        <repo-snapshots>false</repo-snapshots>

        <maven.deploy.skip>false</maven.deploy.skip>
    </properties>

    <modules>
        <module>volt-stream-api</module>
        <module>volt-stream-shared</module>
        <module>volt-stream-plugin-infrastructure</module>
        <module>volt-stream-security</module>
        <module>volt-stream-connectors-api</module>
        <module>volt-stream-api-test</module>
        <module>volt-stream-core</module>
        <module>volt-stream-junit-extension</module>
        <module>volt-stream-network</module>
        <module>volt-stream-connectors-core</module>
        <module>volt-stream-license</module>

        <module>volt-stream-maven-apigen-plugin</module>
        <module>plugins</module>

        <module>volt-stream-examples</module>
        <module>volt-stream-test</module>
        <module>volt-stream-maven-quickstart</module>
        <module>volt-stream-docs</module>
        <module>volt-stream-tarball</module>
        <module>volt-stream-docker</module>
        <module>volt-stream-testcontainer</module>
        <module>volt-test-procedures</module>
        <module>volt-stream-yaml-api</module>
        <module>volt-stream-cli</module>
    </modules>

    <licenses>
        <license>
            <name>MIT License</name>
            <url>https://github.com/git/git-scm.com/blob/main/MIT-LICENSE.txt</url>
            <distribution>repo</distribution>
            <comments>A short and simple permissive license</comments>
        </license>
    </licenses>

    <distributionManagement>
        <repository>
            <id>${repo-id}</id>
            <url>${repo-url}</url>
            <releases>
                <enabled>true</enabled>
            </releases>
            <snapshots>
                <enabled>${repo-snapshots}</enabled>
            </snapshots>
        </repository>
    </distributionManagement>

    <dependencyManagement>
        <dependencies>
            <!-- Modules of this project -->
            <dependency>
                <groupId>org.voltdb</groupId>
                <artifactId>volt-stream-yaml-api</artifactId>
                <version>${project.version}</version>
            </dependency>
            <dependency>
                <groupId>org.voltdb</groupId>
                <artifactId>volt-stream-shared</artifactId>
                <version>${project.version}</version>
            </dependency>
            <dependency>
                <groupId>org.voltdb</groupId>
                <artifactId>volt-stream-cli</artifactId>
                <version>${project.version}</version>
            </dependency>
            <dependency>
                <groupId>org.voltdb</groupId>
                <artifactId>volt-stream-core</artifactId>
                <version>${project.version}</version>
            </dependency>
            <dependency>
                <groupId>org.voltdb</groupId>
                <artifactId>volt-stream-plugin-infrastructure</artifactId>
                <version>${project.version}</version>
            </dependency>
            <dependency>
                <groupId>org.voltdb</groupId>
                <artifactId>volt-stream-security</artifactId>
                <version>${project.version}</version>
            </dependency>
            <dependency>
                <groupId>org.voltdb</groupId>
                <artifactId>volt-stream-api</artifactId>
                <version>${project.version}</version>
            </dependency>
            <dependency>
                <groupId>org.voltdb</groupId>
                <artifactId>volt-stream-api-test</artifactId>
                <version>${project.version}</version>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>org.voltdb</groupId>
                <artifactId>volt-stream-docs</artifactId>
                <version>${project.version}</version>
            </dependency>
            <dependency>
                <groupId>org.voltdb</groupId>
                <artifactId>volt-stream-license</artifactId>
                <version>${project.version}</version>
                <classifier>all</classifier>
            </dependency>
            <dependency>
                <groupId>org.voltdb</groupId>
                <artifactId>volt-stream-connectors-api</artifactId>
                <version>${project.version}</version>
            </dependency>
            <dependency>
                <groupId>org.voltdb</groupId>
                <artifactId>volt-stream-network</artifactId>
                <version>${project.version}</version>
            </dependency>
            <dependency>
                <groupId>org.voltdb</groupId>
                <artifactId>volt-stream-connectors-core</artifactId>
                <version>${project.version}</version>
            </dependency>

            <dependency>
                <groupId>org.voltdb</groupId>
                <artifactId>voltdbclient</artifactId>
                <version>${volt.external.version}</version>
            </dependency>

            <!-- Logging -->
            <dependency>
                <groupId>org.slf4j</groupId>
                <artifactId>slf4j-api</artifactId>
                <version>${slf4j.version}</version>
            </dependency>
            <dependency>
                <groupId>org.apache.logging.log4j</groupId>
                <artifactId>log4j-slf4j-impl</artifactId>
                <version>${log4j2.version}</version>
            </dependency>
            <dependency>
                <groupId>org.apache.logging.log4j</groupId>
                <artifactId>log4j-core</artifactId>
                <version>${log4j2.version}</version>
            </dependency>

            <dependency>
                <groupId>info.picocli</groupId>
                <artifactId>picocli</artifactId>
                <version>4.7.7</version>
            </dependency>
            <dependency>
                <groupId>io.pyroscope</groupId>
                <artifactId>agent</artifactId>
                <version>0.18.1</version>
            </dependency>

            <!--            kafka-->
            <dependency>
                <groupId>io.confluent</groupId>
                <artifactId>kafka-avro-serializer</artifactId>
                <version>7.9.1</version>
                <exclusions>
                    <exclusion>
                        <groupId>com.fasterxml.jackson.core</groupId>
                        <artifactId>jackson-databind</artifactId>
                    </exclusion>
                    <exclusion>
                        <groupId>org.apache.commons</groupId>
                        <artifactId>commons-compress</artifactId>
                    </exclusion>
                    <exclusion>
                        <groupId>io.confluent</groupId>
                        <artifactId>logredactor</artifactId>
                    </exclusion>
                </exclusions>
            </dependency>

            <!--            json-->
            <dependency>
                <groupId>com.fasterxml.jackson.core</groupId>
                <artifactId>jackson-core</artifactId>
                <version>${jackson.version}</version>
            </dependency>
            <dependency>
                <groupId>com.fasterxml.jackson.core</groupId>
                <artifactId>jackson-databind</artifactId>
                <version>${jackson.version}</version>
            </dependency>
            <dependency>
                <groupId>com.fasterxml.jackson.datatype</groupId>
                <artifactId>jackson-datatype-jsr310</artifactId>
                <version>${jackson.version}</version>
            </dependency>

            <!-- Needed by volt-stream-yaml-api -->
            <dependency>
                <groupId>com.fasterxml.jackson.dataformat</groupId>
                <artifactId>jackson-dataformat-yaml</artifactId>
                <version>${jackson.version}</version>
            </dependency>

            <!--            yaml-->
            <dependency>
                <groupId>org.yaml</groupId>
                <artifactId>snakeyaml</artifactId>
                <version>2.2</version>
            </dependency>

            <!--            apache-->
            <dependency>
                <groupId>org.apache.avro</groupId>
                <artifactId>avro</artifactId>
                <version>1.12.1</version>
            </dependency>
            <dependency>
                <groupId>org.apache.commons</groupId>
                <artifactId>commons-compress</artifactId>
                <version>1.26.2</version>
            </dependency>

            <!--            netty-->
            <dependency>
                <groupId>io.netty</groupId>
                <artifactId>netty-handler</artifactId>
                <version>${netty.version}</version>
            </dependency>
            <dependency>
                <groupId>io.netty</groupId>
                <artifactId>netty-buffer</artifactId>
                <version>${netty.version}</version>
            </dependency>

            <!-- Override globally Iceberg dependency due to CVE -->
            <dependency>
                <groupId>io.airlift</groupId>
                <artifactId>aircompressor</artifactId>
                <version>2.0.3</version>
            </dependency>
            <!-- Override globally Graal dependency due to CVE -->
            <dependency>
                <groupId>org.bouncycastle</groupId>
                <artifactId>bcpkix-jdk18on</artifactId>
                <version>1.79</version>
            </dependency>

            <!-- Unit test dependencies -->
            <!-- this ensures junit dependencies are the correct versions -->
            <dependency>
                <groupId>org.junit</groupId>
                <artifactId>junit-bom</artifactId>
                <version>${junit.version}</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
            <dependency>
                <groupId>org.mockito</groupId>
                <artifactId>mockito-core</artifactId>
                <version>${mockito.version}</version>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>net.bytebuddy</groupId>
                <artifactId>byte-buddy</artifactId>
                <version>1.17.6</version>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>org.awaitility</groupId>
                <artifactId>awaitility</artifactId>
                <version>4.2.2</version>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>org.assertj</groupId>
                <artifactId>assertj-core</artifactId>
                <version>${assertj.version}</version>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>org.hamcrest</groupId>
                <artifactId>hamcrest</artifactId>
                <version>${hamcrest.version}</version>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>io.rest-assured</groupId>
                <artifactId>rest-assured</artifactId>
                <version>5.5.5</version>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>uk.org.webcompere</groupId>
                <artifactId>system-stubs-jupiter</artifactId>
                <version>2.1.7</version>
                <scope>test</scope>
            </dependency>

            <!-- Integration test dependencies -->
            <dependency>
                <groupId>org.testcontainers</groupId>
                <artifactId>testcontainers-bom</artifactId>
                <version>1.21.4</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
            <dependency>
                <groupId>org.voltdb</groupId>
                <artifactId>volt-stream-junit-extension</artifactId>
                <version>${project.version}</version>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>org.voltdb</groupId>
                <artifactId>volt-stream-testcontainer</artifactId>
                <version>${project.version}</version>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>org.voltdb</groupId>
                <artifactId>volt-testcontainer</artifactId>
                <version>${volt.testcontainer.version}</version>
                <scope>test</scope>
            </dependency>
            <!-- This is required but not included, by testcontainers -->
            <dependency>
                <groupId>org.apache.commons</groupId>
                <artifactId>commons-lang3</artifactId>
                <version>${commons-lang3.version}</version>
            </dependency>
        </dependencies>
    </dependencyManagement>

    <dependencies>
        <!-- test scope only -->
        <dependency>
            <groupId>org.junit.jupiter</groupId>
            <artifactId>junit-jupiter</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.assertj</groupId>
            <artifactId>assertj-core</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.mockito</groupId>
            <artifactId>mockito-core</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.hamcrest</groupId>
            <artifactId>hamcrest</artifactId>
            <scope>test</scope>
        </dependency>
    </dependencies>

    <build>
        <pluginManagement>
            <plugins>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-compiler-plugin</artifactId>
                    <version>3.14.0</version>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-dependency-plugin</artifactId>
                    <version>3.10.0</version>
                </plugin>
            </plugins>
        </pluginManagement>
        <extensions>
            <extension>
                <groupId>com.google.cloud.artifactregistry</groupId>
                <artifactId>artifactregistry-maven-wagon</artifactId>
                <version>2.2.4</version>
            </extension>
        </extensions>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <version>3.5.2</version>
                <configuration>
                    <forkCount>1</forkCount>
                    <reuseForks>true</reuseForks>
                    <argLine>--add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/sun.nio.ch=ALL-UNNAMED
                        --add-opens java.base/java.net=ALL-UNNAMED --add-opens java.base/java.nio=ALL-UNNAMED
                        -XX:+EnableDynamicAgentLoading -Dnet.bytebuddy.experimental=true
                    </argLine>
                    <systemPropertyVariables>
                        <user.language>en</user.language>
                        <user.country>US</user.country>
                    </systemPropertyVariables>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-javadoc-plugin</artifactId>
                <version>3.11.1</version>
                <configuration>
                    <skip>true</skip>
                </configuration>
                <executions>
                    <execution>
                        <id>attach-javadocs</id>
                        <goals>
                            <goal>jar</goal>
                        </goals>
                        <configuration>
                            <doclint>none</doclint>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>com.mycila</groupId>
                <artifactId>license-maven-plugin</artifactId>
                <version>${license-maven-plugin.version}</version>
                <configuration>
                    <reportSkipped>true</reportSkipped>
                    <strictCheck>true</strictCheck>
                    <aggregate>true</aggregate>
                    <failIfMissing>true</failIfMissing>
                    <failIfUnknown>true</failIfUnknown>
                    <concurrencyFactor>4</concurrencyFactor>
                    <properties>
                        <project.inceptionYear>2024</project.inceptionYear>
                    </properties>
                    <licenseSets>
                        <licenseSet>
                            <header>etc/license.txt</header>
                            <excludes>
                                <exclude>LICENSE</exclude>
                                <exclude>LICENSE.dev</exclude>
                                <exclude>**/Jenkinsfile</exclude>
                                <exclude>dashboards/**</exclude>
                                <exclude>**/*.txt</exclude>
                                <exclude>**/**.avsc</exclude>
                                <exclude>**/*.log</exclude>
                                <exclude>**/*.out</exclude>
                                <exclude>**/*.avro</exclude>
                                <exclude>**/*.csv</exclude>

                                <exclude>**/*.tgz</exclude>
                                <exclude>**/*.lock</exclude>

                                <exclude>**/*.mod</exclude>
                                <exclude>**/*.sum</exclude>

                                <exclude>**/*.conf</exclude>

                                <exclude>**/*.pem</exclude>

                                <!-- Machine learning models -->
                                <exclude>**/*.onnx</exclude>
                                <exclude>**/*.onnx.data</exclude>
                                <exclude>**/*.dylib</exclude>
                                <exclude>**/*.pt</exclude>

                                <!-- pdf doc generator files -->
                                <exclude>**/*.fo</exclude>
                                <exclude>**/pdf.xml</exclude>

                                <!-- Kubernetes' resources. Note that helm breaks if there is a comment (!!!) at the beginning
                                 of the file -->
                                <exclude>**/.helmignore</exclude>
                                <exclude>**/_helpers.tpl</exclude>
                                <exclude>**/_auth_ssl.tpl</exclude>
                                <exclude>**/*.tmpl</exclude>
                                <exclude>**/*.yaml</exclude>
                                <exclude>**/voltsp</exclude>

                                <exclude>volt-stream-maven-quickstart/**</exclude>
                                <exclude>volt-stream-docs/themes/**</exclude>
                                <exclude>volt-stream-plugin-infrastructure/src/test/resources/**/*.java</exclude>

                                <!-- Copied from Guava -->
                                <exclude>**/HostAndPort.java</exclude>
                                <exclude>**/HostAndPortTest.java</exclude>

                                <exclude>volt-stream-maven-apigen-plugin/src/test/resources/expected.pom.xml</exclude>
                            </excludes>
                        </licenseSet>
                    </licenseSets>
                    <mapping>
                        <go>SLASHSTAR_STYLE</go>
                    </mapping>
                </configuration>
                <dependencies>
                    <dependency>
                        <groupId>com.mycila</groupId>
                        <artifactId>license-maven-plugin-git</artifactId>
                        <version>${license-maven-plugin.version}</version>
                    </dependency>
                </dependencies>
                <executions>
                    <execution>
                        <id>check-license-headers</id>
                        <goals>
                            <goal>check</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <artifactId>maven-scm-plugin</artifactId>
                <version>2.1.0</version>
                <executions>
                    <execution>
                        <id>tag</id>
                        <configuration>
                            <tag>${project.artifactId}-${project.version}</tag>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>license-maven-plugin</artifactId>
                <version>2.7.0</version>

                <configuration>
                    <force>true</force>

                    <!-- aggregate-download-licenses -->
                    <errorRemedy>xmlOutput</errorRemedy>
                    <includeTransitiveDependencies>true</includeTransitiveDependencies>
                    <organizeLicensesByDependencies>true</organizeLicensesByDependencies>
                    <cleanLicensesOutputDirectory>true</cleanLicensesOutputDirectory>
                    <licensesOutputDirectory>${license-report-dir}/licenses</licensesOutputDirectory>
                    <licensesOutputFile>${license-report-dir}/downloaded-licenses-report.xml</licensesOutputFile>
                    <licensesErrorsFile>${license-report-dir}/licenses-errors.xml</licensesErrorsFile>

                    <excludedGroups>org.voltdb</excludedGroups>
                    <excludedScopes>test,system,provided</excludedScopes>

                    <!-- aggregate-third-party-report -->
                    <acceptPomPackaging>true</acceptPomPackaging>
                    <outputDirectory>${license-report-dir}</outputDirectory>
                    <thirdPartyFilename>third-party-licenses.txt</thirdPartyFilename>
                    <fileTemplate>etc/third-party-file-groupByMultiLicense.ftl</fileTemplate>

                    <failOnMissing>true</failOnMissing>
                    <failOnBlacklist>true</failOnBlacklist>
                    <includeOptional>false</includeOptional>

                    <includedLicenses>
                        <includedLicense>Apache 2.0</includedLicense>
                        <includedLicense>CDDL 1.0</includedLicense>
                        <includedLicense>CDDL 1.1</includedLicense>
                        <includedLicense>MIT License</includedLicense>
                        <includedLicense>MIT-0</includedLicense>
                        <includedLicense>BSD Licence 3</includedLicense>
                        <includedLicense>EDL 1.0</includedLicense>
                        <includedLicense>Eclipse Public License v2.0</includedLicense>
                        <includedLicense>BSD 2-Clause License</includedLicense>
                        <includedLicense>Common Public License Version 1.0</includedLicense>
                        <includedLicense>Revised BSD</includedLicense>
                        <includedLicense>New BSD License</includedLicense>
                        <includedLicense>The BSD License</includedLicense>
                        <includedLicense>Eclipse Public License 1.0</includedLicense>
                        <includedLicense>Public Domain</includedLicense>
                        <includedLicense>Bouncy Castle Licence</includedLicense>
                        <includedLicense>Universal Permissive License, Version 1.0</includedLicense>
                        <includedLicense>GNU General Public License, version 2, with the Classpath Exception
                        </includedLicense>
                        <includedLicense>Unicode/ICU License</includedLicense>
                        <includedLicense>BSD License</includedLicense>
                    </includedLicenses>

                    <licenseMerges>
                        <licenseMerge>
                            Apache 2.0 |
                            Apache-2.0 |
                            Apache 2 |
                            ASL, version 2 |
                            The Apache License, Version 2.0 |
                            Apache License Version 2.0 |
                            Apache License 2.0 |
                            Apache Software License - Version 2.0 |
                            The Apache Software License, Version 2.0 |
                            The Apache Software License, version 2.0 |
                            Apache License, Version 2.0 |
                            Similar to Apache License but with the acknowledgment clause removed |
                            apache_v2
                        </licenseMerge>
                        <licenseMerge>
                            CDDL 1.0 |
                            COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version 1.0 |
                            Common Development and Distribution License (CDDL) v1.0 |
                            Dual License: CDDL 1.0 and GPL V2 with Classpath Exception |
                            CDDL + GPLv2 with classpath exception |
                            cddl_v1
                            Dual license: CDDL 1.0 and GPL v2 |
                            Dual license consisting of the CDDL v1.0 and GPL v2 |
                            CDDL+GPLv2 |
                            CDDL+GPL |
                            CDDL+GPL License
                        </licenseMerge>
                        <licenseMerge>
                            CDDL 1.1 |
                            Dual license: CDDL 1.1 and GPL v2 |
                            Dual license consisting of the CDDL v1.1 and GPL v2 |
                            CDDL/GPLv2+CE |
                            CDDL1_1+GPLv2
                        </licenseMerge>
                        <licenseMerge>
                            MIT License |
                            MIT |
                            The MIT License
                        </licenseMerge>
                        <licenseMerge>
                            BSD Licence 3 |
                            3-Clause BSD License |
                            BSD-3-Clause |
                            New BSD License (3-clause BSD license)
                        </licenseMerge>
                        <licenseMerge>
                            BSD 2-Clause License |
                            BSD-2-Clause
                        </licenseMerge>
                        <licenseMerge>
                            The BSD License
                        </licenseMerge>
                        <licenseMerge>
                            Eclipse Public License 1.0 |
                            Eclipse Public License, Version 1.0 |
                            Eclipse Public License - Version 1.0
                        </licenseMerge>
                        <licenseMerge>
                            EDL 1.0 |
                            Eclipse Distribution License - v 1.0
                        </licenseMerge>
                        <licenseMerge>
                            Eclipse Public License v2.0 |
                            Eclipse Public License, Version 2.0
                        </licenseMerge>
                    </licenseMerges>
                </configuration>
                <dependencies>
                    <dependency>
                        <groupId>org.apache.logging.log4j</groupId>
                        <artifactId>log4j-to-slf4j</artifactId>
                        <version>${log4j2.version}</version>
                    </dependency>
                </dependencies>
                <executions>
                    <execution>
                        <id>add-third-party</id>
                        <goals>
                            <goal>add-third-party</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-source-plugin</artifactId>
                <version>3.1.0</version>
                <extensions>false</extensions>
                <inherited>true</inherited>
                <configuration>
                    <classifier>sources</classifier>
                    <skipSource>true</skipSource>
                    <attach>false</attach>
                </configuration>
                <executions>
                    <execution>
                        <id>attach-sources</id>
                        <goals>
                            <goal>jar</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>io.github.git-commit-id</groupId>
                <artifactId>git-commit-id-maven-plugin</artifactId>
                <version>9.0.0</version>
                <executions>
                    <execution>
                        <id>get-the-git-infos</id>
                        <goals>
                            <goal>revision</goal>
                        </goals>
                        <phase>initialize</phase>
                    </execution>
                </executions>
                <configuration>
                    <generateGitPropertiesFile>false</generateGitPropertiesFile>
                    <failOnNoGitDirectory>false</failOnNoGitDirectory>
                </configuration>
            </plugin>
            <!-- pdf generation
                 I have disabled generation of the pdf, as md file is perfectly rendered by the github.
                 I am leaving resource filtration so we could use updated file later on in other stage of the build.
            -->
            <plugin>
                <artifactId>maven-resources-plugin</artifactId>
                <version>3.3.1</version>
                <executions>
                    <execution>
                        <id>filter-resources</id>
                        <phase>generate-resources</phase>
                        <goals>
                            <goal>copy-resources</goal>
                        </goals>
                        <configuration>
                            <outputDirectory>${project.build.directory}/site</outputDirectory>
                            <resources>
                                <resource>
                                    <directory>site</directory>
                                    <filtering>true</filtering>
                                </resource>
                            </resources>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-enforcer-plugin</artifactId>
                <version>3.6.1</version>
                <executions>
                    <execution>
                        <id>enforce-no-snapshots</id>
                        <goals>
                            <goal>enforce</goal>
                        </goals>
                        <configuration>
                            <rules>
                                <requireReleaseDeps>
                                    <message>No external snapshot dependencies are allowed!</message>
                                    <onlyWhenRelease>false</onlyWhenRelease>
                                    <failWhenParentIsSnapshot>false</failWhenParentIsSnapshot>
                                    <excludes>
                                        <exclude>${project.groupId}:volt-stream*</exclude>
                                        <exclude>${project.groupId}:voltsp-poc*</exclude>
                                        <exclude>${project.groupId}:volt-test-*</exclude>
                                        <exclude>${project.groupId}:plugins</exclude>
                                    </excludes>
                                </requireReleaseDeps>
                            </rules>
                            <fail>true</fail>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>

    <profiles>
        <profile>
            <id>no-license</id>
            <build>
                <plugins>
                    <plugin>
                        <groupId>com.mycila</groupId>
                        <artifactId>license-maven-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>check-license-headers</id>
                                <phase>none</phase>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>
    </profiles>

    <repositories>
        <repository>
            <id>confluent</id>
            <url>${confluent-registry-url}</url>
            <releases>
                <enabled>true</enabled>
            </releases>
        </repository>
    </repositories>
</project>
