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

    <parent>
        <groupId>org.sonatype.oss</groupId>
        <artifactId>oss-parent</artifactId>
        <version>7</version>
    </parent>

    <groupId>nl.cloudfarming.client</groupId>
    <artifactId>cloudfarming-client</artifactId>
    <version>1.0.6</version>
    <packaging>pom</packaging>

    <name>cloudfarming-client - NetBeans Platform Application</name>

    <licenses>
        <license>
            <name>Eclipse Public License - v 1.0</name>
            <url>http://www.eclipse.org/legal/epl-v10.html</url>
        </license>
    </licenses>
<!--
    <distributionManagement>
        <site>
            <id>googlecode</id>
            <name>googlecode scm</name>
            <url>scm:svn:https://cloudfarming.googlecode.com/svn/site</url>
        </site>
    </distributionManagement>-->

    <scm>
        <connection>scm:hg:https://cloudfarming.googlecode.com/hg/</connection>
        <developerConnection>scm:hg:https://cloudfarming.googlecode.com/hg/</developerConnection>
        <url>https://cloudfarming.googlecode.com/hg/</url>
    </scm>

    <url>http://cloudfarming.googlecode.com</url>


    <repositories>
        <!-- this is a remote repository hosting the netbeans api artifacts.
         the versions of the artifacts are netbeans IDE release based, eg. RELEASE65
         You might want to use your own repository. To create one, use the nbm:populate-repository goal.
          -->

