<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.ms_specific</groupId>
    <artifactId>modules</artifactId>
    <version>1.2.2</version>
  </parent>
  <groupId>at.asitplus.eidas.ms_specific.modules</groupId>
  <artifactId>authmodule_id-austria</artifactId>
  <name>ID-Austria authentication</name>
  <description>User authentication forwarding user to ID Austria system</description>
  
  <dependencies>
    <dependency>
      <groupId>at.gv.egiz.components</groupId>
      <artifactId>egiz-spring-api</artifactId>
    </dependency>
    <dependency>
      <groupId>at.asitplus.eidas.ms_specific</groupId>
      <artifactId>connector_lib</artifactId>
    </dependency>
    <dependency>
      <groupId>at.asitplus.eidas.ms_specific.modules</groupId>
      <artifactId>eidas_proxy-sevice</artifactId>
    </dependency>
    <dependency>
      <groupId>at.gv.egiz.eaaf</groupId>
      <artifactId>eaaf-core</artifactId>
    </dependency>    
    <dependency>
      <groupId>at.gv.egiz.eaaf</groupId>
      <artifactId>eaaf_module_pvp2_sp</artifactId>
    </dependency>
        
    <dependency>
      <groupId>org.apache.commons</groupId>
      <artifactId>commons-lang3</artifactId>
    </dependency>
    <dependency>
      <groupId>com.google.guava</groupId>
      <artifactId>guava</artifactId>
    </dependency>
    <dependency>
      <groupId>org.apache.commons</groupId>
      <artifactId>commons-text</artifactId>
    </dependency>

    <dependency>
      <groupId>javax.servlet</groupId>
      <artifactId>javax.servlet-api</artifactId>
      <scope>provided</scope>
    </dependency>

    <!-- Testing -->
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.springframework</groupId>
      <artifactId>spring-test</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.powermock</groupId>
      <artifactId>powermock-module-junit4</artifactId>
      <version>2.0.7</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.powermock</groupId>
      <artifactId>powermock-api-mockito2</artifactId>
      <version>2.0.7</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>com.squareup.okhttp3</groupId>
      <artifactId>mockwebserver</artifactId>
      <scope>test</scope>
    </dependency>  
    
    <dependency>
      <groupId>at.asitplus.eidas.ms_specific</groupId>
      <artifactId>connector_lib</artifactId>
      <scope>test</scope>
      <type>test-jar</type>
    </dependency>
    
    <dependency>
      <groupId>at.gv.egiz.eaaf</groupId>
      <artifactId>eaaf_core_utils</artifactId>
      <scope>test</scope>
      <type>test-jar</type>
    </dependency>
    <dependency>
      <groupId>at.gv.egiz.eaaf</groupId>
      <artifactId>eaaf-core</artifactId>
      <scope>test</scope>
      <type>test-jar</type>
    </dependency>
    <dependency>
      <groupId>at.gv.egiz.eaaf</groupId>
      <artifactId>eaaf_module_pvp2_core</artifactId>
      <scope>test</scope>
      <type>test-jar</type>
    </dependency>    
    <dependency>
      <groupId>at.gv.egiz.eaaf</groupId>
      <artifactId>eaaf_module_pvp2_idp</artifactId>
      <scope>test</scope>
      <type>test-jar</type>
    </dependency>    
  </dependencies>
  
<build>
    <resources>
      <resource>
        <directory>src/main/resources</directory>
      </resource>
    </resources>

    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
      </plugin>
      
      <plugin>
        <groupId>com.github.spotbugs</groupId>
        <artifactId>spotbugs-maven-plugin</artifactId>
        <version>${spotbugs-maven-plugin.version}</version>
        <configuration>
          <excludeFilterFile>checks/spotbugs-exclude.xml</excludeFilterFile>
        </configuration>
      </plugin>

      <plugin>
        <groupId>org.jacoco</groupId>
        <artifactId>jacoco-maven-plugin</artifactId>
        <executions>
          <execution>
            <id>post-unit-check</id>
            <phase>test</phase>
            <goals>
              <goal>check</goal>
              <goal>report</goal>
            </goals>
            <configuration>
              <haltOnFailure>true</haltOnFailure>                         
            </configuration>
          </execution>
        </executions>
      </plugin>

      <!-- enable co-existence of testng and junit -->
      <plugin>
        <artifactId>maven-surefire-plugin</artifactId>
        <configuration>
          <threadCount>1</threadCount>
        </configuration>
        <dependencies>
          <dependency>
            <groupId>org.apache.maven.surefire</groupId>
            <artifactId>surefire-junit47</artifactId>
            <version>${surefire.version}</version>
          </dependency>
        </dependencies>
      </plugin>
    </plugins>
  </build>  
  
  
</project>