<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <modelVersion>4.0.0</modelVersion>
  <parent>
    <groupId>org.ibissource</groupId>
    <artifactId>ibis-adapterframework-parent</artifactId>
    <version>7.9.0</version>
  </parent>
  <groupId>org.ibissource</groupId>
  <artifactId>ibis-adapterframework-example</artifactId>
  <version>7.9.0</version>
  <packaging>war</packaging>
  <name>Ibis AdapterFramework example</name>
  <licenses>
    <license>
      <name>Apache License, Version 2.0</name>
      <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
      <distribution>repo</distribution>
    </license>
  </licenses>
  <properties>
    <m2eclipse.wtp.contextRoot>iaf-example</m2eclipse.wtp.contextRoot>
    <failOnMissingWebXml>false</failOnMissingWebXml>
  </properties>
  <dependencies>
    <dependency>
      <groupId>org.ibissource</groupId>
      <artifactId>ibis-adapterframework-core</artifactId>
    </dependency>
    <dependency>
      <groupId>org.ibissource</groupId>
      <artifactId>ibis-adapterframework-webapp</artifactId>
      <type>war</type>
    </dependency>
    <dependency>
      <groupId>com.h2database</groupId>
      <artifactId>h2</artifactId>
      <version>${h2.driver.version}</version>
    </dependency>
    <dependency>
      <groupId>org.apache.geronimo.specs</groupId>
      <artifactId>geronimo-jms_1.1_spec</artifactId>
      <scope>runtime</scope>
    </dependency>
    <dependency>
      <groupId>org.junit.jupiter</groupId>
      <artifactId>junit-jupiter</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>javax.servlet</groupId>
      <artifactId>javax.servlet-api</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.ibissource</groupId>
      <artifactId>ibis-adapterframework-larva</artifactId>
      <scope>test</scope>
    </dependency>
  </dependencies>
  <build>
    <plugins>
      <plugin>
        <groupId>org.eclipse.jetty</groupId>
        <artifactId>jetty-maven-plugin</artifactId>
        <version>9.4.53.v20231009</version>
        <configuration>
          <systemProperties>
            <systemProperty>
              <name>log.dir</name>
              <value>./target/logs</value>
            </systemProperty>
            <systemProperty>
              <name>log.level</name>
              <value>DEBUG</value>
            </systemProperty>
            <systemProperty>
              <name>dtap.stage</name>
              <value>LOC</value>
            </systemProperty>
          </systemProperties>
          <webAppConfig>
            <webInfIncludeJarPattern>.*/ibis-adapterframework-[^/]*\.jar$</webInfIncludeJarPattern>
            <allowDuplicateFragmentNames>true</allowDuplicateFragmentNames>
          </webAppConfig>
          <loginServices>
            <loginServices implementation="org.eclipse.jetty.jaas.JAASLoginService">
              <name>Frank</name>
            </loginServices>
          </loginServices>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-jar-plugin</artifactId>
        <executions>
          <execution>
            <id>zip-context</id>
            <phase>package</phase>
            <goals>
              <goal>jar</goal>
            </goals>
            <configuration>
              <classifier>context</classifier>
              <classesDirectory>src/main/webapp/META-INF</classesDirectory>
              <includes>context.xml</includes>
            </configuration>
          </execution>
          <execution>
            <id>zip-configurations</id>
            <phase>package</phase>
            <goals>
              <goal>jar</goal>
            </goals>
            <configuration>
              <classifier>configurations</classifier>
              <classesDirectory>src/main</classesDirectory>
              <includes>configurations/</includes>
            </configuration>
          </execution>
          <execution>
            <id>zip-resources</id>
            <phase>package</phase>
            <goals>
              <goal>jar</goal>
            </goals>
            <configuration>
              <classifier>resources</classifier>
              <classesDirectory>src/main/resources</classesDirectory>
            </configuration>
          </execution>
          <execution>
            <id>zip-scenarios</id>
            <phase>package</phase>
            <goals>
              <goal>jar</goal>
            </goals>
            <configuration>
              <classifier>scenarios</classifier>
              <classesDirectory>src/test/testtool</classesDirectory>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>org.jacoco</groupId>
        <artifactId>jacoco-maven-plugin</artifactId>
        <configuration>
          <skip>true</skip>
        </configuration>
      </plugin>
    </plugins>
  </build>
</project>
