<?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>2.2.2</version>
  </parent>
  <modelVersion>4.0.0</modelVersion>
  <artifactId>osgeo-postgis-jdbc-test-util</artifactId>
  <name>osgeo-postgis-jdbc-test-util</name>
  <version>2.2.2</version>
  <description>Simple smoke test util for verifying functionality postgis jdbc jar against a postgresql database with posgis
        extensions on OSGeo-Live.</description>
  <build>
    <plugins>
      <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.osgeo.util.Main</mainClass>
                </transformer>
              </transformers>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-surefire-plugin</artifactId>
        <configuration>
          <skip>${maven.test.skip}</skip>
          <suiteXmlFiles>
            <suiteXmlFile>src/test/resources/testng.xml</suiteXmlFile>
          </suiteXmlFiles>
          <systemPropertyVariables>
            <testTablePrefix>${testTablePrefix}</testTablePrefix>
            <jdbcUrl>${jdbcUrl}</jdbcUrl>
            <jdbcUsername>${jdbcUsername}</jdbcUsername>
            <jdbcPassword>${jdbcPassword}</jdbcPassword>
          </systemPropertyVariables>
        </configuration>
      </plugin>
    </plugins>
  </build>
  <dependencies>
    <dependency>
      <groupId>net.postgis</groupId>
      <artifactId>postgis-jdbc</artifactId>
      <version>2.2.2</version>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>org.testng</groupId>
      <artifactId>testng</artifactId>
      <version>6.14.3</version>
      <scope>test</scope>
      <exclusions>
        <exclusion>
          <artifactId>jcommander</artifactId>
          <groupId>com.beust</groupId>
        </exclusion>
        <exclusion>
          <artifactId>bsh</artifactId>
          <groupId>org.apache-extras.beanshell</groupId>
        </exclusion>
      </exclusions>
    </dependency>
  </dependencies>
  <properties>
    <maven.test.skip>true</maven.test.skip>
    <jdbcUsername>postgis1</jdbcUsername>
    <jdbcPassword>postgis1</jdbcPassword>
    <jdbcUrl>jdbc:postgresql://localhost:5432/postgis1</jdbcUrl>
    <testTablePrefix>SMOKE_TEST</testTablePrefix>
  </properties>
</project>
