<?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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <parent>
    <groupId>com.redhat.quarkus.platform</groupId>
    <artifactId>quarkus-amazon-services-integration-tests-parent</artifactId>
    <version>2.13.8.Final-redhat-00004</version>
    <relativePath>..</relativePath>
  </parent>
  <artifactId>quarkus-amazon-services-integration-tests</artifactId>
  <name>Quarkus Platform - AmazonServices - Integration Tests - quarkus-amazon-services-integration-tests</name>
  <dependencies>
    <dependency>
      <groupId>io.quarkiverse.amazonservices</groupId>
      <artifactId>quarkus-amazon-services-integration-tests</artifactId>
      <version>1.3.1</version>
    </dependency>
    <dependency>
      <groupId>io.quarkiverse.amazonservices</groupId>
      <artifactId>quarkus-amazon-services-integration-tests</artifactId>
      <version>1.3.1</version>
      <type>test-jar</type>
      <classifier>tests</classifier>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>io.quarkus</groupId>
      <artifactId>quarkus-junit5</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>io.rest-assured</groupId>
      <artifactId>rest-assured</artifactId>
      <scope>test</scope>
      <exclusions>
        <exclusion>
          <groupId>javax.activation</groupId>
          <artifactId>activation</artifactId>
        </exclusion>
        <exclusion>
          <groupId>javax.activation</groupId>
          <artifactId>javax.activation-api</artifactId>
        </exclusion>
        <exclusion>
          <groupId>jakarta.activation</groupId>
          <artifactId>jakarta.activation-api</artifactId>
        </exclusion>
        <exclusion>
          <groupId>com.sun.xml.bind</groupId>
          <artifactId>jaxb-osgi</artifactId>
        </exclusion>
        <exclusion>
          <groupId>commons-logging</groupId>
          <artifactId>commons-logging</artifactId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>org.awaitility</groupId>
      <artifactId>awaitility</artifactId>
      <scope>test</scope>
    </dependency>
  </dependencies>
  <build>
    <pluginManagement>
      <plugins>
        <plugin>
          <artifactId>maven-jar-plugin</artifactId>
          <executions>
            <execution>
              <id>default-jar</id>
              <phase>none</phase>
            </execution>
          </executions>
        </plugin>
        <plugin>
          <artifactId>maven-source-plugin</artifactId>
          <executions>
            <execution>
              <id>attach-sources</id>
              <phase>none</phase>
            </execution>
          </executions>
        </plugin>
      </plugins>
    </pluginManagement>
    <plugins>
      <plugin>
        <artifactId>maven-surefire-plugin</artifactId>
        <configuration>
          <dependenciesToScan>
            <dependency>io.quarkiverse.amazonservices:quarkus-amazon-services-integration-tests</dependency>
          </dependenciesToScan>
          <systemPropertyVariables>
            <cognitoidentity.url>http://localhost:5000</cognitoidentity.url>
            <dynamodb.url>http://localhost:4566</dynamodb.url>
            <iam.url>http://localhost:4566</iam.url>
            <kms.url>http://localhost:4566</kms.url>
            <s3.url>http://localhost:4566</s3.url>
            <secretsmanager.url>http://localhost:4566</secretsmanager.url>
            <ses.url>http://localhost:4566</ses.url>
            <sns.url>http://localhost:4566</sns.url>
            <sqs.url>http://localhost:4566</sqs.url>
            <ssm.url>http://localhost:4566</ssm.url>
          </systemPropertyVariables>
        </configuration>
      </plugin>
      <plugin>
        <groupId>io.fabric8</groupId>
        <artifactId>docker-maven-plugin</artifactId>
        <version>0.38.0</version>
        <configuration>
          <images>
            <image>
              <name>localstack/localstack:0.13.1</name>
              <alias>aws-local-stack</alias>
              <run>
                <env>
                  <SERVICES>s3,dynamodb,sns,sqs,kms,ssm,ses,secretsmanager</SERVICES>
                  <START_WEB>0</START_WEB>
                </env>
                <ports>
                  <port>4566:4566</port>
                </ports>
                <log/>
                <wait>
                  <time>30000</time>
                  <log>^Ready\.$</log>
                </wait>
              </run>
            </image>
            <image>
￼                           <name>motoserver/moto:3.0.2</name>
￼                           <alias>aws-moto</alias>
￼                           <run>
￼                               <ports>
￼                                   <port>5000:5000</port>
￼                               </ports>
￼                               <log/>
￼                               <wait>
￼                                   <time>30000</time>
￼                                   <log>^ \* Running on</log>
￼                               </wait>
￼                           </run>
￼                       </image>
          </images>
          <allContainers>true</allContainers>
          <skip>${skipTests}</skip>
        </configuration>
        <executions>
          <execution>
            <id>docker-start</id>
            <phase>compile</phase>
            <goals>
              <goal>stop</goal>
              <goal>start</goal>
            </goals>
          </execution>
          <execution>
            <id>docker-stop</id>
            <phase>post-integration-test</phase>
            <goals>
              <goal>stop</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
  <profiles>
    <profile>
      <id>native-image</id>
      <activation>
        <property>
          <name>native</name>
        </property>
      </activation>
      <build>
        <plugins>
          <plugin>
            <artifactId>maven-failsafe-plugin</artifactId>
            <executions>
              <execution>
                <goals>
                  <goal>integration-test</goal>
                  <goal>verify</goal>
                </goals>
                <configuration>
                  <systemProperties>
                    <native.image.path>${project.build.directory}/${project.build.finalName}-runner</native.image.path>
                    <cognitoidentity.url>http://localhost:5000</cognitoidentity.url>
                    <dynamodb.url>http://localhost:4566</dynamodb.url>
                    <iam.url>http://localhost:4566</iam.url>
                    <kms.url>http://localhost:4566</kms.url>
                    <s3.url>http://localhost:4566</s3.url>
                    <secretsmanager.url>http://localhost:4566</secretsmanager.url>
                    <ses.url>http://localhost:4566</ses.url>
                    <sns.url>http://localhost:4566</sns.url>
                    <sqs.url>http://localhost:4566</sqs.url>
                    <ssm.url>http://localhost:4566</ssm.url>
                  </systemProperties>
                </configuration>
              </execution>
            </executions>
            <configuration>
              <dependenciesToScan>
                <dependency>io.quarkiverse.amazonservices:quarkus-amazon-services-integration-tests</dependency>
              </dependenciesToScan>
            </configuration>
          </plugin>
          <plugin>
            <groupId>io.quarkus</groupId>
            <artifactId>quarkus-maven-plugin</artifactId>
            <version>${quarkus.version}</version>
            <executions>
              <execution>
                <id>native-image</id>
                <goals>
                  <goal>build</goal>
                </goals>
                <configuration>
                  <appArtifact>io.quarkiverse.amazonservices:quarkus-amazon-services-integration-tests:1.3.1</appArtifact>
                </configuration>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
      <properties>
        <quarkus.package.type>native</quarkus.package.type>
      </properties>
    </profile>
  </profiles>
</project>
