<?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/maven-v4_0_0.xsd">
  <parent>
    <artifactId>undertow-parent</artifactId>
    <groupId>io.undertow</groupId>
    <version>2.3.23.Final</version>
  </parent>
  <modelVersion>4.0.0</modelVersion>
  <groupId>io.undertow</groupId>
  <artifactId>undertow-examples</artifactId>
  <name>Undertow Examples</name>
  <version>2.3.23.Final</version>
  <build>
    <resources>
      <resource>
        <directory>src/main/java</directory>
        <excludes>
          <exclude>**/*.java</exclude>
        </excludes>
      </resource>
      <resource>
        <directory>src/main/resources</directory>
      </resource>
    </resources>
    <finalName>undertow-examples</finalName>
    <plugins>
      <plugin>
        <artifactId>maven-shade-plugin</artifactId>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>shade</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <filters>
            <filter>
              <artifact>*:*</artifact>
              <excludes>
                <exclude>META-INF/MANIFEST.MF</exclude>
                <exclude>module-info.class</exclude>
                <exclude>META-INF/services/io.undertow.attribute.ExchangeAttributeBuilder</exclude>
                <exclude>META-INF/services/io.undertow.predicate.PredicateBuilder</exclude>
                <exclude>META-INF/services/io.undertow.server.handlers.builder.HandlerBuilder</exclude>
                <exclude>META-INF/LICENSE.md</exclude>
                <exclude>META-INF/LICENSE.txt</exclude>
                <exclude>META-INF/NOTICE.md</exclude>
              </excludes>
            </filter>
            <filter>
              <artifact>io.undertow/undertow-core</artifact>
              <excludes>
                <include>META-INF/services/io.undertow.attribute.ExchangeAttributeBuilder</include>
                <include>META-INF/services/io.undertow.predicate.PredicateBuilder</include>
                <include>META-INF/services/io.undertow.server.handlers.builder.HandlerBuilder</include>
              </excludes>
            </filter>
          </filters>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-jar-plugin</artifactId>
        <configuration>
          <archive>
            <manifest>
              <mainClass>io.undertow.examples.Runner</mainClass>
            </manifest>
          </archive>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>exec-maven-plugin</artifactId>
        <version>1.2.1</version>
        <configuration>
          <executable>java</executable>
          <arguments>
            <argument>-jar</argument>
            <argument>target/${project.build.finalName}.jar</argument>
          </arguments>
        </configuration>
      </plugin>
    </plugins>
  </build>
  <dependencies>
    <dependency>
      <groupId>org.jboss.logging</groupId>
      <artifactId>jboss-logging-processor</artifactId>
      <version>2.2.1.Final</version>
      <scope>provided</scope>
    </dependency>
  </dependencies>
</project>
