<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_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.jboss.resteasy</groupId>
      <artifactId>resteasy-testsuite</artifactId>
      <version>6.2.2.Final</version>
      <relativePath>../pom.xml</relativePath>
   </parent>

   <description>A set of tests that runs with server-adapters,
      resteasy-jdk-http, resteasy-netty4, resteasy-undertow, resteasy-vertx
   </description>
   <artifactId>integration-tests-embedded</artifactId>
   <name>RESTEasy Main testsuite: Embedded Server tests</name>

   <dependencies>
      <dependency>
         <groupId>junit</groupId>
         <artifactId>junit</artifactId>
         <scope>test</scope>
      </dependency>

      <dependency>
         <groupId>org.jboss.resteasy</groupId>
         <artifactId>resteasy-netty4</artifactId>
         <version>${version.resteasy.testsuite}</version>
      </dependency>
      <dependency>
         <groupId>org.jboss.resteasy</groupId>
         <artifactId>resteasy-undertow</artifactId>
         <version>${version.resteasy.testsuite}</version>
      </dependency>
       <dependency>
           <groupId>org.jboss.resteasy</groupId>
           <artifactId>resteasy-undertow-cdi</artifactId>
           <version>${version.resteasy.testsuite}</version>
       </dependency>
      <dependency>
         <groupId>org.jboss.resteasy</groupId>
         <artifactId>resteasy-vertx</artifactId>
         <version>${version.resteasy.testsuite}</version>
      </dependency>
      <dependency>
         <groupId>io.vertx</groupId>
         <artifactId>vertx-core</artifactId>
      </dependency>

      <!-- needed for test ResteasyJdkHttpTest -->
      <dependency>
         <groupId>org.jboss.resteasy</groupId>
         <artifactId>resteasy-jdk-http</artifactId>
         <version>${version.resteasy.testsuite}</version>
      </dependency>

      <dependency>
         <groupId>org.jboss.resteasy</groupId>
         <artifactId>resteasy-core-spi</artifactId>
         <version>${version.resteasy.testsuite}</version>
      </dependency>
      <dependency>
         <groupId>org.jboss.resteasy</groupId>
         <artifactId>resteasy-core</artifactId>
         <version>${version.resteasy.testsuite}</version>
      </dependency>
      <dependency>
         <groupId>org.jboss.resteasy</groupId>
         <artifactId>resteasy-client</artifactId>
         <version>${version.resteasy.testsuite}</version>
      </dependency>
      <dependency>
          <groupId>jakarta.servlet</groupId>
          <artifactId>jakarta.servlet-api</artifactId>
         <scope>test</scope>
      </dependency>
      <dependency>
          <groupId>jakarta.annotation</groupId>
          <artifactId>jakarta.annotation-api</artifactId>
      </dependency>
       <dependency>
           <groupId>jakarta.ws.rs</groupId>
           <artifactId>jakarta.ws.rs-api</artifactId>
       </dependency>
      <dependency>
         <groupId>org.jboss.logging</groupId>
         <artifactId>jboss-logging</artifactId>
      </dependency>
      <dependency>
         <groupId>org.jboss.logging</groupId>
         <artifactId>jboss-logging-annotations</artifactId>
      </dependency>
      <dependency>
         <groupId>org.jboss.logging</groupId>
         <artifactId>jboss-logging-processor</artifactId>
      </dependency>
      <dependency>
          <groupId>org.jboss.resteasy</groupId>
          <artifactId>arquillian-utils</artifactId>
          <scope>test</scope>
      </dependency>
      <dependency>
          <groupId>org.glassfish</groupId>
          <artifactId>jakarta.el</artifactId>
      </dependency>
      <dependency>
          <groupId>org.hibernate.validator</groupId>
          <artifactId>hibernate-validator</artifactId>
      </dependency>
   </dependencies>

    <build>
        <plugins>
            <plugin>
                <artifactId>maven-surefire-plugin</artifactId>
                <configuration>
                    <includes>
                        <include>**/*Test.java</include>
                    </includes>
                    <systemPropertyVariables>
                        <java.util.logging.manager>org.jboss.logmanager.LogManager</java.util.logging.manager>
                    </systemPropertyVariables>
                </configuration>
                <executions>
                    <execution>
                        <id>default-test</id>
                    </execution>
                    <execution>
                        <id>undertow-cdi</id>
                        <goals>
                            <goal>test</goal>
                        </goals>
                        <configuration>
                            <classpathDependencyExcludes>
                                <exclude>${project.groupId}:resteasy-undertow</exclude>
                                <exclude>${project.groupId}:resteasy-netty4</exclude>
                                <exclude>${project.groupId}:resteasy-jdk-http</exclude>
                                <exclude>${project.groupId}:resteasy-vertx</exclude>
                            </classpathDependencyExcludes>
                        </configuration>
                    </execution>

                    <execution>
                        <id>Undertow</id>
                        <goals>
                            <goal>test</goal>
                        </goals>
                        <configuration>
                            <classpathDependencyExcludes>
                                <exclude>${project.groupId}:resteasy-undertow-cdi</exclude>
                                <exclude>${project.groupId}:resteasy-netty4</exclude>
                                <exclude>${project.groupId}:resteasy-jdk-http</exclude>
                                <exclude>${project.groupId}:resteasy-vertx</exclude>
                            </classpathDependencyExcludes>
                        </configuration>
                    </execution>

                    <execution>
                        <id>Netty</id>
                        <goals>
                            <goal>test</goal>
                        </goals>

                        <configuration>
                            <classpathDependencyExcludes>
                                <exclude>${project.groupId}:resteasy-undertow</exclude>
                                <exclude>${project.groupId}:resteasy-undertow-cdi</exclude>
                                <exclude>${project.groupId}:resteasy-jdk-http</exclude>
                                <exclude>${project.groupId}:resteasy-vertx</exclude>
                            </classpathDependencyExcludes>
                        </configuration>
                    </execution>

                    <execution>
                        <id>Vert.x</id>
                        <goals>
                            <goal>test</goal>
                        </goals>

                        <configuration>
                            <!-- This test was previously only executed on the UndertowJaxrsServer. It does not seem to
                                 work with Vert.x, so we'll just skip it. -->
                            <excludes>
                                <exclude>**/NonCDIValidatorFactoryTest</exclude>
                            </excludes>
                            <classpathDependencyExcludes>
                                <exclude>${project.groupId}:resteasy-undertow</exclude>
                                <exclude>${project.groupId}:resteasy-undertow-cdi</exclude>
                                <exclude>${project.groupId}:resteasy-jdk-http</exclude>
                                <exclude>${project.groupId}:resteasy-netty4</exclude>
                            </classpathDependencyExcludes>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>

</project>