<!--        <repository>
            <id>sonatype-releases</id>
            <name>oss.sonatype releases repository</name>
            <url>https://oss.sonatype.org/content/repositories/releases/</url>
        </repository>-->
        <repository>
            <id>netbeans</id>
            <name>NetBeans Platform Maven Repository</name>
            <url>http://bits.netbeans.org/maven2/</url>
        </repository>
        <repository>
            <id>osgeo</id>
            <name>Open Source Geospatial Foundation Repository</name>
            <url>http://download.osgeo.org/webdav/geotools/</url>
        </repository>
        <repository>
            <id>jboss-public</id>
            <name>jboss-public</name>
            <url>http://repository.jboss.org/nexus/content/groups/public-jboss/</url>
        </repository>
    </repositories>
    <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>org.netbeans.api</groupId>
                <artifactId>org-openide-nodes</artifactId>
                <version>${netbeans.version}</version>
            </dependency>
            <dependency>
                <groupId>org.netbeans.api</groupId>
                <artifactId>org-netbeans-api-visual</artifactId>
                <version>${netbeans.version}</version>
            </dependency>
            <dependency>
                <groupId>org.netbeans.api</groupId>
                <artifactId>org-netbeans-api-annotations-common</artifactId>
                <version>${netbeans.version}</version>
            </dependency>
            <dependency>
                <groupId>org.netbeans.api</groupId>
                <artifactId>org-openide-windows</artifactId>
                <version>${netbeans.version}</version>
            </dependency>
            <dependency>
                <groupId>org.netbeans.api</groupId>
                <artifactId>org-openide-util-lookup</artifactId>
                <version>${netbeans.version}</version>
            </dependency>
            <dependency>
                <groupId>org.netbeans.api</groupId>
                <artifactId>org-netbeans-modules-autoupdate-services</artifactId>
                <version>${netbeans.version}</version>
            </dependency>
            <dependency>
                <groupId>org.netbeans.api</groupId>
                <artifactId>org-netbeans-modules-settings</artifactId>
                <version>${netbeans.version}</version>
            </dependency>
            <dependency>
                <groupId>org.swinglabs</groupId>
                <artifactId>swingx</artifactId>
                <version>1.6.1</version>
            </dependency>
            <dependency>
                <groupId>com.vividsolutions</groupId>
                <artifactId>jts</artifactId>
                <version>1.11</version>
                <type>jar</type>
            </dependency>
            <dependency>
                <groupId>org.swinglabs</groupId>
                <artifactId>swingx-ws</artifactId>
                <version>1.0</version>
            </dependency>
            <dependency>
                <groupId>org.netbeans.api</groupId>
                <artifactId>org-openide-util</artifactId>
                <version>${netbeans.version}</version>
            </dependency>
            <dependency>
                <groupId>nl.cloudfarming.eventbus</groupId>
                <artifactId>cloudfarming-eventbus</artifactId>
                <version>${eventbus.version}</version>
            </dependency>
            <dependency>
                <groupId>org.netbeans.api</groupId>
                <artifactId>org-openide-awt</artifactId>
                <version>${netbeans.version}</version>
            </dependency>
            <dependency>
                <artifactId>org-openide-dialogs</artifactId>
                <groupId>org.netbeans.api</groupId>
                <type>jar</type>
                <version>${netbeans.version}</version>
            </dependency>
            <dependency>
                <artifactId>org-netbeans-swing-outline</artifactId>
                <groupId>org.netbeans.api</groupId>
                <type>jar</type>
                <version>${netbeans.version}</version>
            </dependency>
            <dependency>
                <artifactId>org-netbeans-swing-tabcontrol</artifactId>
                <groupId>org.netbeans.api</groupId>
                <type>jar</type>
                <version>${netbeans.version}</version>
            </dependency>
            <dependency>
                <groupId>org.netbeans.api</groupId>
                <artifactId>org-openide-explorer</artifactId>
                <type>jar</type>
                <version>${netbeans.version}</version>
            </dependency>
            <!--dependency>
                <groupId>commons-logging</groupId>
                <artifactId>commons-logging</artifactId>
                <version>1.1.1</version>
            </dependency-->

            <!--dependency>
                <groupId>org.netbeans.api</groupId>
                <artifactId>org-netbeans-libs-springframework</artifactId>
                <version>${netbeans.version}</version>
                <exclusions>
                    <exclusion>
                        <artifactId>spring-2.5.6.SEC01</artifactId>
                        <groupId>org.netbeans.external</groupId>
                    </exclusion>
                </exclusions>
            </dependency-->
            <dependency>
                <groupId>cobertura</groupId>
                <artifactId>cobertura</artifactId>
                <version>1.8</version>
            </dependency>
            <dependency>
                <groupId>hsqldb</groupId>
                <artifactId>hsqldb</artifactId>
                <version>1.8.0.7</version>
            </dependency>
            <dependency>
                <groupId>org.mockito</groupId>
                <artifactId>mockito-all</artifactId>
                <version>1.8.5</version>
                <scope>test</scope>
            </dependency>
            <dependency>
                <artifactId>javax-persistence</artifactId>
                <groupId>com.kenai.nbpwr</groupId>
                <type>jar</type>
                <version>1.0-201003141300</version>
            </dependency>
            <dependency>
                <artifactId>org-openide-filesystems</artifactId>
                <groupId>org.netbeans.api</groupId>
                <type>jar</type>
                <version>${netbeans.version}</version>
            </dependency>
            <dependency>
                <artifactId>commons-beanutils</artifactId>
                <groupId>commons-beanutils</groupId>
                <type>jar</type>
                <version>1.8.3</version>
            </dependency>
            <dependency>
                <artifactId>commons-collections</artifactId>
                <groupId>commons-collections</groupId>
                <type>jar</type>
                <version>3.2.1</version>
            </dependency>
            <dependency>
                <groupId>org.netbeans.api</groupId>
                <artifactId>org-netbeans-api-progress</artifactId>
                <version>${netbeans.version}</version>
                <type>jar</type>
            </dependency>
            <dependency>
                <groupId>org.netbeans.api</groupId>
                <artifactId>org-netbeans-modules-options-api</artifactId>
                <version>${netbeans.version}</version>
                <type>jar</type>
            </dependency>
            <dependency>
                <groupId>com.miglayout</groupId>
                <artifactId>miglayout</artifactId>
                <version>3.7.3.1</version>
                <type>jar</type>
            </dependency>
            <dependency>
                <groupId>junit</groupId>
                <artifactId>junit</artifactId>
                <scope>test</scope>
                <version>4.8.2</version>
            </dependency>
            <dependency>
                <groupId>org.uispec4j</groupId>
                <artifactId>uispec4j</artifactId>
                <scope>test</scope>
                <version>2.4</version>
            </dependency>
            <dependency>
                <groupId>org.netbeans.api</groupId>
                <artifactId>org-netbeans-modules-nbjunit</artifactId>
                <version>${netbeans.version}</version>
                <scope>test</scope>
                <exclusions>
                    <exclusion>
                        <artifactId>junit-4.5</artifactId>
                        <groupId>org.netbeans.external</groupId>
                    </exclusion>
                </exclusions>
            </dependency>
            <dependency>
                <groupId>org.netbeans.modules</groupId>
                <artifactId>org-netbeans-insane</artifactId>
                <version>${netbeans.version}</version>
                <scope>test</scope>
            </dependency>
            <dependency>
                <artifactId>commons-lang</artifactId>
                <groupId>commons-lang</groupId>
                <type>jar</type>
                <version>2.6</version>
            </dependency>
            <dependency>
                <groupId>org.hsqldb</groupId>
                <artifactId>hsqldb</artifactId>
                <version>2.0.0</version>
            </dependency>
            <dependency>
                <artifactId>javassist</artifactId>
                <groupId>jboss</groupId>
                <type>jar</type>
                <version>3.7.ga</version>
            </dependency>
            <dependency>
                <groupId>org.hibernate</groupId>
                <artifactId>hibernate-entitymanager</artifactId>
                <version>3.4.0.GA</version>
                <exclusions>
                    <exclusion>
                        <artifactId>slf4j-api</artifactId>
                        <groupId>org.slf4j</groupId>
                    </exclusion>
                </exclusions>
            </dependency>
            <dependency>
                <artifactId>persistence-api</artifactId>
                <groupId>javax.persistence</groupId>
                <type>jar</type>
                <version>1.0</version>
            </dependency>
            <dependency>
                <groupId>com.kenai.nbpwr</groupId>
                <artifactId>org-hibernate-all-derby</artifactId>
                <version>3.2.6-201003141300</version>
            </dependency>
            <dependency>
                <artifactId>derby</artifactId>
                <groupId>org.apache.derby</groupId>
                <type>jar</type>
                <version>10.6.1.0</version>
            </dependency>
            <dependency>
                <groupId>org.slf4j</groupId>
                <artifactId>slf4j-api</artifactId>
                <version>1.5.11</version>
            </dependency>
            <dependency>
                <groupId>org.slf4j</groupId>
                <artifactId>slf4j-jdk14</artifactId>
                <version>1.5.11</version>
            </dependency>
            <dependency>
                <artifactId>jta</artifactId>
                <groupId>javax.transaction</groupId>
                <type>jar</type>
                <version>1.1</version>
            </dependency>
            <dependency>
                <groupId>commons-logging</groupId>
                <artifactId>commons-logging</artifactId>
                <version>1.1.1</version>
            </dependency>
            <!-- ================================================================= -->
            <!-- GEOTOOLS  -->
            <!-- ================================================================= -->
            <dependency>
                <groupId>org.geotools</groupId>
                <artifactId>gt-api</artifactId>
                <version>${geotools.version}</version>
            </dependency>
            <dependency>
                <groupId>org.geotools</groupId>
                <artifactId>gt-main</artifactId>
                <version>${geotools.version}</version>
            </dependency>
            <dependency>
                <groupId>org.geotools</groupId>
                <artifactId>gt-metadata</artifactId>
                <version>${geotools.version}</version>
            </dependency>
            <dependency>
                <groupId>org.geotools</groupId>
                <artifactId>gt-referencing</artifactId>
                <version>${geotools.version}</version>
            </dependency>
            <dependency>
                <groupId>org.geotools</groupId>
                <artifactId>gt-shapefile</artifactId>
                <version>${geotools.version}</version>
            </dependency>
            <dependency>
                <groupId>org.geotools</groupId>
                <artifactId>gt-swing</artifactId>
                <version>${geotools.version}</version>
            </dependency>
            <dependency>
                <groupId>org.geotools</groupId>
                <artifactId>gt-render</artifactId>
                <version>${geotools.version}</version>
            </dependency>
            <dependency>
                <artifactId>jsr-275</artifactId>
                <groupId>net.java.dev.jsr-275</groupId>
                <type>jar</type>
                <version>1.0-beta-2</version>
            </dependency>

