<?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>

    <name>Globalbedo</name>
    <groupId>org.esa.beam.globalbedo</groupId>
    <artifactId>beam-globalbedo</artifactId>
    <version>2.0.5-SNAPSHOT</version>

    <packaging>pom</packaging>

    <!--<repositories>-->
        <!--<repository>-->
            <!--<id>bc-mvn-repo-http</id>-->
            <!--<name>Public Maven Repository at Brockmann-Consult</name>-->
            <!--<url>http://www.brockmann-consult.de/mvn/os</url>-->
            <!--<releases>-->
                <!--<enabled>true</enabled>-->
                <!--<checksumPolicy>warn</checksumPolicy>-->
            <!--</releases>-->
            <!--<snapshots>-->
                <!--<enabled>true</enabled>-->
                <!--<checksumPolicy>warn</checksumPolicy>-->
            <!--</snapshots>-->
        <!--</repository>-->
        <!--<repository>-->
            <!--<id>osgeo</id>-->
            <!--<name>Open Source Geospatial Foundation Repository</name>-->
            <!--<url>http://download.osgeo.org/webdav/geotools/</url>-->
        <!--</repository>-->
        <!--<repository>-->
            <!--<id>maven-repository.unidata.ucar.edu</id>-->
            <!--<name>Unidata Repository</name>-->
            <!--<url>http://artifacts.unidata.ucar.edu/content/repositories/unidata-releases</url>-->
        <!--</repository>-->
    <!--</repositories>-->

    <!-- ADAPTED REPOSITORIES according to change of ~/.m2/settings.xml following MP, 20170217-->

    <repositories>
        <repository>
            <id>snap-repo-public</id>
            <name>Public Maven Repository for SNAP</name>
            <url>http://nexus.senbox.net/nexus/content/repositories/public/</url>
            <releases>
                <enabled>true</enabled>
                <checksumPolicy>warn</checksumPolicy>
            </releases>
            <snapshots>
                <enabled>true</enabled>
                <checksumPolicy>warn</checksumPolicy>
            </snapshots>
        </repository>
    </repositories>


    <!--<pluginRepositories>-->
        <!--<pluginRepository>-->
            <!--<id>bc-mvn-repo-http</id>-->
            <!--<name>Public Maven Repository at Brockmann-Consult</name>-->
            <!--<url>http://www.brockmann-consult.de/mvn/os</url>-->
            <!--<releases>-->
                <!--<enabled>true</enabled>-->
                <!--<checksumPolicy>warn</checksumPolicy>-->
            <!--</releases>-->
            <!--<snapshots>-->
                <!--<enabled>false</enabled>-->
                <!--<checksumPolicy>warn</checksumPolicy>-->
            <!--</snapshots>-->
        <!--</pluginRepository>-->
    <!--</pluginRepositories>-->

    <pluginRepositories>
        <pluginRepository>
            <id>snap-repo-public</id>
            <name>Public Maven Repository for SNAP</name>
            <url>http://nexus.senbox.net/nexus/content/repositories/public/</url>
            <releases>
                <enabled>true</enabled>
                <checksumPolicy>warn</checksumPolicy>
            </releases>
            <snapshots>
                <enabled>true</enabled>
                <checksumPolicy>warn</checksumPolicy>
            </snapshots>
        </pluginRepository>
    </pluginRepositories>


    <!--<distributionManagement>-->
        <!--<repository>-->
            <!--<id>bc-mvn-repo-public</id>-->
            <!--<name>Public Maven Repository at Brockmann Consult</name>-->
            <!--<url>scp://www.brockmann-consult.de/var/www/www.brockmann-consult.de/mvn/os</url>-->
            <!--<uniqueVersion>false</uniqueVersion>-->
        <!--</repository>-->
        <!--<snapshotRepository>-->
            <!--<id>bc-mvn-repo-public</id>-->
            <!--<name>Public Maven Snapshot Repository at Brockmann Consult</name>-->
            <!--<url>scp://www.brockmann-consult.de/var/www/www.brockmann-consult.de/mvn/os</url>-->
            <!--<uniqueVersion>false</uniqueVersion>-->
        <!--</snapshotRepository>-->
    <!--</distributionManagement>-->

    <distributionManagement>
        <repository>
            <id>snap-repo-public</id>
            <name>Public Maven Repository for SNAP</name>
            <url>http://nexus.senbox.net/nexus/content/repositories/releases/</url>
            <uniqueVersion>false</uniqueVersion>
        </repository>
        <snapshotRepository>
            <id>snap-repo-public</id>
            <name>Public Maven Snapshot Repository for SNAP</name>
            <url>http://nexus.senbox.net/nexus/content/repositories/snapshots/</url>
            <uniqueVersion>false</uniqueVersion>
        </snapshotRepository>
    </distributionManagement>


    <modules>
        <module>beam-globalbedo-auxdata</module>
        <module>beam-globalbedo-aerosol-retrieval</module>
        <module>beam-globalbedo-bootstrap</module>
        <module>beam-globalbedo-bbdr-retrieval</module>
        <module>beam-globalbedo-albedo-inversion</module>
        <module>beam-globalbedo-avhrr-ltdr-reader</module>
        <module>beam-globalbedo-mosaic-reader</module>
        <module>beam-globalbedo-meteosat-reader</module>
		<module>beam-globalbedo-modis29-reader</module>
		<module>beam-globalbedo-modis35-reader</module>
		<module>beam-globalbedo-misr-reader</module>
        <module>beam-globalbedo-upscaling</module>
        <module>beam-globalbedo-gmted2010</module>
        <!--<module>beam-tiff-directory-reader</module>-->
    </modules>

    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <ceresVersion>[0.14,0.15-SNAPSHOT)</ceresVersion>
        <beamVersion>[5.0,5.1-SNAPSHOT)</beamVersion>
        <!--<idepixVersion>2.2.19-SNAPSHOT</idepixVersion>-->
        <!--<idepixVersion>2.2.31-SNAPSHOT</idepixVersion>-->
        <idepixVersion>[2.2,2.3-SNAPSHOT]</idepixVersion>
    </properties>

    <dependencyManagement>
        <dependencies>

            <!-- Ceres System Level Module ############################################# -->

            <dependency>
                <groupId>com.bc.ceres</groupId>
                <artifactId>ceres-launcher</artifactId>
                <version>${ceresVersion}</version>
            </dependency>

            <dependency>
                <groupId>com.bc.ceres</groupId>
                <artifactId>ceres-core</artifactId>
                <version>${ceresVersion}</version>
            </dependency>

            <dependency>
                <groupId>com.bc.ceres</groupId>
                <artifactId>ceres-ui</artifactId>
                <version>${ceresVersion}</version>
            </dependency>

            <!-- BEAM System Level Modules ############################################# -->

            <dependency>
                <groupId>org.esa.beam</groupId>
                <artifactId>beam-visat</artifactId>
                <version>${beamVersion}</version>
            </dependency>
            <dependency>
                <groupId>org.esa.beam</groupId>
                <artifactId>beam-bootstrap</artifactId>
                <version>${beamVersion}</version>
            </dependency>
            <dependency>
                <groupId>org.esa.beam</groupId>
                <artifactId>beam-core</artifactId>
                <version>5.0.5-SNAPSHOT</version>
            </dependency>
            <dependency>
                <groupId>org.esa.beam</groupId>
                <artifactId>beam-gpf</artifactId>
                <version>${beamVersion}</version>
            </dependency>
            <dependency>
                <groupId>org.esa.beam</groupId>
                <artifactId>beam-ui</artifactId>
                <!-- seems to be necessary to set a fix version here. todo: clarify in Beam/Ceres, fix-->
                <version>5.0.2-SNAPSHOT</version>
            </dependency>
            <dependency>
                <groupId>org.esa.beam</groupId>
                <artifactId>beam-geotiff</artifactId>
                <version>${beamVersion}</version>
            </dependency>
            <dependency>
                <groupId>org.esa.beam</groupId>
                <artifactId>beam-collocation</artifactId>
                <version>${beamVersion}</version>
            </dependency>
            <dependency>
                <groupId>org.esa.beam</groupId>
                <artifactId>beam-envisat-reader</artifactId>
                <version>5.0.1</version>
            </dependency>
            <dependency>
                <groupId>org.esa.beam</groupId>
                <artifactId>beam-getasse30-reader</artifactId>
                <version>${beamVersion}</version>
            </dependency>
            <dependency>
                <groupId>org.esa.beam</groupId>
                <artifactId>beam-spot-vgt-reader</artifactId>
                <version>${beamVersion}</version>
            </dependency>
            <dependency>
                <groupId>org.esa.beam</groupId>
                <artifactId>beam-proba-v-reader</artifactId>
                <version>${beamVersion}</version>
            </dependency>
            <!-- We need to include the jhdf* here for Calvalus usage. They are included in beam-proba-v-reader
             as well, and in BEAM they are unpacked directly-->
            <!--<dependency>-->
                <!--<groupId>ncsa.hdf</groupId>-->
                <!--<artifactId>jhdf4obj</artifactId>-->
                <!--<version>2.7</version>-->
            <!--</dependency>-->
            <!--<dependency>-->
                <!--<groupId>ncsa.hdf</groupId>-->
                <!--<artifactId>jhdf5obj</artifactId>-->
                <!--<version>2.7</version>-->
            <!--</dependency>-->
            <!--<dependency>-->
                <!--<groupId>ncsa.hdf</groupId>-->
                <!--<artifactId>jhdfobj</artifactId>-->
                <!--<version>2.7</version>-->
            <!--</dependency>-->

            <dependency>
                <groupId>org.esa.beam</groupId>
                <artifactId>beam-meris-radiometry</artifactId>
                <version>${beamVersion}</version>
            </dependency>
            <dependency>
                <groupId>org.esa.beam</groupId>
                <artifactId>beam-netcdf</artifactId>
                <!--<version>${beamVersion}</version>-->
                <version>5.0.7</version>
            </dependency>

            <!-- JUnit Libraries ############################################# -->

            <dependency>
                <groupId>junit</groupId>
                <artifactId>junit</artifactId>
                <version>4.11</version>
                <scope>test</scope>
            </dependency>

            <dependency>
                <groupId>org.mockito</groupId>
                <artifactId>mockito-all</artifactId>
                <version>1.9.5</version>
                <scope>test</scope>
            </dependency>

            <!-- NetCDF Library ############################################# -->

            <dependency>
                <groupId>edu.ucar</groupId>
                <artifactId>netcdf</artifactId>
                <version>4.3.21</version>
            </dependency>
            <dependency>
                <groupId>edu.ucar</groupId>
                <artifactId>nujan</artifactId>
                <version>1.4.1.1</version>
            </dependency>

            <!-- External Libraries ############################################# -->

            <dependency>
                <groupId>org.esa.beam.aatsr-recalibration</groupId>
                <artifactId>beam-aatsr-recalibration</artifactId>
                <version>1.2.4</version>
            </dependency>
            <dependency>
                <groupId>org.esa.beam.idepix</groupId>
                <artifactId>beam-idepix-algorithms</artifactId>
                <version>${idepixVersion}</version>
            </dependency>
            <dependency>
                <groupId>org.esa.beam.idepix</groupId>
                <artifactId>beam-idepix-core</artifactId>
                <version>${idepixVersion}</version>
            </dependency>
            <dependency>
                <groupId>org.esa.beam.idepix</groupId>
                <artifactId>beam-idepix-operators</artifactId>
                <version>${idepixVersion}</version>
            </dependency>

            <dependency>
                <groupId>org.esa.beam</groupId>
                <artifactId>beam-watermask-operator</artifactId>
                <version>1.3.3</version>
            </dependency>

            <dependency>
                <groupId>org.apache.commons</groupId>
                <artifactId>commons-compress</artifactId>
                <version>1.2</version>
            </dependency>
            <dependency>
                <groupId>org.xeustechnologies</groupId>
                <artifactId>jtar</artifactId>
                <version>1.0.4</version>
            </dependency>

            <dependency>
                <groupId>commons-math3</groupId>
                <artifactId>commons-math3</artifactId>
                <version>3.2</version>
            </dependency>

        </dependencies>
    </dependencyManagement>

    <build>
        <plugins>
            <plugin>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>3.2</version>
                <configuration>
                    <source>1.7</source>
                    <target>1.7</target>
                    <debug>true</debug>
                    <fork>false</fork>
                    <encoding>UTF-8</encoding>
                </configuration>
            </plugin>
            <plugin>
                <artifactId>maven-assembly-plugin</artifactId>
                <version>2.2</version>
                <configuration>
                    <descriptors>
                        <descriptor>src/main/assembly/modules.xml</descriptor>
                    </descriptors>
                </configuration>
            </plugin>
            <plugin>
                <artifactId>maven-source-plugin</artifactId>
                <version>2.2.1</version>
                <executions>
                    <execution>
                        <phase>verify</phase>
                        <goals>
                            <goal>jar</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
                    <excludeResources>true</excludeResources>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <version>2.10</version>
                <configuration>
                    <forkMode>always</forkMode>
                </configuration>
            </plugin>
        </plugins>
        <extensions>
            <extension>
                <groupId>org.apache.maven.wagon</groupId>
                <artifactId>wagon-ssh</artifactId>
                <version>1.0-beta-7</version>
            </extension>
        </extensions>
    </build>
</project>