<?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>sedona-parent</artifactId>
    <groupId>org.apache.sedona</groupId>
    <version>1.4.0</version>
  </parent>
  <modelVersion>4.0.0</modelVersion>
  <artifactId>sedona-spark-shaded-${spark.compat.version}_${scala.compat.version}</artifactId>
  <name>${project.groupId}:${project.artifactId}</name>
  <description>A cluster computing system for processing large-scale spatial data: Spark Shaded.</description>
  <url>http://sedona.apache.org/</url>
  <build>
    <sourceDirectory>src/main/scala</sourceDirectory>
    <plugins>
      <plugin>
        <groupId>io.paradoxical</groupId>
        <artifactId>resolved-pom-maven-plugin</artifactId>
        <version>1.0</version>
        <executions>
          <execution>
            <id>resolve-my-pom</id>
            <phase>none</phase>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-shade-plugin</artifactId>
        <version>2.1</version>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>shade</goal>
            </goals>
            <configuration>
              <transformers>
                <transformer />
                <transformer>
                  <resource>reference.conf</resource>
                </transformer>
              </transformers>
              <artifactSet>
                <excludes>
                  <exclude>org.scala-lang:scala-library</exclude>
                </excludes>
              </artifactSet>
              <filters>
                <filter>
                  <artifact>*:*</artifact>
                  <excludes>
                    <exclude>META-INF/*.SF</exclude>
                    <exclude>META-INF/*.DSA</exclude>
                    <exclude>META-INF/*.RSA</exclude>
                  </excludes>
                </filter>
              </filters>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
  <profiles>
    <profile>
      <id>geotools</id>
      <properties>
        <geotools.scope>compile</geotools.scope>
      </properties>
    </profile>
  </profiles>
  <dependencies>
    <dependency>
      <groupId>org.geotools</groupId>
      <artifactId>gt-main</artifactId>
      <version>28.2</version>
      <scope>provided</scope>
      <exclusions>
        <exclusion>
          <artifactId>jts-core</artifactId>
          <groupId>org.locationtech.jts</groupId>
        </exclusion>
        <exclusion>
          <artifactId>*</artifactId>
          <groupId>com.fasterxml.jackson.core</groupId>
        </exclusion>
        <exclusion>
          <artifactId>gt-http</artifactId>
          <groupId>org.geotools</groupId>
        </exclusion>
        <exclusion>
          <artifactId>commons-text</artifactId>
          <groupId>org.apache.commons</groupId>
        </exclusion>
        <exclusion>
          <artifactId>jai_core</artifactId>
          <groupId>javax.media</groupId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>org.geotools</groupId>
      <artifactId>gt-referencing</artifactId>
      <version>28.2</version>
      <scope>provided</scope>
      <exclusions>
        <exclusion>
          <artifactId>*</artifactId>
          <groupId>com.fasterxml.jackson.core</groupId>
        </exclusion>
        <exclusion>
          <artifactId>ejml-ddense</artifactId>
          <groupId>org.ejml</groupId>
        </exclusion>
        <exclusion>
          <artifactId>commons-pool</artifactId>
          <groupId>commons-pool</groupId>
        </exclusion>
        <exclusion>
          <artifactId>gt-metadata</artifactId>
          <groupId>org.geotools</groupId>
        </exclusion>
        <exclusion>
          <artifactId>jgridshift-core</artifactId>
          <groupId>it.geosolutions.jgridshift</groupId>
        </exclusion>
        <exclusion>
          <artifactId>GeographicLib-Java</artifactId>
          <groupId>net.sf.geographiclib</groupId>
        </exclusion>
        <exclusion>
          <artifactId>jai_core</artifactId>
          <groupId>javax.media</groupId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>org.geotools</groupId>
      <artifactId>gt-epsg-hsql</artifactId>
      <version>28.2</version>
      <scope>provided</scope>
      <exclusions>
        <exclusion>
          <artifactId>*</artifactId>
          <groupId>com.fasterxml.jackson.core</groupId>
        </exclusion>
        <exclusion>
          <artifactId>hsqldb</artifactId>
          <groupId>org.hsqldb</groupId>
        </exclusion>
        <exclusion>
          <artifactId>jai_core</artifactId>
          <groupId>javax.media</groupId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>org.geotools</groupId>
      <artifactId>gt-geotiff</artifactId>
      <version>28.2</version>
      <scope>provided</scope>
      <exclusions>
        <exclusion>
          <artifactId>jai_imageio</artifactId>
          <groupId>javax.media</groupId>
        </exclusion>
        <exclusion>
          <artifactId>imageio-ext-tiff</artifactId>
          <groupId>it.geosolutions.imageio-ext</groupId>
        </exclusion>
        <exclusion>
          <artifactId>imageio-ext-cog-reader</artifactId>
          <groupId>it.geosolutions.imageio-ext</groupId>
        </exclusion>
        <exclusion>
          <artifactId>jai_core</artifactId>
          <groupId>javax.media</groupId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>org.geotools</groupId>
      <artifactId>gt-arcgrid</artifactId>
      <version>28.2</version>
      <scope>provided</scope>
      <exclusions>
        <exclusion>
          <artifactId>imageio-ext-arcgrid</artifactId>
          <groupId>it.geosolutions.imageio-ext</groupId>
        </exclusion>
        <exclusion>
          <artifactId>jai_core</artifactId>
          <groupId>javax.media</groupId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>org.geotools</groupId>
      <artifactId>gt-coverage</artifactId>
      <version>28.2</version>
      <scope>provided</scope>
      <exclusions>
        <exclusion>
          <artifactId>jt-zonalstats</artifactId>
          <groupId>org.jaitools</groupId>
        </exclusion>
        <exclusion>
          <artifactId>jt-utils</artifactId>
          <groupId>org.jaitools</groupId>
        </exclusion>
        <exclusion>
          <artifactId>jt-affine</artifactId>
          <groupId>it.geosolutions.jaiext.affine</groupId>
        </exclusion>
        <exclusion>
          <artifactId>jt-algebra</artifactId>
          <groupId>it.geosolutions.jaiext.algebra</groupId>
        </exclusion>
        <exclusion>
          <artifactId>jt-bandmerge</artifactId>
          <groupId>it.geosolutions.jaiext.bandmerge</groupId>
        </exclusion>
        <exclusion>
          <artifactId>jt-bandselect</artifactId>
          <groupId>it.geosolutions.jaiext.bandselect</groupId>
        </exclusion>
        <exclusion>
          <artifactId>jt-bandcombine</artifactId>
          <groupId>it.geosolutions.jaiext.bandcombine</groupId>
        </exclusion>
        <exclusion>
          <artifactId>jt-border</artifactId>
          <groupId>it.geosolutions.jaiext.border</groupId>
        </exclusion>
        <exclusion>
          <artifactId>jt-buffer</artifactId>
          <groupId>it.geosolutions.jaiext.buffer</groupId>
        </exclusion>
        <exclusion>
          <artifactId>jt-crop</artifactId>
          <groupId>it.geosolutions.jaiext.crop</groupId>
        </exclusion>
        <exclusion>
          <artifactId>jt-iterators</artifactId>
          <groupId>it.geosolutions.jaiext.iterators</groupId>
        </exclusion>
        <exclusion>
          <artifactId>jt-lookup</artifactId>
          <groupId>it.geosolutions.jaiext.lookup</groupId>
        </exclusion>
        <exclusion>
          <artifactId>jt-mosaic</artifactId>
          <groupId>it.geosolutions.jaiext.mosaic</groupId>
        </exclusion>
        <exclusion>
          <artifactId>jt-nullop</artifactId>
          <groupId>it.geosolutions.jaiext.nullop</groupId>
        </exclusion>
        <exclusion>
          <artifactId>jt-rescale</artifactId>
          <groupId>it.geosolutions.jaiext.rescale</groupId>
        </exclusion>
        <exclusion>
          <artifactId>jt-scale</artifactId>
          <groupId>it.geosolutions.jaiext.scale</groupId>
        </exclusion>
        <exclusion>
          <artifactId>jt-scale2</artifactId>
          <groupId>it.geosolutions.jaiext.scale2</groupId>
        </exclusion>
        <exclusion>
          <artifactId>jt-stats</artifactId>
          <groupId>it.geosolutions.jaiext.stats</groupId>
        </exclusion>
        <exclusion>
          <artifactId>jt-translate</artifactId>
          <groupId>it.geosolutions.jaiext.translate</groupId>
        </exclusion>
        <exclusion>
          <artifactId>jt-utilities</artifactId>
          <groupId>it.geosolutions.jaiext.utilities</groupId>
        </exclusion>
        <exclusion>
          <artifactId>jt-warp</artifactId>
          <groupId>it.geosolutions.jaiext.warp</groupId>
        </exclusion>
        <exclusion>
          <artifactId>jt-zonal</artifactId>
          <groupId>it.geosolutions.jaiext.zonal</groupId>
        </exclusion>
        <exclusion>
          <artifactId>jt-binarize</artifactId>
          <groupId>it.geosolutions.jaiext.binarize</groupId>
        </exclusion>
        <exclusion>
          <artifactId>jt-format</artifactId>
          <groupId>it.geosolutions.jaiext.format</groupId>
        </exclusion>
        <exclusion>
          <artifactId>jt-colorconvert</artifactId>
          <groupId>it.geosolutions.jaiext.colorconvert</groupId>
        </exclusion>
        <exclusion>
          <artifactId>jt-errordiffusion</artifactId>
          <groupId>it.geosolutions.jaiext.errordiffusion</groupId>
        </exclusion>
        <exclusion>
          <artifactId>jt-orderdither</artifactId>
          <groupId>it.geosolutions.jaiext.orderdither</groupId>
        </exclusion>
        <exclusion>
          <artifactId>jt-colorindexer</artifactId>
          <groupId>it.geosolutions.jaiext.colorindexer</groupId>
        </exclusion>
        <exclusion>
          <artifactId>jt-imagefunction</artifactId>
          <groupId>it.geosolutions.jaiext.imagefunction</groupId>
        </exclusion>
        <exclusion>
          <artifactId>jt-piecewise</artifactId>
          <groupId>it.geosolutions.jaiext.piecewise</groupId>
        </exclusion>
        <exclusion>
          <artifactId>jt-classifier</artifactId>
          <groupId>it.geosolutions.jaiext.classifier</groupId>
        </exclusion>
        <exclusion>
          <artifactId>jt-rlookup</artifactId>
          <groupId>it.geosolutions.jaiext.rlookup</groupId>
        </exclusion>
        <exclusion>
          <artifactId>jt-vectorbin</artifactId>
          <groupId>it.geosolutions.jaiext.vectorbin</groupId>
        </exclusion>
        <exclusion>
          <artifactId>jt-shadedrelief</artifactId>
          <groupId>it.geosolutions.jaiext.shadedrelief</groupId>
        </exclusion>
        <exclusion>
          <artifactId>commons-io</artifactId>
          <groupId>commons-io</groupId>
        </exclusion>
        <exclusion>
          <artifactId>jai_imageio</artifactId>
          <groupId>javax.media</groupId>
        </exclusion>
        <exclusion>
          <artifactId>imageio-ext-tiff</artifactId>
          <groupId>it.geosolutions.imageio-ext</groupId>
        </exclusion>
        <exclusion>
          <artifactId>jai_core</artifactId>
          <groupId>javax.media</groupId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>4.13.1</version>
      <scope>test</scope>
      <exclusions>
        <exclusion>
          <artifactId>hamcrest-core</artifactId>
          <groupId>org.hamcrest</groupId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>org.apache.logging.log4j</groupId>
      <artifactId>log4j-core</artifactId>
      <version>2.17.2</version>
      <scope>test</scope>
      <exclusions>
        <exclusion>
          <artifactId>log4j-api</artifactId>
          <groupId>org.apache.logging.log4j</groupId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>org.apache.logging.log4j</groupId>
      <artifactId>log4j-slf4j-impl</artifactId>
      <version>2.17.2</version>
      <scope>test</scope>
      <exclusions>
        <exclusion>
          <artifactId>slf4j-api</artifactId>
          <groupId>org.slf4j</groupId>
        </exclusion>
        <exclusion>
          <artifactId>log4j-api</artifactId>
          <groupId>org.apache.logging.log4j</groupId>
        </exclusion>
      </exclusions>
    </dependency>
  </dependencies>
  <properties>
    <geotools.scope>provided</geotools.scope>
    <cdm.scope>compile</cdm.scope>
    <maven.deploy.skip>false</maven.deploy.skip>
  </properties>
</project>

