<?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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <parent>
    <groupId>at.asitplus.eidas</groupId>
    <artifactId>ms_specific</artifactId>
    <version>1.2.4-SNAPSHOT</version>
  </parent>
  <artifactId>build_reporting</artifactId>
  <packaging>pom</packaging>
  <name>Reporting Module</name>

  <dependencies>
    <dependency>
      <groupId>at.asitplus.eidas.ms_specific</groupId>
      <artifactId>connector_lib</artifactId>
    </dependency>
    <dependency>
      <groupId>at.asitplus.eidas.ms_specific.modules</groupId>
      <artifactId>authmodule-eIDAS-v2</artifactId>
    </dependency>
    <dependency>
      <groupId>at.asitplus.eidas.ms_specific</groupId>
      <artifactId>ms_specific_connector</artifactId>
      <type>war</type>
    </dependency>      
  </dependencies>

  <build>
    <plugins>
      <plugin>
        <groupId>org.jacoco</groupId>
        <artifactId>jacoco-maven-plugin</artifactId>
        <executions>
          <!-- aggregated unit test coverage report -->
          <execution>
            <id>aggregate-reports-ut</id>
            <phase>test</phase>
            <goals>
              <goal>report-aggregate</goal>
            </goals>
            <configuration>
              <title>Maven Multimodule Coverage Demo: Coverage of Unit Tests</title>
              <outputDirectory>${project.reporting.outputDirectory}/jacoco-aggregate-ut</outputDirectory>
              <dataFileExcludes>
                <!-- exclude coverage data of integration tests -->
                <dataFileExclude>**/target/jacoco-it.exec</dataFileExclude>
              </dataFileExcludes>
              <excludes>
                <exclude>**/at/gv/e_government/reference/namespace/persondata/_20020228/*</exclude>
                <exclude>**/org/w3/_2000/_09/*</exclude>
                <exclude>**/org/w3/_2001/_04/*</exclude>
                <exclude>**/szrservices/*</exclude>
                <exclude>**/generated/cxf/*</exclude>
                <exclude>**at/gv/bmi/namespace/*</exclude>
                <exclude>**at/asitplus/eidas/specific/modules/auth/eidas/v2/dao/ernp/*</exclude>
              </excludes>
            </configuration>
          </execution>
        </executions>
      </plugin>
      
      <plugin>
        <groupId>org.owasp</groupId>
        <artifactId>dependency-check-maven</artifactId>
        <configuration>
          <failBuildOnCVSS>11</failBuildOnCVSS>
          <failOnError>false</failOnError>
        </configuration>
        <executions>
          <execution>
            <goals>
              <goal>check</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      
    </plugins>
  </build>

</project>