<?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.3.3-SNAPSHOT</version>
  </parent>
  <artifactId>build_reporting</artifactId>
  <packaging>pom</packaging>
  <name>Reporting Module</name>

  <dependencies>
    <dependency>
      <groupId>at.asitplus.eidas.ms_specific</groupId>
      <artifactId>core_common_lib</artifactId>
    </dependency>
    <dependency>
      <groupId>at.asitplus.eidas.ms_specific</groupId>
      <artifactId>core_common_webapp</artifactId>
    </dependency>
    <dependency>
      <groupId>at.asitplus.eidas.ms_specific</groupId>
      <artifactId>core_commons_eidas</artifactId>
    </dependency>          
    <dependency>
      <groupId>at.asitplus.eidas.ms_specific.modules</groupId>
      <artifactId>authmodule-eIDAS-v2</artifactId>
    </dependency>
    <dependency>
      <groupId>at.asitplus.eidas.ms_specific.modules</groupId>
      <artifactId>authmodule_id-austria</artifactId>
    </dependency>
    <dependency>
      <groupId>at.asitplus.eidas.ms_specific.modules</groupId>
      <artifactId>eidas_proxy-sevice</artifactId>
    </dependency>
    <dependency>
      <groupId>at.asitplus.eidas.ms_specific</groupId>
      <artifactId>ms_specific_connector</artifactId>
      <type>war</type>
    </dependency>     
    <dependency>
      <groupId>at.asitplus.eidas.ms_specific</groupId>
      <artifactId>ms_specific_proxyservice</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>**/szrservices/*</exclude>
                <exclude>**/generated/cxf/*</exclude>
                <exclude>**at/gv/bmi/namespace/*</exclude>
                <exclude>**at/asitplus/eidas/specific/modules/auth/eidas/v2/dao/ernp/*</exclude>
                <exclude>**at/gv/bmi/namespace/*</exclude>
                <exclude>**at/asitplus/eidas/specific/modules/auth/eidas/v2/dao/ernp/*</exclude>
                <exclude>**at/gv/e_government/reference/namespace/*</exclude>
                <exclude>**org/w3/_2000/_09/*</exclude>
                <exclude>**org/xmlsoap/schemas/ws/*</exclude>
                <exclude>org/w3/_2000/**/*</exclude>
                <exclude>at/gv/bmi/namespace/**/*</exclude>
                <exclude>at/asitplus/eidas/specific/modules/auth/eidas/v2/dao/ernp/**/*</exclude>
                <exclude>at/gv/bmi/namespace/**/*</exclude>
                <exclude>at/gv/e_government/reference/namespace/**/*</exclude>
                <exclude>org/w3/_2000/_09/**/*</exclude>
                <exclude>org/xmlsoap/schemas/ws/**/*</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>