<?xml version="1.0"?>
<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/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>

  <artifactId>modules-geo</artifactId>
  <name>BaseX Geo Module</name>
  <description>EXPath Geo module implementation for BaseX</description>

  <parent>
    <groupId>org.basex.modules</groupId>
    <artifactId>basex-modules</artifactId>
    <version>13.0-SNAPSHOT</version>
  </parent>

  <properties>
    <geotools.version>34.5</geotools.version>
    <hsqldb.version>2.7.4</hsqldb.version>
    <gt-epsg-hsql.version>34.5-C321</gt-epsg-hsql.version>
  </properties>

  <repositories>
    <repository>
      <id>osgeo</id>
      <name>Open Source Geospatial Foundation Repository</name>
      <url>https://repo.osgeo.org/repository/release</url>
    </repository>
    <repository>
      <id>geosolutions</id>
      <name>GeoSolutions Repository</name>
      <url>https://maven.geo-solutions.it/</url>
    </repository>
  </repositories>

  <dependencies>
    <dependency>
      <groupId>org.geotools</groupId>
      <artifactId>gt-main</artifactId>
      <version>${geotools.version}</version>
    </dependency>

    <dependency>
      <groupId>org.geotools.xsd</groupId>
      <artifactId>gt-xsd-wfs</artifactId>
      <version>${geotools.version}</version>
    </dependency>

    <dependency>
      <groupId>org.hsqldb</groupId>
      <artifactId>hsqldb</artifactId>
      <version>${hsqldb.version}</version>
    </dependency>

    <dependency>
      <groupId>org.geotools</groupId>
      <artifactId>gt-epsg-hsql</artifactId>
      <version>${gt-epsg-hsql.version}</version>
      <exclusions>
        <exclusion>
          <groupId>javax.media</groupId>
          <artifactId>jai_core</artifactId>
        </exclusion>
      </exclusions>
    </dependency>
  </dependencies>

  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-dependency-plugin</artifactId>
        <configuration>
          <excludeGroupIds>org.apiguardian</excludeGroupIds>
        </configuration>
      </plugin>

      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-jar-plugin</artifactId>
        <configuration>
          <archive>
            <manifest>
              <mainClass>org.expath.ns.Geo</mainClass>
            </manifest>
          </archive>
        </configuration>
      </plugin>

      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>license-maven-plugin</artifactId>
        <configuration>
          <excludedGroups>org.apiguardian</excludedGroups>
          <includedLicenses>
            <includedLicense>Apache License</includedLicense>
            <includedLicense>BSD 3-Clause License</includedLicense>
            <includedLicense>Eclipse Public License - v 1.0</includedLicense>
            <includedLicense>Eclipse Public License - v 2.0</includedLicense>
            <includedLicense>Go License</includedLicense>
            <includedLicense>GNU Lesser General Public License (LGPL)</includedLicense>
            <includedLicense>HSQLDB License, a BSD open source license</includedLicense>
            <includedLicense>MIT License</includedLicense>
          </includedLicenses>
        </configuration>
      </plugin>
    </plugins>
  </build>
</project>
