<?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">
    <modelVersion>4.0.0</modelVersion>

    <!-- Maven Coordinates -->
    <parent>
        <groupId>org.orbisgis</groupId>
        <artifactId>orbisparent</artifactId>
        <version>1.2.0</version>
    </parent>
    <artifactId>h2gis-parent</artifactId>
    <version>2.0.0</version>
    <packaging>pom</packaging>

    <modules>
        <module>h2gis-api</module>
        <module>h2gis-utilities</module>
        <module>h2gis-test-utilities</module>
        <module>h2gis-functions</module>
        <module>h2gis-network</module>
        <module>h2gis-functions-osgi</module>
        <module>postgis-jts</module>
        <module>postgis-jts-osgi</module>
        <!--<module>h2gis-tests</module>-->
</modules>

<!-- Project Information -->
    <name>H2GIS</name>
    <description>H2GIS is a spatial extension of the H2 database engine in the spirit of PostGIS. It adds support for
        the Open Geospatial Consortium (OGC) Simple Features for SQL (SFSQL) functions.</description>

    <licenses>
        <license>
            <name>GNU Lesser General Public License (LGPLV3+)</name>
            <url>http://www.gnu.org/licenses/lgpl-3.0.html</url>
            <distribution>repo</distribution>
        </license>
    </licenses>

    <url>http://github.com/orbisgis/h2gis</url>

    <organization>
        <name>CNRS</name>
        <url>http://www.h2gis.org</url>
    </organization>

    <developers>
        <developer>
            <name>Nicolas Fortin</name>
            <organization>Laboratoire d’Acoustique Environnementale (LAE) - IFSTTAR</organization>
        </developer>
        <developer>
            <name>Erwan Bocher</name>
            <organization>CNRS, Lab-STICC UMR 6285</organization>
        </developer>
        <developer>
            <name>Sylvain Palominos</name>
            <organization>UBS, Lab-STICC UMR 6285</organization>
        </developer>
    </developers>

    <scm>
        <connection>scm:git:https://github.com/orbisgis/h2gis.git</connection>
        <developerConnection>scm:git:https://github.com/orbisgis/h2gis.git</developerConnection>
        <url>git@github.com:orbisgis/h2gis.git</url>
        <tag>v2.0.0</tag>
    </scm>

    <issueManagement>
        <system>Github</system>
        <url>https://github.com/orbisgis/h2gis/issues</url>
    </issueManagement>

    <!-- Properties -->
    <properties>
        <cts-version>1.6.0</cts-version>
        <poly2tri-version>0.4.0</poly2tri-version>
        <java-network-analyzer-version>0.3.0</java-network-analyzer-version>
    </properties>

    <!-- Dependencies -->
    <repositories>
        <repository>
            <id>oss-sonatype</id>
            <name>oss-sonatype-snapshot</name>
            <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
        </repository>
        <repository>
            <id>orbisgis-release</id>
            <name>oss-sonatype-release</name>
            <url>https://oss.sonatype.org/content/repositories/releases/</url>
        </repository>
    </repositories>

    <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>org.orbisgis</groupId>
                <artifactId>poly2tri</artifactId>
                <version>${poly2tri-version}</version>
            </dependency>
            <dependency>
                <groupId>org.orbisgis</groupId>
                <artifactId>java-network-analyzer</artifactId>
                <version>${java-network-analyzer-version}</version>
            </dependency>
            <dependency>
                <groupId>org.orbisgis</groupId>
                <artifactId>cts</artifactId>
                <version>${cts-version}</version>
            </dependency>
        </dependencies>
    </dependencyManagement>

    <!-- Build Settings -->
    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-jar-plugin</artifactId>
                <version>${maven-jar-version}</version>
                <configuration>
                    <archive>
                        <manifest>
                            <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
                        </manifest>
                        <manifestEntries>
                            <Specification-Vendor-URL>${project.organization.url}</Specification-Vendor-URL>
                            <Specification-URL>${project.url}</Specification-URL>
                        </manifestEntries>
                    </archive>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.jacoco</groupId>
                <artifactId>jacoco-maven-plugin</artifactId>
                <version>${jacoco-maven-version}</version>
                <executions>
                    <execution>
                        <goals>
                            <goal>prepare-agent</goal>
                        </goals>
                    </execution>
                    <execution>
                        <id>report</id>
                        <phase>test</phase>
                        <goals>
                            <goal>report</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>

    <profiles>
        <profile>
            <id>standalone</id>
            <modules>
                <module>h2gis-dist</module>
            </modules>
        </profile>
    </profiles>
</project>