<!--        <dependency>
            <groupId>org.geotools</groupId>
            <artifactId>gt-widgets-swing</artifactId>
            <version>2.5.8</version>
        </dependency>-->

<!--        <dependency>
            <groupId>org.geotools</groupId>
            <artifactId>gt-geotiff</artifactId>
            <version>2.5.5</version>
        </dependency>
        <dependency>
            <groupId>org.geotools</groupId>
            <artifactId>gt-image</artifactId>
            <version>2.5.5</version>
        </dependency>-->
            <dependency>
                <groupId>org.geotools</groupId>
                <artifactId>gt-coverage</artifactId>
                <version>${geotools.version}</version>
            </dependency>
            <dependency>
                <artifactId>gt-opengis</artifactId>
                <groupId>org.geotools</groupId>
                <version>${geotools.version}</version>
            </dependency>
<!--            <dependency>
                <artifactId>geoapi</artifactId>
                <groupId>org.opengis</groupId>
                <type>jar</type>
                <version>2.2.0</version>
            </dependency>-->

            <dependency>
                <groupId>javax.media</groupId>
                <artifactId>jai_core</artifactId>
                <version>1.1.3</version>
            </dependency>
            <dependency>
                <groupId>com.sun.media</groupId>
                <artifactId>jai-codec</artifactId>
                <version>1.1.3</version>
            </dependency>

            <dependency>
                <artifactId>dom4j</artifactId>
                <groupId>dom4j</groupId>
                <type>jar</type>
                <version>1.6.1</version>
            </dependency>
            <dependency>
                <artifactId>jdom</artifactId>
                <groupId>jdom</groupId>
                <type>jar</type>
                <version>1.0</version>
            </dependency>
            <dependency>
                <groupId>org.apache.commons</groupId>
                <artifactId>commons-io</artifactId>
                <version>1.3.2</version>
                <type>jar</type>
            </dependency>

            <dependency>
                <groupId>org.netbeans.api</groupId>
                <artifactId>org-netbeans-modules-jellytools-platform</artifactId>
                <version>${netbeans.version}</version>
                <scope>test</scope>
            </dependency>
        </dependencies>
    </dependencyManagement>

    <build>
        <plugins>
            <plugin>
                <inherited>false</inherited>
                <groupId>com.mycila.maven-license-plugin</groupId>
                <artifactId>maven-license-plugin</artifactId>
                <version>1.8.0</version>
                <configuration>
                    <header>${basedir}/etc/header.txt</header>
                    <failIfMissing>true</failIfMissing>
                    <aggregate>true</aggregate>
                    <properties>
                        <owner>Cloudfarming</owner>
                        <year>2010</year>
                        <email>info@cloudfarming.nl</email>
                    </properties>
                    <excludes>
                        <exclude>LICENSE.txt</exclude>
                        <exclude>etc/license.txt</exclude>
                        <exclude>**/src/test/resources/**</exclude>
                        <exclude>**/src/test/data/**</exclude>
                        <exclude>**/resources/**</exclude>
                        <exclude>**/site/**</exclude>
                        <exclude>**/*.properties</exclude>
                        <exclude>**/*.xml</exclude>
                        <exclude>**/*.mf</exclude>
                        <exclude>**/*.log</exclude>
                        <exclude>**/*.form</exclude>
                        <exclude>**/.hgtags</exclude>
                        <exclude>**/.hgignore</exclude>
                    </excludes>
                </configuration>
                <executions>
                    <execution>
                        <id>check-headers</id>
                        <phase>verify</phase>
                        <goals>
                            <goal>check</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
        <pluginManagement>
            <plugins>
                <plugin>
                    <groupId>org.codehaus.mojo</groupId>
                    <artifactId>nbm-maven-plugin</artifactId>
                    <version>3.4</version>
                    <extensions>true</extensions>
                    <configuration>
                        <brandingToken>${brandingToken}</brandingToken>
                        <cluster>cloudfarming</cluster>
                        <etcConfFile>src/main/resources/application.conf</etcConfFile>
                    </configuration>
                </plugin>

                <plugin>
                    <!-- netbeans modules in 6.9+ are 1.6 compatible -->
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-compiler-plugin</artifactId>
                    <version>2.3.2</version>
                    <configuration>
                        <source>1.6</source>
                        <target>1.6</target>
                    </configuration>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-surefire-plugin</artifactId>
                    <version>2.6</version>
                    <configuration>
                        <systemProperties>
                            <property>
                                <name>cluster.path.final</name>
                                <value>${project.build.directory}/${brandingToken}/${brandingToken}:${project.build.directory}/${brandingToken}/platform</value>
                            </property>
                        </systemProperties>
                    </configuration>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-jar-plugin</artifactId>
                    <version>2.3.1</version>
                    <configuration>
                        <!-- to have the jar plugin pickup the nbm generated manifest -->
                        <useDefaultManifestFile>true</useDefaultManifestFile>
                    </configuration>
                </plugin>
            </plugins>
        </pluginManagement>
    </build>

    <reports>
        <report>
                <!-- The following is the plugin for cobertura, which takes care of integration and report generation-->
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>cobertura-maven-plugin</artifactId>
                <configuration>
                    <check>
                        <branchRate>80</branchRate>
                        <lineRate>80</lineRate>
                        <haltOnFailure>true</haltOnFailure>
                        <totalBranchRate>80</totalBranchRate>
                        <totalLineRate>80</totalLineRate>
                        <packageLineRate>80</packageLineRate>
                        <packageBranchRate>80</packageBranchRate>
                    </check>
                    <instrumentation>
