<?xml version="1.0" encoding="UTF-8"?>
<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>
        <artifactId>parent</artifactId>
        <groupId>io.axual.helper</groupId>
        <version>1.0.0-M2</version>
        <relativePath>../parent/pom.xml</relativePath>
    </parent>

    <artifactId>report-aggregate</artifactId>
    <name>report-aggregate</name>
    <description>Used to aggregate submodule jacoco reports</description>

    <version>1.0.0-M2</version>
    <packaging>pom</packaging>

    <dependencies>

        <!-- submodules -->
        <dependency>
            <groupId>io.axual.helper</groupId>
            <artifactId>axual-generic</artifactId>
        </dependency>
        <dependency>
            <groupId>io.axual.helper</groupId>
            <artifactId>axual-kafka</artifactId>
        </dependency>

    </dependencies>

    <build>
        <plugins>

            <plugin>
                <groupId>org.jacoco</groupId>
                <artifactId>jacoco-maven-plugin</artifactId>
                <executions>
                    <execution>
                        <id>report-aggregate</id>
                        <phase>verify</phase>
                        <goals>
                            <goal>report-aggregate</goal>
                        </goals>
                    </execution>
                    <execution>
                        <id>jacoco-site</id>
                        <phase>package</phase>
                        <goals>
                            <goal>report</goal>
                        </goals>
                    </execution>
                </executions>

            </plugin>

        </plugins>
    </build>

</project>