<?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>tools</artifactId>
    <groupId>net.postgis</groupId>
    <version>2021.1.0</version>
  </parent>
  <modelVersion>4.0.0</modelVersion>
  <artifactId>smoketest</artifactId>
  <name>smoketest</name>
  <version>2021.1.0</version>
  <description>Simple smoke test util for verifying functionality postgis jdbc jar against a postgresql database with posgis
        extensions on OSGeo-Live.</description>
  <build>
    <testResources>
      <testResource>
        <directory>src/test/resources</directory>
      </testResource>
      <testResource>
        <filtering>true</filtering>
        <directory>src/test/resources-filtered</directory>
      </testResource>
    </testResources>
    <plugins>
      <plugin>
        <artifactId>maven-failsafe-plugin</artifactId>
        <executions>
          <execution>
            <id>integration-tests</id>
            <goals>
              <goal>integration-test</goal>
              <goal>verify</goal>
            </goals>
            <configuration>
              <skip>${maven.integration.test.skip}</skip>
              <suiteXmlFiles>
                <suiteXmlFile>${project.build.testOutputDirectory}/testng-it.xml</suiteXmlFile>
              </suiteXmlFiles>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-shade-plugin</artifactId>
        <executions>
          <execution>
            <id>shade</id>
            <phase>package</phase>
            <goals>
              <goal>shade</goal>
            </goals>
            <configuration>
              <artifactSet>
                <excludes>
                  <exclude>net.postgis:postgis-jdbc</exclude>
                </excludes>
              </artifactSet>
              <transformers>
                <transformer>
                  <mainClass>net.postgis.jdbc.smoketest.OSGeo</mainClass>
                </transformer>
              </transformers>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-surefire-plugin</artifactId>
        <configuration>
          <skip>true</skip>
        </configuration>
      </plugin>
    </plugins>
  </build>
  <dependencies>
    <dependency>
      <groupId>net.postgis</groupId>
      <artifactId>postgis-jdbc</artifactId>
      <version>2021.1.0</version>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>net.postgis.tools</groupId>
      <artifactId>test-utils</artifactId>
      <version>2021.1.0</version>
      <scope>test</scope>
      <exclusions>
        <exclusion>
          <artifactId>testcontainers</artifactId>
          <groupId>org.testcontainers</groupId>
        </exclusion>
        <exclusion>
          <artifactId>testng</artifactId>
          <groupId>org.testng</groupId>
        </exclusion>
      </exclusions>
    </dependency>
  </dependencies>
  <properties>
    <testTablePrefix>SMOKE_TEST</testTablePrefix>
  </properties>
</project>