<!--                        <excludes>
                            <exclude>nl/cloudfarming/client/**/*Module.class</exclude>
                        </excludes>

                        <ignores>
                        </ignores>-->
                    </instrumentation>
                    <formats>
                        <format>html</format>
                        <format>xml</format>
                    </formats>
                </configuration>
            </plugin>
        </report>
    </reports>

    <profiles>
        <profile>
            <id>release-sign-artifacts</id>
            <activation>
                <property>
                    <name>performRelease</name>
                    <value>true</value>
                </property>
            </activation>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-gpg-plugin</artifactId>
                        <version>1.1</version>
                        <executions>
                            <execution>
                                <id>sign-artifacts</id>
                                <phase>verify</phase>
                                <goals>
                                    <goal>sign</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>
    </profiles>


    <modules>
        <module>branding</module>
        <module>application</module>
        <module>cloudfarming-client-geoviewer-api</module>
        <module>cloudfarming-client-geoviewer-jxmap</module>
        <module>sensor</module>
        <module>sensor-cropcircle</module>
        <module>sensor-greenseeker</module>
        <module>sensor-yara</module>
        <module>model</module>
        <module>area</module>
        <module>area-plot</module>
        <module>util</module>
        <module>lib-geotools</module>
        <module>db-local</module>
        <module>db-test</module>
        <module>db</module>
        <module>lib-hsqldb</module>
        <module>logging</module>
        <module>sensor-area</module>
        <module>lib-common</module>
        <module>crop</module>
        <module>crop-nl</module>
        <module>planning</module>
    </modules>

    <properties>
        <netbeans.version>RELEASE691</netbeans.version>
        <brandingToken>cloudfarming</brandingToken>
        <eventbus.version>1.0.3</eventbus.version>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <geotools.version>2.7.0</geotools.version>
    </properties>

    <developers>
        <developer>
            <name>Cloudfarming development team</name>
            <url>http://code.google.com/p/cloudfarming/people/list</url>
        </developer>
    </developers>

</project>