<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- 
 Copyright (C) 2014 - 2016 - Open Source Geospatial Foundation. All rights reserved.
 This code is licensed under the GPL 2.0 license, available at the root
 application directory.
 -->
<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">
 <modelVersion>4.0.0</modelVersion>
 
 <properties>
    <netcdf.version>4.6.11</netcdf.version>
  </properties>
  
  <!--
  <repositories>
    <repository>
      <id>unidata</id>
      <name>Unidata UCAR Libraries repository</name>
      <url>https://artifacts.unidata.ucar.edu/content/repositories/unidata/</url>
    </repository>
  </repositories>
  -->
  
  <parent>
    <groupId>org.geoserver</groupId>
    <artifactId>extension</artifactId>
    <version>2.15-SNAPSHOT</version>
  </parent>

 <groupId>org.geoserver.extension</groupId>
 <artifactId>gs-netcdf-out</artifactId>
 <packaging>jar</packaging>
 <name>WCS NetCDF output Module</name>
 
 <dependencies>
  <dependency>
    <groupId>org.geoserver</groupId>
    <artifactId>gs-main</artifactId>
  </dependency>
  <dependency>
    <groupId>org.geoserver.web</groupId>
    <artifactId>gs-web-core</artifactId>
  </dependency>
  <dependency>
    <groupId>javax.xml.bind</groupId>
    <artifactId>jaxb-api</artifactId>
  </dependency>
  <dependency>
    <groupId>org.glassfish.jaxb</groupId>
    <artifactId>jaxb-runtime</artifactId>
  </dependency>
  <dependency>
    <groupId>org.geoserver</groupId>
    <artifactId>gs-main</artifactId>
    <classifier>tests</classifier>
    <scope>test</scope>
  </dependency>
  <dependency>
    <groupId>org.geoserver</groupId>
    <artifactId>gs-wcs</artifactId>
  </dependency>
  <dependency>
    <groupId>org.geoserver</groupId>
    <artifactId>gs-ows</artifactId>
    <scope>test</scope>
  </dependency>
  <dependency>
    <groupId>org.geoserver.web</groupId>
    <artifactId>gs-web-core</artifactId>
    <classifier>tests</classifier>
    <scope>test</scope>
    <version>${project.version}</version>
  </dependency>
  <dependency>
    <groupId>org.geoserver</groupId>
    <artifactId>gs-wcs1_1</artifactId>
    <scope>test</scope>
  </dependency>
  <dependency>
    <groupId>org.geotools.ogc</groupId>
    <artifactId>net.opengis.wcs</artifactId>
  </dependency>
  <dependency>
    <groupId>org.geotools.xsd</groupId>
    <artifactId>gt-xsd-wcs</artifactId>
  </dependency>
   <dependency>
    <groupId>org.geoserver</groupId>
    <artifactId>gs-wcs2_0</artifactId>
  </dependency>
  <dependency>
    <groupId>org.geoserver.extension</groupId>
    <artifactId>gs-netcdf</artifactId>
    <version>${project.version}</version>
  </dependency>
  <dependency>
    <groupId>org.geoserver.extension</groupId>
    <artifactId>gs-grib</artifactId>
    <version>${project.version}</version>
    <scope>test</scope>
  </dependency>
  <dependency>
    <groupId>org.geoserver</groupId>
    <artifactId>gs-wcs2_0</artifactId>
    <classifier>tests</classifier>
    <scope>test</scope>
  </dependency>
  <dependency>
    <groupId>org.geotools</groupId>
    <artifactId>gt-imagemosaic</artifactId>
    <scope>test</scope>
  </dependency>

  <!--  NetCDF logging dependencies -->
  <dependency>
    <groupId>org.slf4j</groupId>
    <artifactId>slf4j-log4j12</artifactId>
    <scope>runtime</scope>
  </dependency>
  <dependency>
    <groupId>org.slf4j</groupId>
    <artifactId>log4j-over-slf4j</artifactId>
  </dependency>

  <!-- TODO: relax this dependency: just need to depends on NetCDF java library from Unidata -->
  <dependency>
    <groupId>edu.ucar</groupId>
    <artifactId>udunits</artifactId>
    <version>${netcdf.version}</version>
  </dependency>
  <dependency>
    <groupId>org.geotools</groupId>
    <artifactId>gt-netcdf</artifactId>
    <version>${gt.version}</version>
    <exclusions>
      <exclusion>
        <groupId>org.slf4j</groupId>
        <artifactId>slf4j-api</artifactId>
      </exclusion>
      <exclusion>
        <groupId>org.slf4j</groupId>
        <artifactId>jcl-over-slf4j</artifactId>
      </exclusion>
    </exclusions>
  </dependency>
  <dependency>
   <groupId>org.springframework</groupId>
   <artifactId>spring-test</artifactId>
   <scope>test</scope>
  </dependency>
  <dependency>
   <groupId>xmlunit</groupId>
   <artifactId>xmlunit</artifactId>
   <scope>test</scope>
  </dependency>
  <dependency>
  	<groupId>org.geotools</groupId>
  	<artifactId>gt-jts-wrapper</artifactId>
  	<version>${gt.version}</version>
  	<scope>test</scope>
  </dependency>
 </dependencies>
 <build>
  <plugins>
   <plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-surefire-plugin</artifactId>
    <configuration>
      <systemPropertyVariables>
            <!-- settings these properties on Test's code won't work due to order of initialization -->
       <org.geotools.coverage.io.netcdf.convertAxis.km>false</org.geotools.coverage.io.netcdf.convertAxis.km>
       <buildDirectory>${project.build.directory}</buildDirectory>
      </systemPropertyVariables>
    </configuration>
   </plugin>
  </plugins>
 </build>
</project>
