<?xml version="1.0" encoding="UTF-8"?>
<!-- ====================================================
         Maven 2 project configuration file
         http://maven.apache.org/maven2/
     ==================================================== -->

<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>
  <parent>
    <groupId>org.opengis</groupId>
    <artifactId>geoapi-parent</artifactId>
    <version>4.0-M18</version>
  </parent>



  <!-- ====================================================
           Project description
       ==================================================== -->
  <groupId>org.opengis</groupId>
  <artifactId>geoapi</artifactId>
  <name>GeoAPI normative</name>
  <description>
    The development community in building GIS solutions is sustaining an enormous level
    of effort. The GeoAPI project aims to reduce duplication and increase interoperability
    by providing neutral, interface-only APIs derived from OGC/ISO Standards.
  </description>



  <!-- ====================================================
           Developers and contributors
       ==================================================== -->
  <developers>
    <developer>
      <id>desruisseaux</id>
      <name>Martin Desruisseaux</name>
      <email>martin.desruisseaux@geomatys.com</email>
      <organization>Geomatys</organization>
      <organizationUrl>http://www.geomatys.com</organizationUrl>
      <roles>
        <role>Java developer</role>
        <role>Maintainer</role>
      </roles>
      <timezone>+1</timezone>
    </developer>
  </developers>

  <contributors>
    <contributor>
      <name>Cédric Briançon</name>
      <organization>Geomatys</organization>
      <organizationUrl>http://www.geomatys.com/</organizationUrl>
      <roles>
        <role>Java developer</role>
      </roles>
      <timezone>+1</timezone>
    </contributor>
    <contributor>
      <name>Ely Conn</name>
      <organization>Leica Geosystems Geospatial Imaging</organization>
      <roles>
        <role>Java developer</role>
      </roles>
    </contributor>
    <contributor>
      <!-- <id>avcuster</id> -->
      <name>Adrian Custer</name>
      <organization>Geomatys</organization>
      <organizationUrl>http://www.geomatys.com/</organizationUrl>
      <roles>
        <role>Specification editor</role>
      </roles>
      <timezone>+1</timezone>
    </contributor>
    <contributor>
      <!-- <id>crossley</id> -->
      <name>Jesse Crossley</name>
      <email>jcrossley@systechnologies.com</email>
      <organization>SYS Technologies</organization>
      <organizationUrl>http://www.systechnologies.com</organizationUrl>
      <roles>
        <role>Java developer</role>
      </roles>
      <timezone>-8</timezone>
    </contributor>
    <contributor>
      <!-- <id>jive</id> -->
      <name>Jody Garnett</name>
      <email>jive@users.sourceforge.net</email>
      <organization>Refractions Research</organization>
      <roles>
        <role>Java developer</role>
      </roles>
    </contributor>
    <contributor>
      <!-- <id>cory2070</id> -->
      <name>Cory Horner</name>
      <organization>Refractions Research</organization>
      <roles>
        <role>Java developer</role>
      </roles>
    </contributor>
    <contributor>
      <name>Bryce Nordgren</name>
      <organization>USDA</organization>
      <roles>
        <role>Java developer</role>
      </roles>
    </contributor>
    <contributor>
      <name>Greg Reynolds</name>
      <email>gregreynolds@cox.net</email>
      <roles>
        <role>Chairman</role>
        <role>Project manager</role>
      </roles>
    </contributor>
  </contributors>



  <!-- ====================================================
           Compilation and Packaging
       ==================================================== -->
  <build>
    <plugins>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>build-helper-maven-plugin</artifactId>
        <executions>
          <execution>
            <id>add-pending-placeholder</id>
            <goals>
              <goal>add-source</goal>
            </goals>
            <configuration>
              <sources>
                <source>src/pending/java</source>
              </sources>
            </configuration>
          </execution>
          <execution>
            <id>add-shared-tests</id>
            <goals>
              <goal>add-test-source</goal>
            </goals>
            <configuration>
              <sources>
                <source>src/shared/java</source>
              </sources>
            </configuration>
          </execution>
        </executions>
      </plugin>

      <!-- Anticipation for Java 9. -->
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-jar-plugin</artifactId>
        <configuration>
          <archive>
            <manifestEntries>
              <Automatic-Module-Name>
                org.opengis.geoapi
              </Automatic-Module-Name>
            </manifestEntries>
          </archive>
        </configuration>
      </plugin>
    </plugins>
  </build>



  <!-- ========================
           Run Python tests
       ======================== -->
  <profiles>
    <profile>
      <id>python</id>
      <build>
        <plugins>
          <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>exec-maven-plugin</artifactId>
            <executions>
              <execution>
                <goals>
                  <goal>exec</goal>
                </goals>
                <phase>test</phase>
              </execution>
            </executions>
            <configuration>
              <executable>python3</executable>
              <workingDirectory>${project.basedir}/src/test/python</workingDirectory>
              <environmentVariables>
                <PYTHONPATH>${project.basedir}/src/main/python</PYTHONPATH>
              </environmentVariables>
              <arguments>
                <argument>-m</argument>
                <argument>unittest</argument>
                <argument>discover</argument>
              </arguments>
            </configuration>
          </plugin>
        </plugins>
      </build>
    </profile>
  </profiles>

</project>
