<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>4.7.3.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-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>
         <exclusions>
            <exclusion>
               <groupId>org.eclipse.microprofile.config</groupId>
               <artifactId>microprofile-config-api</artifactId>
            </exclusion>
         </exclusions>
      </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>org.jboss.spec.javax.servlet</groupId>
         <artifactId>jboss-servlet-api_4.0_spec</artifactId>
         <scope>test</scope>
      </dependency>
      <dependency>
         <groupId>org.jboss.spec.javax.annotation</groupId>
         <artifactId>jboss-annotations-api_1.3_spec</artifactId>
      </dependency>
      <dependency>
         <groupId>org.jboss.spec.javax.ws.rs</groupId>
         <artifactId>jboss-jaxrs-api_2.1_spec</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>
                </configuration>
                <executions>
                    <execution>
                        <id>default-test</id>
                        <goals>
                            <goal>test</goal>
                        </goals>

                        <configuration>
                            <systemPropertyVariables>
                                <fileName>org.jboss.resteasy.plugins.server.undertow.UndertowJaxrsServer</fileName>
                            </systemPropertyVariables>
                        </configuration>
                    </execution>

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

                        <configuration>
                            <systemPropertyVariables>
                                <fileName>org.jboss.resteasy.plugins.server.netty.NettyJaxrsServer</fileName>
                            </systemPropertyVariables>
                        </configuration>
                    </execution>

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

                        <configuration>
                            <systemPropertyVariables>
                                <fileName>org.jboss.resteasy.plugins.server.sun.http.SunHttpJaxrsServer</fileName>
                            </systemPropertyVariables>
                        </configuration>
                    </execution>

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

                        <configuration>
                            <systemPropertyVariables>
                                <fileName>org.jboss.resteasy.plugins.server.vertx.VertxJaxrsServer</fileName>
                            </systemPropertyVariables>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>

</project>