<?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>
    <groupId>org.gvsig</groupId>
    <artifactId>org.gvsig.desktop</artifactId>
    <packaging>pom</packaging>

    <version>3.0.0</version>
    <parent>
      <groupId>org.gvsig</groupId>
      <artifactId>org.gvsig.base</artifactId>
      <version>3.0.3</version>
    </parent>

    <name>${project.artifactId}</name>
    <description>
        This is part of the sources of "gSIG desktop" application.

        gvSIG is a Geographic Information System (GIS), that is, a desktop application
        designed for capturing, storing, handling, analyzing and deploying any kind of
        referenced geographic information in order to solve complex management and planning
        problems. gvSIG is known for having a user-friendly interface, being able to access
        the most common formats, both vector and raster ones. It features a wide range of
        tools for working with geographic-like information (query tools, layout creation,
        geoprocessing, networks, etc.), which turns gvSIG into the ideal tool for users
        working in the land realm.
    </description>

    <scm>
        <connection>scm:svn:https://devel.gvsig.org/svn/gvsig-desktop/tags/org.gvsig.desktop-3.0.0</connection>
        <developerConnection>scm:svn:https://devel.gvsig.org/svn/gvsig-desktop/tags/org.gvsig.desktop-3.0.0</developerConnection>
        <url>https://devel.gvsig.org/svn/gvsig-desktop/tags/org.gvsig.desktop-3.0.0</url>
    </scm>

    <repositories>
        <repository>
            <id>gvsig-3-public-http-repository</id>
            <name>gvSIG maven public HTTP repository</name>
            <url>https://devel.gvsig.org/m2repo/j2se-gvsig-3.X</url>
            <releases>
                <enabled>true</enabled>
                <updatePolicy>daily</updatePolicy>
                <checksumPolicy>warn</checksumPolicy>
            </releases>
            <snapshots>
                <enabled>true</enabled>
                <updatePolicy>daily</updatePolicy>
                <checksumPolicy>warn</checksumPolicy>
            </snapshots>
        </repository>
        <repository>
            <id>gvsig-public-http-repository</id>
            <name>gvSIG maven public HTTP repository</name>
            <url>https://devel.gvsig.org/m2repo/j2se</url>
            <releases>
                <enabled>true</enabled>
                <updatePolicy>daily</updatePolicy>
                <checksumPolicy>warn</checksumPolicy>
            </releases>
            <snapshots>
                <enabled>true</enabled>
                <updatePolicy>daily</updatePolicy>
                <checksumPolicy>warn</checksumPolicy>
            </snapshots>
        </repository>
    </repositories>
    <pluginRepositories>
      <pluginRepository>
        <id>gvsig-public-http-repository</id>
        <name>gvSIG maven public HTTP repository</name>
        <url>https://devel.gvsig.org/m2repo/j2se</url>
        <releases>
          <enabled>true</enabled>
          <updatePolicy>daily</updatePolicy>
          <checksumPolicy>warn</checksumPolicy>
        </releases>
        <snapshots>
          <enabled>true</enabled>
          <updatePolicy>daily</updatePolicy>
          <checksumPolicy>warn</checksumPolicy>
        </snapshots>
      </pluginRepository>
    </pluginRepositories>

    <dependencyManagement>
        <dependencies>
	    <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.tools</artifactId>
                <version>${gvsig.tools.version}</version>
                <type>pom</type>
                <scope>import</scope>
	    </dependency>
	    <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.crs</artifactId>
                <version>${gvsig.crs.version}</version>
                <type>pom</type>
                <scope>import</scope>
	    </dependency>
            <!-- Non gvSIG projects -->
            <!-- NOTE: the list of dependencies is ordered alphabetically -->
            <!-- by the artifactId. Please, if new dependencies are added, -->
            <!--keep the order.-->

            <dependency>
                <groupId>org.n52</groupId>
                <artifactId>52n-wps-config</artifactId>
                <version>1.0.1</version>
            </dependency>
            <dependency>
                <groupId>net.opengis</groupId>
                <artifactId>52n-wps-xml</artifactId>
                <version>1.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.jzkit</groupId>
                <artifactId>a2j-runtime</artifactId>
                <version>2.0.9</version>
            </dependency>
            <dependency>
                <groupId>org.jzkit</groupId>
                <artifactId>a2j</artifactId>
                <version>2.0.9</version>
            </dependency>
            <dependency>
                <groupId>net.swing</groupId>
                <artifactId>amic-util</artifactId>
                <version>unknown</version>
            </dependency>
            <dependency>
                <groupId>org.apache.ant</groupId>
                <artifactId>ant</artifactId>
                <version>1.10.15</version>
            </dependency>
            <dependency>
                <groupId>org.apache.ant</groupId>
                <artifactId>ant-apache-oro</artifactId>
                <version>1.10.15</version>
            </dependency>
            <dependency>
                <groupId>ant-contrib</groupId>
                <artifactId>ant-contrib</artifactId>
                <version>1.0b3</version>
                <exclusions>
                    <exclusion>
                        <groupId>ant</groupId>
                        <artifactId>ant</artifactId>
                    </exclusion>
                </exclusions>
            </dependency>
            <dependency>
                <groupId>org.apache.ant</groupId>
                <artifactId>ant-launcher</artifactId>
                <version>1.10.15</version>
            </dependency>
<!--            <dependency>
                <groupId>org.apache.ant</groupId>
                <artifactId>ant-nodeps</artifactId>
                <version>1.8.1</version>
            </dependency>-->
            <dependency>
                <groupId>org.tigris.antelope</groupId>
                <artifactId>antelopetasks</artifactId>
                <version>3.2.10</version>
            </dependency>
            <dependency>
                <groupId>com.sardak</groupId>
                <artifactId>antform</artifactId>
                <version>2.0</version>
            </dependency>
            <dependency>
              <groupId>com.fifesoft</groupId>
              <artifactId>autocomplete</artifactId>
              <version>2.5.7</version>
            </dependency>

            <dependency>
                <groupId>org.apache.xmlgraphics</groupId>
                <artifactId>batik-awt-util</artifactId>
                <version>1.7</version>
            </dependency>
            <dependency>
                <groupId>org.apache.xmlgraphics</groupId>
                <artifactId>batik-bridge</artifactId>
                <version>1.7</version>
            </dependency>
            <dependency>
                <groupId>org.apache.xmlgraphics</groupId>
                <artifactId>batik-ext</artifactId>
                <version>1.7</version>
            </dependency>
            <dependency>
                <groupId>org.apache.xmlgraphics</groupId>
                <artifactId>batik-gui-util</artifactId>
                <version>1.7</version>
            </dependency>
            <dependency>
                <groupId>org.apache.xmlgraphics</groupId>
                <artifactId>batik-gvt</artifactId>
                <version>1.7</version>
            </dependency>
            <dependency>
                <groupId>org.apache.xmlgraphics</groupId>
                <artifactId>batik-script</artifactId>
                <version>1.7</version>
            </dependency>
            <dependency>
                <groupId>org.apache.xmlgraphics</groupId>
                <artifactId>batik-xml</artifactId>
                <version>1.7</version>
            </dependency>
            <dependency>
                <groupId>org.apache.xmlgraphics</groupId>
                <artifactId>batik-anim</artifactId>
                <version>1.7</version>
            </dependency>
            <dependency>
                <groupId>org.apache.xmlgraphics</groupId>
                <artifactId>batik-css</artifactId>
                <version>1.7</version>
            </dependency>
            <dependency>
                <groupId>org.apache.xmlgraphics</groupId>
                <artifactId>batik-dom</artifactId>
                <version>1.7</version>
            </dependency>
            <dependency>
                <groupId>org.apache.xmlgraphics</groupId>
                <artifactId>batik-js</artifactId>
                <version>1.7</version>
            </dependency>
            <dependency>
                <groupId>org.apache.xmlgraphics</groupId>
                <artifactId>batik-parser</artifactId>
                <version>1.7</version>
            </dependency>
            <dependency>
                <groupId>org.apache.xmlgraphics</groupId>
                <artifactId>batik-svg-dom</artifactId>
                <version>1.7</version>
            </dependency>

            <dependency>
                <groupId>bsf</groupId>
                <artifactId>bsf</artifactId>
                <version>2.3.0-rc1</version>
            </dependency>
            <dependency>
                <groupId>org.apache.bsf</groupId>
                <artifactId>bsf-api</artifactId>
                <version>3.1</version>
            </dependency>
            <dependency>
                <groupId>org.apache.bsf</groupId>
                <artifactId>bsf-utils</artifactId>
                <version>3.1</version>
            </dependency>
            <dependency>
                <groupId>bsh</groupId>
                <artifactId>bsh</artifactId>
                <version>2.0b4</version>
            </dependency>
            <dependency>
                <groupId>castor</groupId>
                <artifactId>castor</artifactId>
                <version>0.9.5.3</version>
            </dependency>

            <dependency>
                <groupId>commons-beanutils</groupId>
                <artifactId>commons-beanutils</artifactId>
                <version>1.6</version>
            </dependency>
            <dependency>
                <groupId>commons-dbcp</groupId>
                <artifactId>commons-dbcp</artifactId>
                <version>1.2.2</version>
            </dependency>
            <dependency>
                <groupId>commons-codec</groupId>
                <artifactId>commons-codec</artifactId>
                <version>1.6</version>
            </dependency>
            <dependency>
                <groupId>commons-collections</groupId>
                <artifactId>commons-collections</artifactId>
                <version>3.2.2</version>
            </dependency>
<!--            <dependency>
                <groupId>org.apache.commons</groupId>
                <artifactId>commons-collections4</artifactId>
                <version>4.1</version>
            </dependency>            -->
            <dependency>
              <groupId>org.apache.commons</groupId>
              <artifactId>commons-compress</artifactId>
              <version>1.20</version>
            </dependency>
            <dependency>
                <groupId>org.apache.solr</groupId>
                <artifactId>solr-commons-csv</artifactId>
                <version>3.5.0</version>
            </dependency>
            <dependency>
                <groupId>commons-httpclient</groupId>
                <artifactId>commons-httpclient</artifactId>
                <version>2.0.2</version>
            </dependency>
            <dependency>
                <groupId>commons-cli</groupId>
                <artifactId>commons-cli</artifactId>
                <version>1.4</version>
            </dependency>
<!--            <dependency>
                <groupId>commons-lang</groupId>
                <artifactId>commons-lang</artifactId>
                <version>3.17.0</version>
            </dependency>-->
            <dependency>
                <groupId>org.apache.commons</groupId>
                <artifactId>commons-math</artifactId>
                <version>2.2</version>
            </dependency>            
            <dependency>
                <groupId>commons-configuration</groupId>
                <artifactId>commons-configuration</artifactId>
                <version>1.10</version>
            </dependency>
            <dependency>
                <groupId>commons-logging</groupId>
                <artifactId>commons-logging</artifactId>
                <version>1.1.1</version>
            </dependency>
            <dependency>
                <groupId>commons-logging</groupId>
                <artifactId>commons-logging</artifactId>
                <version>1.1.1</version>
                <classifier>api</classifier>
            </dependency>
            <dependency>
                <groupId>commons-pool</groupId>
                <artifactId>commons-pool</artifactId>
                <version>1.6</version>
            </dependency>
            <dependency>
                <groupId>org.apache.commons</groupId>
                <artifactId>commons-text</artifactId>
                <version>1.6</version>
            </dependency>
            
            <dependency>
                <groupId>org.dspace</groupId>
                <artifactId>cql-java</artifactId>
                <version>1.0</version>
            </dependency>
            <dependency>
                <groupId>easymock</groupId>
                <artifactId>easymockclassextension</artifactId>
                <version>1.2</version>
            </dependency>
            <dependency>
                <groupId>flanagan</groupId>
                <artifactId>flanagan</artifactId>
                <version>20090616</version>
            </dependency>
<!--            <dependency>
                <groupId>org.opengis</groupId>
                <artifactId>geoapi</artifactId>
                <version>2.0</version>
            </dependency>-->
            <dependency>
                <groupId>geojava</groupId>
                <artifactId>geojava</artifactId>
                <version>unknown</version>
            </dependency>
            <dependency>
                <groupId>org.geonames</groupId>
                <artifactId>geonames</artifactId>
                <version>1.0</version>
                <classifier>java5</classifier>
            </dependency>
            <dependency>
                <groupId>org.codehaus.groovy</groupId>
                <artifactId>groovy-all</artifactId>
                <version>2.4.12</version>
            </dependency>
            <dependency>
                <groupId>org.geotools</groupId>
                <artifactId>gt2-legacy</artifactId>
                <version>2.2-RC2</version>
            </dependency>
            <dependency>
                <groupId>org.geotools</groupId>
                <artifactId>gt2-main</artifactId>
                <version>2.2.2</version>
            </dependency>
            <dependency>
                <groupId>org.geotools</groupId>
                <artifactId>gt2-referencing</artifactId>
                <version>2.2-RC2</version>
            </dependency>
            <dependency>
                <groupId>hsqldb</groupId>
                <artifactId>hsqldb</artifactId>
                <version>1.8.0.10</version>
            </dependency>
<!--            <dependency>
                <groupId>tech.units</groupId>
                <artifactId>indriya</artifactId>
                <version>1.3</version>
            </dependency>    -->
            <dependency>
                <groupId>org.ini4j</groupId>
                <artifactId>ini4j</artifactId>
                <version>0.5.1</version>
            </dependency>
            <dependency>
                <groupId>com.lowagie</groupId>
                <artifactId>itext</artifactId>
                <version>2.1.7</version>
            </dependency>
            <dependency>
                <groupId>javax.media</groupId>
                <artifactId>jai_core</artifactId>
                <version>1.1.3</version>
            </dependency>
            <dependency>
                <groupId>javax.media</groupId>
                <artifactId>jai_codec</artifactId>
                <version>1.1.3</version>
            </dependency>
            <dependency>
                <groupId>gov.nist.math</groupId>
                <artifactId>jama</artifactId>
                <version>unknown</version>
            </dependency>
            <dependency>
                <groupId>javax.help</groupId>
                <artifactId>javahelp</artifactId>
                <version>2.0.05</version>
            </dependency>
            <dependency>
                <groupId>org.glassfish</groupId>
                <artifactId>javax.json</artifactId>
                <version>1.0.4</version>
            </dependency>
            <dependency>
                <groupId>com.toedter</groupId>
                <artifactId>jcalendar</artifactId>
                <version>1.3.2</version>
            </dependency>
            <dependency>
                <groupId>jfree</groupId>
                <artifactId>jcommon</artifactId>
                <version>1.0.12</version>
            </dependency>
            <dependency>
                <groupId>com.github.lespaul361</groupId>
                <artifactId>JCommunique</artifactId>
                <version>2.0.0</version>
            </dependency>            
            <dependency>
                <groupId>jdom</groupId>
                <artifactId>jdom</artifactId>
                <version>1.0</version>
            </dependency>
            <dependency>
                <groupId>org.gnu</groupId>
                <artifactId>jel</artifactId>
                <version>2.0.1</version>
            </dependency>
            <dependency>
                <groupId>org.nfunk</groupId>
                <artifactId>jep</artifactId>
                <version>2.4.0</version>
            </dependency>
            <dependency>
                <groupId>jfree</groupId>
                <artifactId>jfreechart</artifactId>
                <version>1.0.7</version>
            </dependency>
            <dependency>
                <groupId>org.jfree</groupId>
                <artifactId>jfreechart</artifactId>
                <version>1.0.14</version>
            </dependency>
            <dependency>
                <groupId>org.jgraf</groupId>
                <artifactId>jgraf</artifactId>
                <version>0.0.1</version>
            </dependency>
            <dependency>
                <groupId>net.sf</groupId>
                <artifactId>jgraph</artifactId>
                <version>5.10.1.5</version>
            </dependency>
            <dependency>
                <groupId>net.sf</groupId>
                <artifactId>jgridshiftapi</artifactId>
                <version>1.0</version>
            </dependency>
            <dependency>
              <groupId>com.jidesoft</groupId>
              <artifactId>jide-oss</artifactId>
              <version>3.6.18</version>
            </dependency>
            <dependency>
                <groupId>com.sun</groupId>
                <artifactId>jimi</artifactId>
                <version>1.1</version>
            </dependency>
            <dependency>
                <groupId>joda-time</groupId>
                <artifactId>joda-time</artifactId>
                <version>1.6</version>
            </dependency>
            <dependency>
                <groupId>org.jopendocument</groupId>
                <artifactId>jOpenDocument</artifactId>
                <version>1.3</version>
            </dependency>
            <dependency>
                <groupId>org.jpedal</groupId>
                <artifactId>jpedal_lgpl</artifactId>
                <version>4.37b36</version>
            </dependency>
            <dependency>
                <groupId>org.jruby</groupId>
                <artifactId>jruby</artifactId>
                <version>1.5.6</version>
            </dependency>
            <dependency>
                <groupId>rhino</groupId>
                <artifactId>js</artifactId>
                <!-- This is the version already included in Java 1.6 -->
                <version>1.6R2</version>
            </dependency>
            <dependency>
                <groupId>net.sf</groupId>
                <artifactId>jsi</artifactId>
                <version>unknown</version>
            </dependency>
            <dependency>
                <groupId>org.json</groupId>
                <artifactId>json</artifactId>
                <version>20180130</version>
            </dependency>
            <dependency>
                <groupId>javax.units</groupId>
                <artifactId>jsr108</artifactId>
                <version>0.01</version>
            </dependency>
            <dependency>
                <groupId>com.vividsolutions</groupId>
                <artifactId>jts-core</artifactId>
                <version>1.14.0</version>
                <scope>compile</scope>
            </dependency>
            <dependency>
                <groupId>com.vividsolutions</groupId>
                <artifactId>jts-io</artifactId>
                <version>1.14.0</version>
                <scope>compile</scope>
            </dependency>
            
            <dependency>
                <groupId>org.locationtech.jts</groupId>
                <artifactId>jts-core</artifactId>
                <scope>compile</scope>
                <version>1.20.0</version>
            </dependency>        
            <dependency>
                <groupId>org.locationtech.jts.io</groupId>
                <artifactId>jts-io-common</artifactId>
                <scope>compile</scope>
                <version>1.20.0</version>
            </dependency>        

            <dependency>
                <groupId>junit</groupId>
                <artifactId>junit</artifactId>
                <version>4.11</version>
            </dependency>
            <dependency>
                <groupId>jwizardcomponent</groupId>
                <artifactId>jwizardcomponent</artifactId>
                <version>1.2.2</version>
            </dependency>
            <dependency>
                <groupId>jwizardcomponent</groupId>
                <artifactId>jwizardcomponent-0i18n</artifactId>
                <version>1.2.2.1</version>
            </dependency>
            <dependency>
                <groupId>org.python</groupId>
                <artifactId>${jython.artifactId}</artifactId>
                <version>2.7.1</version>
            </dependency>
            <dependency>
                <groupId>org.jzkit</groupId>
                <artifactId>jzkit2-core</artifactId>
                <version>2.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.jzkit</groupId>
                <artifactId>jzkit2-z3950</artifactId>
                <version>2.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.jzkit</groupId>
                <artifactId>jzkit2-origin</artifactId>
                <version>2.0.0</version>
            </dependency>
            <dependency>
                <groupId>log4j</groupId>
                <artifactId>log4j</artifactId>
                <version>1.2.14</version>
            </dependency>
            <dependency>
                <groupId>com.googlecode.log4jdbc</groupId>
                <artifactId>log4jdbc</artifactId>
                <version>1.2</version>
            </dependency>
            <dependency>
                <groupId>com.ostermiller</groupId>
                <artifactId>ostermillerutils</artifactId>
                <version>1.4.3</version>
            </dependency>
            <dependency>
                <groupId>org.mapdb</groupId>
                <artifactId>mapdb</artifactId>
                <version>3.0.6</version>
            </dependency>
            <dependency>
                <groupId>mysql</groupId>
                <artifactId>mysql-connector-java</artifactId>
                <version>5.1.6</version>
            </dependency>
            <dependency>
                <groupId>es.unex</groupId>
                <artifactId>sextante</artifactId>
                <version>0.6.0</version>
            </dependency>
            <dependency>
                <groupId>es.unex</groupId>
                <artifactId>sextante_gui</artifactId>
                <version>0.6.0</version>
            </dependency>
            <dependency>
                <groupId>es.unex</groupId>
                <artifactId>sextante_wps</artifactId>
                <version>0.6.0</version>
            </dependency>
            <dependency>
                <groupId>es.unex</groupId>
                <artifactId>libMath</artifactId>
                <version>0.6.0</version>
            </dependency>
            <dependency>
                <groupId>es.unex</groupId>
                <artifactId>libDocEngines</artifactId>
                <version>0.6.0</version>
            </dependency>
            <dependency>
                <groupId>org.apache.directory.studio</groupId>
                <artifactId>org.apache.commons.pool</artifactId>
                <version>1.6</version>
            </dependency>
            <dependency>
                <groupId>org.osgeo</groupId>
                <artifactId>proj4j</artifactId>
                <version>0.1.0</version>
            </dependency>
            <dependency>
                <groupId>com.fifesoft</groupId>
                <artifactId>rsyntaxtextarea</artifactId>
                <version>2.6.1</version>
            </dependency>
            <dependency>
                <groupId>com.fifesoft</groupId>
                <artifactId>rstaui</artifactId>
                <version>2.5.7</version>
            </dependency>
            <dependency>
                <groupId>sil</groupId>
                <artifactId>sil</artifactId>
                <version>0.43b-am1</version>
            </dependency>
            <dependency>
                <groupId>net.sf.smc</groupId>
                <artifactId>smc</artifactId>
                <version>4.3</version>
            </dependency>
            <dependency>
                <groupId>soap</groupId>
                <artifactId>soap</artifactId>
                <version>2.3</version>
            </dependency>
            <dependency>
                <groupId>spatialindex</groupId>
                <artifactId>spatialindex</artifactId>
                <version>unknown</version>
            </dependency>
            <dependency>
                <groupId>org.springframework</groupId>
                <artifactId>spring</artifactId>
                <version>1.2.8</version>
            </dependency>
            <dependency>
                <groupId>net.sf</groupId>
                <artifactId>sqljep</artifactId>
                <version>0.2.1</version>
            </dependency>
            <dependency>
                <groupId>org.xerial</groupId>
                <artifactId>sqlite-jdbc</artifactId>
                <version>3.36.0.3</version>
            </dependency>            
            <dependency>
                <groupId>net.sf.supercsv</groupId>
                <artifactId>super-csv</artifactId>
                <version>2.1.0</version>
            </dependency>
            <dependency>
                <groupId>org.tmatesoft.svnkit</groupId>
                <artifactId>svnkit</artifactId>
                <version>1.3.3</version>
            </dependency>
            <dependency>
                <groupId>org.tmatesoft.svnkit</groupId>
                <artifactId>svnkit-cli</artifactId>
                <version>1.3.3</version>
            </dependency>
            <dependency>
              <groupId>org.swinglabs</groupId>
              <artifactId>swing-layout</artifactId>
              <version>1.0.3</version>
            </dependency>
            <dependency>
                <groupId>tablelayout</groupId>
                <artifactId>TableLayout</artifactId>
                <version>20050920</version>
            </dependency>
            <dependency>
                <groupId>info.clearthought</groupId>
                <artifactId>TableLayout-bin-jdk1.5</artifactId>
                <version>2007-04-21</version>
            </dependency>
            <dependency>
                <groupId>net.sourceforge.thinlet</groupId>
                <artifactId>thinlet</artifactId>
                <version>2005-03-28</version>
            </dependency>
            <dependency>
                <groupId>gnu.trove</groupId>
                <artifactId>trove</artifactId>
                <version>0.1.8</version>
            </dependency>
<!--            <dependency>
                <groupId>javax.measure</groupId>
                <artifactId>unit-api</artifactId>
                <version>1.0</version>
            </dependency>    -->
            <dependency>
                <groupId>java3d</groupId>
                <artifactId>vecmath</artifactId>
                <version>1.3.1</version>
            </dependency>
            <dependency>
                <groupId>org.apache</groupId>
                <artifactId>xbean</artifactId>
                <version>2.2.0</version>
            </dependency>
<!--            <dependency>
                <groupId>xerces</groupId>
                <artifactId>xercesImpl</artifactId>
                <version>2.11.0</version>
            </dependency>-->
            <dependency>
                <groupId>xml-apis</groupId>
                <artifactId>xml-apis</artifactId>
                <version>1.4.01</version>
            </dependency>
            <dependency>
                <groupId>xml-apis</groupId>
                <artifactId>xml-apis-ext</artifactId>
                <version>1.3.04</version>
            </dependency>
            <dependency>
                <groupId>xmlpull</groupId>
                <artifactId>xmlpull</artifactId>
                <version>1.1.3.1</version>
            </dependency>
            <dependency>
                <groupId>zql</groupId>
                <artifactId>zql</artifactId>
                <version>unknown</version>
            </dependency>

            <!-- External gvSIG projects -->

            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.jdk.v1_6</artifactId>
                <version>1.0.1</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.jdk.v1_4</artifactId>
                <version>1.0.0</version>
            </dependency>
            
            <!-- Childs projects -->

            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.about.api</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.about.impl</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.metadata.lib.basic.api</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.metadata.lib.basic.impl</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.metadata.swing.basic.api</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.metadata.swing.basic.impl</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.projection.cresques.impl</artifactId>
                <version>3.0.0-SNAPSHOT</version>
                <exclusions>
                    <exclusion>
                        <groupId>org.geotools</groupId>
                        <artifactId>gt2-legacy</artifactId>
                    </exclusion>
                    <exclusion>
                        <groupId>org.geotools</groupId>
                        <artifactId>gt2-main</artifactId>
                    </exclusion>
                    <exclusion>
                        <groupId>org.geotools</groupId>
                        <artifactId>gt2-referencing</artifactId>
                    </exclusion>
                    <exclusion>
                        <groupId>geojava</groupId>
                        <artifactId>geojava</artifactId>
                    </exclusion>
                    <exclusion>
                        <groupId>javax.media</groupId>
                        <artifactId>jai_core</artifactId>
                    </exclusion>
                    <exclusion>
                        <groupId>javax.media</groupId>
                        <artifactId>jai_codec</artifactId>
                    </exclusion>
                </exclusions>                
                
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.projection.cresques.ui</artifactId>
                <version>3.0.0-SNAPSHOT</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.andami</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.app</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.ui</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.basicformats</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.fmap.control</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.fmap.mapcontext.api</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.fmap.mapcontext.impl</artifactId>
                <version>3.0.0</version>
            </dependency>            
            <dependency>
                <!-- 
                Eliminado el proyecto asi que le pongo una version "chunga" 
                para que falle al resolverla si alguien lo usa
                -->
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.fmap.mapcontext.operation</artifactId>
                <version>ERROR</version> 
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.fmap.dal.api</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.fmap.dal.spi</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.fmap.dal.impl</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.fmap.dal.impl</artifactId>
                <version>3.0.0</version>
                <type>test-jar</type>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.fmap.dal.api</artifactId>
                <version>3.0.0</version>
                <type>test-jar</type>
                <scope>test</scope>
            </dependency>            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.fmap.dal.db.lib</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.h2spatial.h2gis132.provider</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.h2spatial.h2gis150.provider</artifactId>
                <version>2.0.391-SNAPSHOT</version>
            </dependency>
              <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.fmap.dal.db.jdbc</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.fmap.dal.db.jdbc</artifactId>
                <version>3.0.0</version>
                <scope>test</scope>
                <type>test-jar</type>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.fmap.dal.db.mdb</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.fmap.dal.file.lib</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.fmap.dal.file.dbf</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.fmap.dal.file.csv</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.fmap.dal.file.gml</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.fmap.dal.file.json</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.fmap.dal.file.shp</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
              <groupId>org.gvsig</groupId>
              <artifactId>org.gvsig.fmap.dal.swing.api</artifactId>
              <version>3.0.0</version>
            </dependency>
                <dependency>
              <groupId>org.gvsig</groupId>
              <artifactId>org.gvsig.fmap.dal.swing.impl</artifactId>
               <version>3.0.0</version>
            </dependency>
            <dependency>
              <groupId>org.gvsig</groupId>
              <artifactId>org.gvsig.fmap.dal.swing.api</artifactId>
              <version>3.0.0</version>
                <type>test-jar</type>
                <scope>test</scope>
            </dependency>
                <dependency>
              <groupId>org.gvsig</groupId>
              <artifactId>org.gvsig.fmap.dal.swing.impl</artifactId>
               <version>3.0.0</version>
                <type>test-jar</type>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.newlayer.lib.api</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.newlayer.lib.api</artifactId>
                <version>3.0.0</version>
                <type>test-jar</type>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.newlayer.lib.impl</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.newlayer.prov.jdbc</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.newlayer.prov.file</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.newlayer.prov.shape</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.newlayer.prov.csv</artifactId>
                <version>3.0.0</version>
            </dependency>
            
            
            
            
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.raster.lib.buffer.api</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.raster.lib.buffer.spi</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.raster.lib.buffer.impl</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.raster.lib.legend.api</artifactId>
                <version>2.0.327-SNAPSHOT</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.raster.lib.legend.spi</artifactId>
                <version>2.0.327-SNAPSHOT</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.raster.lib.legend.impl</artifactId>
                <version>2.0.327-SNAPSHOT</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.fmap.mapcontext.swing.api</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.fmap.mapcontext.swing.impl</artifactId>
                <version>3.0.0</version>
            </dependency>

            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.fmap.dal.tilecache.raster</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.raster.legend.tilecache</artifactId>
                <version>3.0.0</version>
            </dependency>

            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.raster.tools.lib.api</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.raster.tools.lib.impl</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.raster.tools.swing.api</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.raster.tools.swing.impl</artifactId>
                <version>3.0.0</version>
            </dependency>



            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.raster.swing.buffer.api</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.raster.swing.buffer.impl</artifactId>
                <version>3.0.0</version>
            </dependency>

            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.raster.legend.swing.api</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.raster.legend.swing.impl</artifactId>
                <version>3.0.0</version>
            </dependency>

            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.raster.legend.lib.api</artifactId>
                <version>2.0.327-SNAPSHOT</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.raster.legend.lib.impl</artifactId>
                <version>2.0.327-SNAPSHOT</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.raster.legend.lib.spi</artifactId>
                <version>2.0.327-SNAPSHOT</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.raster.legend.imageio</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.fmap.dal.file.imageio</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.fmap.dal.file.png</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.fmap.dal.file.jpg</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.fmap.dal.file.jp2</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.fmap.dal.file.tiff</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.fmap.dal.file.bsq</artifactId>
                <version>3.0.0</version>
            </dependency>

            
            
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.symbology.lib.api</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.symbology.lib.impl</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.symbology.swing.api</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.symbology.swing.impl</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.fmap.geometry.api</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.fmap.geometry.jts</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.fmap.geometry.operation.jts</artifactId>
                <version>3.0.0</version>
            </dependency>


            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.tools.evaluator.sqljep</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.compat.api</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.compat.se</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.remoteclient</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.i18n</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.utils</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.annotation.lib.api</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.annotation.lib.impl</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.annotation.swing.api</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.annotation.swing.impl</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.expressionevaluator.lib.api</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.expressionevaluator.lib.impl</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
              <groupId>org.gvsig</groupId>
              <artifactId>org.gvsig.expressionevaluator.geometry.lib.api</artifactId>
              <version>3.0.0</version>
            </dependency>
            <dependency>
              <groupId>org.gvsig</groupId>
              <artifactId>org.gvsig.expressionevaluator.geometry.lib.impl</artifactId>
              <version>3.0.0</version>
            </dependency>
            <dependency>
              <groupId>org.gvsig</groupId>
              <artifactId>org.gvsig.expressionevaluator.time.lib.impl</artifactId>
              <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.expressionevaluator.swing.api</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.expressionevaluator.swing.impl</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.temporarystorage.lib.api</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.temporarystorage.lib.impl</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.exportto.lib.api</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.exportto.lib.api</artifactId>
                <version>3.0.0</version>
                <type>test-jar</type>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.exportto.lib.impl</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.exportto.swing.api</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.exportto.swing.impl</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.exportto.swing.prov.jdbc</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.exportto.swing.prov.shape</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.exportto.swing.prov.dbf</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.exportto.swing.prov.csv</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.installer.swing.api</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.installer.swing.impl</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.installer.lib.api</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.installer.lib.spi</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.installer.lib.impl</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.installer.prov.plugin</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.geodb.app.mainplugin</artifactId>
                <version>3.0.0</version>
            </dependency>

            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.app.document.table.app.mainplugin</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.daltransform.app.mainplugin</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.daltransform.app.mainplugin</artifactId>
                <version>3.0.0</version>
                <type>test-jar</type>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.daltransform.app.join</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.daltransform.app.eventtheme</artifactId>
                <version>3.0.0</version>
            </dependency>

            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.app.mainplugin</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.annotation.app.mainplugin</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.centerviewpoint.app.mainplugin</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.coreplugin.app.mainplugin</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.datalocator.app.mainplugin</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.exportto.app.mainplugin</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.installer.app.mainplugin</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.i18n.app.mainplugin</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.selectiontools.app.mainplugin</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.geometrymeasurement.app.mainplugin</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.newlayer.app.mainplugin</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.timesupport.lib.api</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.timesupport.lib.impl</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.timesupport.swing.api</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.timesupport.swing.impl</artifactId>
                <version>3.0.0</version>
            </dependency>

            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.xml2db</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.xml2db.lib</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.xml2db.swing</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.xml2db.app</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.xml2db.lib.api</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.xml2db.lib.impl</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.xml2db.swing.api</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.xml2db.swing.impl</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.xml2db.app.mainplugin</artifactId>
                <version>3.0.0</version>
            </dependency>

            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.downloader</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.downloader.lib</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.downloader.swing</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.downloader.app</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.downloader.lib.api</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.downloader.lib.impl</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.downloader.swing.api</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.downloader.swing.impl</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.downloader.swing.scribejava</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.downloader.app.mainplugin</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.downloader.app.scribejava</artifactId>
                <version>3.0.0</version>
            </dependency>

            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.sqlite.app.mainplugin</artifactId>
                <version>3.0.0</version>
            </dependency>
            <dependency>
                <groupId>org.gvsig</groupId>
                <artifactId>org.gvsig.sqlite.provider</artifactId>
                <version>3.0.0</version>
            </dependency>

        </dependencies>
    </dependencyManagement>

    <dependencies>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <scope>test</scope>
        </dependency>
    </dependencies>

    <build>
        <extensions>
            <extension>
                <groupId>org.apache.maven.wagon</groupId>
                <artifactId>wagon-webdav-jackrabbit</artifactId>
                <version>${wagon.webdav.jackrabbit.version}</version>
            </extension>
        </extensions>

        <pluginManagement>
            <plugins>

                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-surefire-plugin</artifactId>
                    <version>${maven.surefire.plugin.version}</version>
                    <configuration>
                        <!--<forkMode>once</forkMode>-->
                        <environmentVariables>
                            <DYLD_FRAMEWORK_PATH>${user.home}/.depman/Frameworks</DYLD_FRAMEWORK_PATH>
                            <DYLD_LIBRARY_PATH>${user.home}/.depman/lib</DYLD_LIBRARY_PATH>
                            <GDAL_DATA>${user.home}/.depman/data/gdal</GDAL_DATA>
                            <LD_LIBRARY_PATH>${user.home}/.depman/lib</LD_LIBRARY_PATH>
                            <PATH>${user.home}/.depman/bin${path.separator}${env.PATH}</PATH>
                            <PROJ_LIB>${gvsig.product.folder.path}/gvSIG/extensiones/org.gvsig.crs.extension/data</PROJ_LIB>
                        </environmentVariables>
                    </configuration>
                </plugin>

                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-failsafe-plugin</artifactId>
                    <executions>
                        <execution>
                            <goals>
                                <goal>integration-test</goal>
                                <goal>verify</goal>
                            </goals>
                        </execution>
                    </executions>
                    <configuration>
                        <forkMode>once</forkMode>
                        <environmentVariables>
                            <DYLD_FRAMEWORK_PATH>${user.home}/.depman/Frameworks</DYLD_FRAMEWORK_PATH>
                            <DYLD_LIBRARY_PATH>${user.home}/.depman/lib</DYLD_LIBRARY_PATH>
                            <GDAL_DATA>${user.home}/.depman/data/gdal</GDAL_DATA>
                            <LD_LIBRARY_PATH>${user.home}/.depman/lib</LD_LIBRARY_PATH>
                            <PATH>${user.home}/.depman/bin${path.separator}${env.PATH}</PATH>
                            <PROJ_LIB>${gvsig.product.folder.path}/gvSIG/extensiones/org.gvsig.crs.extension/data</PROJ_LIB>
                        </environmentVariables>
                    </configuration>
                </plugin>

<!--                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-javadoc-plugin</artifactId>
                    <version>${maven.javadoc.plugin.version}</version>
                    <configuration>
                        <failOnError>false</failOnError>
                        <docTitle>${project.name} ${project.version}</docTitle>
                        <encoding>${encoding}</encoding>
                        <footer />
                        <header />
                        <keywords>false</keywords>
                         Don't include the deprecateds items in the javadoc 
                        <nodeprecated>true</nodeprecated>
                         Don't generate javadoc of project with submodules 
                        <aggregate>false</aggregate>
                         Removed detection of links due to its high cost 
                        <detectJavaApiLink>false</detectJavaApiLink>
                        <detectLinks>false</detectLinks>
                        <detectOfflineLinks>false</detectOfflineLinks>
                         Removed the inclusion of dependencies sources due to their high cost 
                        <includeDependencySources>false</includeDependencySources>
                        <includeTransitiveDependencySources>false</includeTransitiveDependencySources>
                        <javaApiLinks>
                            <property>
                                <name>api_1.4</name>
                                <value>http://download.oracle.com/javase/1.4.2/docs/api/</value>
                            </property>
                            <property>
                                <name>api_1.5</name>
                                <value>http://download.oracle.com/javase/1.5.0/docs/api/</value>
                            </property>
                            <property>
                                <name>api_1.6</name>
                                <value>http://download.oracle.com/javase/6/docs/api/</value>
                            </property>
                            <property>
                                <name>api_1.7</name>
                                <value>http://download.oracle.com/javase/7/docs/api/</value>
                            </property>
                            <property>
                                <name>api_1.8</name>
                                <value>http://download.oracle.com/javase/8/docs/api/</value>
                            </property>
                        </javaApiLinks>
                        <configuration>
                            <doclint>html,syntax,-missing,-reference</doclint>
                        </configuration>  
                        
			<additionalparam>-quiet -Xdoclint:none -Xmaxwarns 0 -Xmaxerrs 0</additionalparam>
                        
                         https://blog.joda.org/2014/02/turning-off-doclint-in-jdk-8-javadoc.html 
                    </configuration>
                </plugin>-->

                <plugin>
                    <artifactId>maven-assembly-plugin</artifactId>
                    <version>${maven.assembly.plugin.version}</version>
                    <executions>
                        <execution>
                            <id>gvsig-plugin-package</id>
                            <phase>package</phase>
                            <configuration>
                                <ignoreDirFormatExtensions>true</ignoreDirFormatExtensions>
                                <appendAssemblyId>false</appendAssemblyId>
                                <finalName>gvSIG-desktop-${gvsig.package.info.gvSIGVersion}-${gvsig.package.info.code}-${gvsig.package.info.version}-${buildNumber}-${gvsig.package.info.state}-${gvsig.package.info.operatingSystem}-${gvsig.package.info.architecture}-${gvsig.package.info.javaVM}.gvspkg</finalName>
                                <descriptors>
                                    <descriptor>src/main/assembly/gvsig-plugin-package.xml</descriptor>
                                </descriptors>
                            </configuration>
                        </execution>
                    </executions>
                </plugin>

                <plugin>
                    <!-- invoke as "mvn license:format" to fix the header -->
                    <!-- invoke as "mvn license:check" to check the header -->
                    <!-- See http://code.google.com/p/maven-license-plugin/wiki/Configuration -->
                    <groupId>com.mycila.maven-license-plugin</groupId>
                    <artifactId>maven-license-plugin</artifactId>
                    <version>${maven.license.plugin.version}</version>
                    <configuration>
                        <header>header.txt</header>
                        <failIfMissing>false</failIfMissing>
                        <aggregate>false</aggregate>
                        <strictCheck>true</strictCheck>
                        <encoding>${encoding}</encoding>
                        <quiet>false</quiet>
                        <excludes>
                            <exclude>**/*.properties</exclude>
                            <exclude>**/*.txt</exclude>
                            <exclude>**/*.jpg</exclude>
                            <exclude>**/*.jpeg</exclude>
                            <exclude>**/*.svg</exclude>
                            <exclude>**/*.png</exclude>
                            <exclude>**/*.gvssym</exclude>
                            <exclude>**/*.def</exclude>
                            <exclude>**/*.msg</exclude>
                        </excludes>
                    </configuration>
                    <dependencies>
                        <dependency>
                            <groupId>org.gvsig</groupId>
                            <artifactId>org.gvsig.desktop.buildtools</artifactId>
                            <version>1.0.0</version>
                        </dependency>
                    </dependencies>
                </plugin>

                <!-- Habria que ver si es posible sustituir el plugin -->
                <!-- com.mycila.maven-license-plugin:maven-license-plugin por este -->
                <!-- Ver http://mojo.codehaus.org/license-maven-plugin/index.html -->
                <!--
                <plugin>
                    <groupId>org.codehaus.mojo</groupId>
                    <artifactId>license-maven-plugin</artifactId>
                    <version>1.5</version>
                </plugin>
                -->

                <plugin>
                    <groupId>org.codehaus.gmavenplus</groupId>
                    <artifactId>gmavenplus-plugin</artifactId>
                    <version>${gmavenplus.plugin.version}</version>
                    <dependencies>
                        <dependency>
                            <groupId>com.github.lookfirst</groupId>
                            <artifactId>sardine</artifactId>
                            <version>5.0.1</version>
                        </dependency>
                        <dependency>
                          <groupId>org.apache.groovy</groupId>
                          <artifactId>groovy</artifactId>
                          <version>4.0.26</version>
                        </dependency>     
                        <dependency>
                            <groupId>org.apache.groovy</groupId>
                            <artifactId>groovy-xml</artifactId>
                            <version>4.0.26</version>
                        </dependency>
                        <dependency>
                          <groupId>org.gvsig</groupId>
                          <artifactId>org.gvsig.tools.groovy</artifactId>
                          <version>${gvsig.tools.version}</version>
                        </dependency>     
                        <dependency>
                            <groupId>commons-io</groupId>
                            <artifactId>commons-io</artifactId>
                            <version>2.19.0</version>
                        </dependency>        
                                        
                    </dependencies>
                    <executions>

                        <execution>
                            <id>increase-build-number</id>
                            <phase>process-sources</phase>
                            <configuration>
                              <scripts>
                                <script><![CDATA[
                    // use "mvn -Dincrease-build-number process-sources"
                    if( project.properties["increase-build-number"] == null ) {
                      log.info("Don't increment build number use flag '-Dincrease-build-number' to increment it.")
                    } else {
                      File file = new File(project.basedir,"buildNumber.properties")
                      if( ! file.exists() ) {
                          log.info("Skip increment build number (buildNumber.property not present).")
                        } else {
                        Properties props = new Properties()

                        props.load(file.newDataInputStream())
                        value = (props.getProperty("buildNumber") as int) + 1
                        props.setProperty("buildNumber",value as String)
                        props.store(file.newWriter(), null)
                        log.info("Setting build number to " + value)
                      }
                    }
                  ]]></script>
                              </scripts>
                                
                            </configuration>
                        </execution>

                        <execution>
                            <id>build-package-info</id>
                            <phase>prepare-package</phase>
                            <configuration>
                              <scripts>
                                <script><![CDATA[
    if( project.properties["buildNumber"] == null) {
      log.info("Skip build package.info (buildNumber.property not present).")
      log.info("Skip build package.info index (buildNumber.property not present).")
    } else {
      poolURL = project.properties["gvsig.package.info.poolURL"];
      if( poolURL[-1] != "/" ) {
              poolURL = poolURL + "/";
      }
      package_info_file  = new File(project.basedir, "target/package.info")
      log.info("Building package.info : " + package_info_file.getAbsolutePath())
      Properties props = new Properties()
      props.setProperty('code', project.properties["gvsig.package.info.code"])
      props.setProperty('code-alias', project.properties["gvsig.package.info.codealias"])
      props.setProperty('name', project.properties["gvsig.package.info.name"])
      props.setProperty('version', project.properties["gvsig.package.info.version"])
      props.setProperty('description', project.properties["gvsig.package.info.description"])
      props.setProperty('owner', project.properties["gvsig.package.info.owner"])
      props.setProperty('java-version', project.properties["gvsig.package.info.javaVM"])
      props.setProperty('official', project.properties["gvsig.package.info.official"])
      props.setProperty('type', "plugin")
      props.setProperty('state', project.properties["gvsig.package.info.state"])
      props.setProperty('operating-system', project.properties["gvsig.package.info.operatingSystem"])
      props.setProperty('dependencies', project.properties["gvsig.package.info.dependencies"])
      props.setProperty('sources-url', project.properties["gvsig.package.info.sourcesURL"].replace("scm:svn:",""))
      props.setProperty('web-url', project.properties["gvsig.package.info.webURL"])
      props.setProperty('architecture', project.properties["gvsig.package.info.architecture"])
      props.setProperty('model-version', '1.0.1')
      props.setProperty('categories', project.properties["gvsig.package.info.categories"])
      props.setProperty('buildNumber', project.properties["buildNumber"])
      props.setProperty('gvSIG-version', project.properties["gvsig.package.info.gvSIGVersion"])

      props.store(package_info_file.newWriter(), null)

      pkgname = "gvSIG-desktop-" +
        project.properties["gvsig.package.info.gvSIGVersion"] + "-" +
        project.properties["gvsig.package.info.code"] + "-" +
        project.properties["gvsig.package.info.version"] + "-" +
        project.properties["buildNumber"] + "-" +
        project.properties["gvsig.package.info.state"] + "-" +
        project.properties["gvsig.package.info.operatingSystem"] + "-" +
        project.properties["gvsig.package.info.architecture"] + "-" +
        project.properties["gvsig.package.info.javaVM"]
      package_info_file  = new File(project.basedir, "target/gvspki/"+project.properties["gvsig.package.info.code"]+"/package.info")
      log.info("Building package.info index " + package_info_file.getAbsolutePath())
      package_info_file.getParentFile().mkdirs()
      props.setProperty('download-url',
        poolURL +
        project.properties["gvsig.package.info.code"] + "/" +
        pkgname + ".gvspkg"
      )
      props.store(package_info_file.newWriter(), null)
    }
                  ]]></script>
                              </scripts>
                            </configuration>
                        </execution>

                        <execution>
                            <id>build-package-index</id>
                            <phase>package</phase>
                            <configuration>
                              <scripts>
                                <script><![CDATA[
    import org.gvsig.tools.groovy.GroovyUtils;
    if( project.properties["buildNumber"] == null) {
      log.info("Skip building package index (buildNumber.property not present).")
    } else {
      pkgname = "gvSIG-desktop-" +
        project.properties["gvsig.package.info.gvSIGVersion"] + "-" +
        project.properties["gvsig.package.info.code"] + "-" +
        project.properties["gvsig.package.info.version"] + "-" +
        project.properties["buildNumber"] + "-" +
        project.properties["gvsig.package.info.state"] + "-" +
        project.properties["gvsig.package.info.operatingSystem"] + "-" +
        project.properties["gvsig.package.info.architecture"] + "-" +
        project.properties["gvsig.package.info.javaVM"]

      log.info("Building package index " + pkgname + ".gvspki")
      package_index_source  = project.basedir.getAbsolutePath() + "/target/gvspki"
      package_index_target  = project.basedir.getAbsolutePath() + "/target/" + pkgname + ".gvspki"
      GroovyUtils.zip(package_index_target, package_index_source)
    }
                  ]]></script>
                              </scripts>
                            </configuration>
                        </execution>

                        <execution>
                            <id>install-plugin</id>
                            <phase>install</phase>
                            <configuration>
                              <scripts>
                                <script><![CDATA[
    
    import org.gvsig.tools.groovy.GroovyUtils;
    def executeAntFile(File applicationDirectory, File pluginsDirectory, File file) {
        log.info("\n\n\n\nAttempt to execute deprecated install script '" + file.getAbsolutePath() + "'.\n\n\n\n");
        assert true : "Attempt to execute deprecated install script '" + file.getAbsolutePath() + "'."
   }
                                    
    
    if( project.properties["buildNumber"] == null) {
        log.info("Skip install package (buildNumber.property not present).")
    } else {
        pkgname = "gvSIG-desktop-" +
          project.properties["gvsig.package.info.gvSIGVersion"] + "-" +
          project.properties["gvsig.package.info.code"] + "-" +
          project.properties["gvsig.package.info.version"] + "-" +
          project.properties["buildNumber"] + "-" +
          project.properties["gvsig.package.info.state"] + "-" +
          project.properties["gvsig.package.info.operatingSystem"] + "-" +
          project.properties["gvsig.package.info.architecture"] + "-" +
          project.properties["gvsig.package.info.javaVM"]

        log.debug("gvsig.install.plugin=" + project.properties["gvsig.install.plugin"])
        log.debug("gvsig.install.plugin.package=" + project.properties["gvsig.install.plugin.package"])
        if( project.properties["gvsig.install.plugin"]=="true" ) {
          source = project.basedir.getAbsolutePath() + "/target/" + pkgname + ".gvspkg.zip"
          target = project.properties["gvsig.product.folder.path"] + "/gvSIG/extensiones/"

          log.info("Removing plugin of " + target + "/" + project.properties["gvsig.package.info.code"])
          toDelete = new File(target + "/" + project.properties["gvsig.package.info.code"])
          if(toDelete.exists()) {
            toDelete.deleteDir()
          }

          log.info("Install plugin to " + target)
          GroovyUtils.unzip(source, target)
          def install_xml = new File(target + "/" + project.properties["gvsig.package.info.code"] + "/install/install.xml")
          if( install_xml.exists() ) {
            executeAntFile(
                new File(project.properties["gvsig.product.folder.path"]),
                new File(target),
                install_xml
            )
          }
        } else {
            log.info("Skip plugin install.")
        }
        if( project.properties["gvsig.install.plugin.package"]=="true" ) {
          source = project.basedir.getAbsolutePath() + "/target/" + pkgname + ".gvspkg.zip"
          target = new File(project.properties["gvsig.product.folder.path"] +
            "/install/" +
            project.properties["gvsig.package.info.code"] + "/" +
            pkgname + ".gvspkg")
          target.getParentFile().mkdirs()

          log.info("Copy plugin package from " + source + " to " + target)
          GroovyUtils.copyFile(source, target.getAbsolutePath())

          source  = project.basedir.getAbsolutePath() + "/target/" + pkgname + ".gvspki"
          target = project.properties["gvsig.product.folder.path"] +
            "/install/" +
            project.properties["gvsig.package.info.code"] + "/" +
            pkgname + ".gvspki"
          log.info("Copy plugin package index from " + source + " to " + target)
          GroovyUtils.copyFile(source, target)
        } else {
            log.info("Skip plugin package install.")
        }
    }
                  ]]></script>
                              </scripts>
                            </configuration>
                        </execution>

                        <execution>
                            <id>deploy-package</id>
                            <phase>install</phase>
                            <configuration>
                              <scripts>
                                <script><![CDATA[

// To deploy package use:
//    mvn -Ddeploy-package -Duser=USER -Dpassword=PASSWORD install
//
if( project.properties["deploy-package"] != null ) {
    if( project.properties["gvsig.install.plugin.package"]=="true" ) {
        poolURL = project.properties["gvsig.package.info.poolURL"];
        if( poolURL[-1] != "/" ) {
            poolURL = poolURL + "/";
        }
        targetPath = poolURL + project.properties["gvsig.package.info.code"];
        log.info("Deploy plugin package to '"+targetPath+"'.");

        pkgname = "gvSIG-desktop-" +
        project.properties["gvsig.package.info.gvSIGVersion"] + "-" +
        project.properties["gvsig.package.info.code"] + "-" +
        project.properties["gvsig.package.info.version"] + "-" +
        project.properties["buildNumber"] + "-" +
        project.properties["gvsig.package.info.state"] + "-" +
        project.properties["gvsig.package.info.operatingSystem"] + "-" +
        project.properties["gvsig.package.info.architecture"] + "-" +
        project.properties["gvsig.package.info.javaVM"];

        source = project.basedir.getAbsolutePath() + "/target/" + pkgname
        targetPath = poolURL + project.properties["gvsig.package.info.code"]

        log.info("Creating addon-request.txt in target folder");
        new File(project.basedir.getAbsolutePath() + "/target/addon-request.txt").withWriter { out ->
            out.println("");
            out.println("# "+pkgname);
            out.println("");
            out.println(targetPath+"/" + pkgname + ".gvspki");
            out.println("");
        }

        if( project.properties["username"] == null ) {
            print("Enter user name: ");
            user = System.console().readLine().toString()
            if( user != "" ) {
                project.properties.setProperty("username",user);
            }
        }
        if( project.properties["password"] == null ) {
            print("Enter password for user '" + project.properties["username"] + "': ");
            password = System.console().readPassword().toString()
            if( password != "" ) {
                project.properties.setProperty("password",password);
            }
        }
        WebDAVClient session = new WebDAVClient(log);
        if( project.properties["username"] == null || project.properties["password"] == null ) {
            log.info("[WEBDAV] creating non authenticated session.");
            log.info("[WEBDAV] Use -Duser=USER -Dpassword=PASSWORD to create a authenticated session.");
            session.login();
        } else {
            session.login(project.properties["username"], project.properties["password"]);
        }
        session.makedirs(targetPath);
        session.put(source + ".gvspkg.zip", targetPath+"/"+pkgname+ ".gvspkg");
        session.put(source + ".gvspki", targetPath+"/"+pkgname+ ".gvspki");

    } else {
        log.info("Skip plugin package deploy. It not be installed by default.");
    }
} else {
    log.info("Skip plugin package deploy. Use the flags -Ddeploy-package -Duser=USER -Dpassword=PASSWORD to deploy it.");
}

public class WebDAVClient {

    def log;

    private String user;
    private String password;
    private Object sardine;

    public WebDAVClient(log) {
        disableCertificateValidation();
    	this.log = log;
    }

    public void login(String user, String password) {
        log.info("[WEBDAV] login as '"+user+"'.");
        def SardineFactory
        try {
            SardineFactory = "com.github.sardine.SardineFactory" as Class
        } catch (Exception ex) {
            log.error("[WEBDAV] can't get SardineFactory.",ex);
        }
        this.user = user;
        this.password = password;
        this.sardine = SardineFactory.begin(this.user,this.password);
    }

    public void login() {
        log.info("[WEBDAV] login as guest");
        this.sardine = SardineFactory.begin();
    }

    public boolean exists(String url) throws Exception {
        return sardine.exists(url);
    }

    public void put(String source, String target) throws Exception {
        log.info("[WEBDAV] put '" + source + "' to '" + target + "'...");
        InputStream fis = new FileInputStream(new File(source));
        sardine.put(target, fis);
        log.info("[WEBDAV] put ok.");
    }

    public void mkdir(String url) throws Exception {
        if( ! exists(url) ) {
            log.info("[WEBDAV] mkdir '"+url+"'.");
            sardine.createDirectory(url);
        }
    }

    public List list(String url) throws Exception {
        List resources = sardine.list(url);
        return resources;
    }

    void disableCertificateValidation() {
    /*
        javax.net.ssl.TrustManager[] trustAllCerts = new javax.net.ssl.TrustManager[1];
        trustAllCerts[0] = new javax.net.ssl.X509TrustManager() {
                public java.security.cert.X509Certificate[] getAcceptedIssuers() {
                    return new java.security.cert.X509Certificate[0];
                }

                public void checkClientTrusted(java.security.cert.X509Certificate[] xcs, String string) throws java.security.cert.CertificateException {
                }

                public void checkServerTrusted(java.security.cert.X509Certificate[] xcs, String string) throws java.security.cert.CertificateException {
                }
            };

        // Ignore differences between given hostname and certificate hostname
        javax.net.ssl.HostnameVerifier hv = new javax.net.ssl.HostnameVerifier() {
            public boolean verify(String hostname, javax.net.ssl.SSLSession session) {
                return true;
            }
        };

        // Install the all-trusting trust manager
        try {
            javax.net.ssl.SSLContext sc = javax.net.ssl.SSLContext.getInstance("SSL");
            sc.init(null, trustAllCerts, new java.security.SecureRandom());
            javax.net.ssl.HttpsURLConnection.setDefaultSSLSocketFactory(sc.getSocketFactory());
            javax.net.ssl.HttpsURLConnection.setDefaultHostnameVerifier(hv);
        } catch (Exception e) {
        }
        */
    }

    public void makedirs(String url) throws Exception {
        log.info("[WEBDAV] makedirs '"+url+"'.");
        URL u = new URL(url);
        String[] x = u.getPath().split("/");
        String path = "";
        for (int i=1; i<x.length; i++) { path = path + "/" + x[i]; URL t = new URL(u,path); mkdir(t.toString()); } }
} ]]></script>
                              </scripts>
                            </configuration>
                        </execution>

                    </executions>
                </plugin>

            </plugins>
        </pluginManagement>

        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-scm-plugin</artifactId>
            </plugin>

            <plugin>
                <artifactId>maven-clean-plugin</artifactId>
                <configuration>
                    <filesets>
                        <fileset>
                            <directory>${user.home}/.depman/</directory>
                            <includes>
                                <include>**</include>
                            </includes>
                        </fileset>
                    </filesets>
                </configuration>
            </plugin>

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-release-plugin</artifactId>
            </plugin>

            <plugin>
                <!-- load ".gvsig-devel.properties" -->
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>properties-maven-plugin</artifactId>
            </plugin>

<!--
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>animal-sniffer-maven-plugin</artifactId>
                <executions>
                    <execution>
                        <id>check-java-api</id>
                        <phase>package</phase>
                        <goals>
                            <goal>check</goal>
                        </goals>
                        <configuration>
                            <skip>false</skip>
                            <signature>
                                <groupId>org.codehaus.mojo.signature</groupId>
                                <artifactId>java18</artifactId>
                                <version>1.0</version>
                            </signature>
                            <ignores>
                                <ignore>net.sourceforge.cobertura.coveragedata.TouchCollector</ignore>
                                <ignore>java.nio.ByteBuffer</ignore>
                                <ignore>java.nio.MappedByteBuffer</ignore>
                            </ignores>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
-->
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-javadoc-plugin</artifactId>
            </plugin>

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-source-plugin</artifactId>
                <configuration>
                    <skipSource>false</skipSource> <!-- User property is: source.skip. -->
                </configuration>
            </plugin>

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-checkstyle-plugin</artifactId>
                <!-- invoke as "mvn checkstyle:checkstyle"  or "mvn site" -->
            </plugin>

            <plugin>
                <!-- to continue building  when test fail -->
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <configuration>
                    <testFailureIgnore>true</testFailureIgnore>
                </configuration>
            </plugin>

        </plugins>
    </build>


    <reporting>
        <excludeDefaults>true</excludeDefaults>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-project-info-reports-plugin</artifactId>
                <version>${maven.project.info.reports.plugin.version}</version>
                <reportSets>
                    <reportSet>
                        <reports>
                            <report>index</report>
                            <report>summary</report>
                            <report>scm</report>
                            <report>license</report>
                            <report>project-team</report>
                            <report>issue-tracking</report>
                            <report>mailing-list</report>
                            <report>modules</report>

                            <report>dependency-info</report>
                            <!-- Removed due to its high cost
                            <report>dependency-management</report>
                            <report>dependencies</report>
                            -->
                            <report>dependency-convergence</report>

                            <!--
                            <report>plugins</report>
                            <report>plugin-management</report>
                            <report>distribution-management</report>
                            -->

                            <!-- gvSIG does not have Continuous Integration System
                            <report>cim</report>
                            -->
                        </reports>
                    </reportSet>
                </reportSets>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-javadoc-plugin</artifactId>
                <!-- Do not use the version 2.9, does not manage properly the submodules -->
                <version>${maven.javadoc.plugin.version}</version>
                <configuration>
                    <!-- Don't include the deprecateds items in the javadoc -->
                    <nodeprecated>true</nodeprecated>
                    <!-- Don't generate javadoc of project with submodules -->
                    <aggregate>false</aggregate>
                    <!-- Removed detection of links due to its high cost -->
                    <detectJavaApiLink>false</detectJavaApiLink>
                    <detectLinks>false</detectLinks>
                    <detectOfflineLinks>false</detectOfflineLinks>
                    <!-- Removed the inclusion of dependencies sources due to their high cost -->
                    <includeDependencySources>false</includeDependencySources>
                    <includeTransitiveDependencySources>false</includeTransitiveDependencySources>
                </configuration>
                <reportSets>
                    <reportSet>
                        <id>html</id>
                        <reports>
                            <report>javadoc</report>
                            <!-- removed javadocs of tests -->
                        </reports>
                    </reportSet>
                </reportSets>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-jxr-plugin</artifactId>
                <version>${maven.jxr.plugin.version}</version>
                <configuration>
                    <linkJavadoc>true</linkJavadoc>
                    <aggregate>false</aggregate>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>findbugs-maven-plugin</artifactId>
                <version>${findbugs.maven.plugin.version}</version>
            </plugin>

        </plugins>
    </reporting>


    <profiles>

        <profile>
            <!-- This profile is used to initialize and install the root folder of gvSIG -->
            <id>gvsig-root</id>
            <activation>
                <file>
                    <exists>src/main/assembly/gvsig-root-folder-package.xml</exists>
                </file>
            </activation>
            <build>
                <plugins>

                    <plugin>
                        <!-- Check if exists ".gvsig-devel.properties" and create if not exists -->
                        <groupId>org.codehaus.gmavenplus</groupId>
                        <artifactId>gmavenplus-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>initialize-gvsig-product-folder-path</id>
                                <phase>generate-sources</phase>
                                <goals>
                                    <goal>execute</goal>
                                </goals>
                                <configuration>
                              <scripts>
                                <script><![CDATA[
                    if( project.artifactId != "org.gvsig.desktop" ) {
                    	log.warn("Skip initialization of gvsig-devel.properties.")
                    } else {
                      home = System.getenv('HOME')
                      if( home == null ) {
                        home = System.properties['user.home']
                      }
                      Properties props = new Properties()
                      File propsFile = new File(home + "/.gvsig-devel.properties")
                      if( project.properties["reset-gvsig.product.folder.path"] != null ) {
                            gvsigProductFolderPath= new File(project.basedir, "target/product").getAbsolutePath()
                            log.info("Force gvsig.product.folder.path to '"+gvsigProductFolderPath+"'.")
                            props.load(propsFile.newDataInputStream())
                            props.setProperty('gvsig.product.folder.path', gvsigProductFolderPath)
                            props.store(propsFile.newWriter(), null)
                      } else {
                        gvsigProductFolderPathDefault = project.properties["gvsig.product.folder.path"]
                        // println "Default gvsig.product.folder.path = " + gvsigProductFolderPathDefault
                        try {
                          props.load(propsFile.newDataInputStream())
                          gvsigProductFolderPath = props.getProperty('gvsig.product.folder.path')
                          if( gvsigProductFolderPath == null ) {
                            gvsigProductFolderPath = gvsigProductFolderPathDefault
                            props.setProperty('gvsig.product.folder.path', gvsigProductFolderPath)
                            props.store(propsFile.newWriter(), null)
                          }
                        } catch(java.io.FileNotFoundException e){
                          gvsigProductFolderPath = gvsigProductFolderPathDefault
                          props.setProperty('gvsig.product.folder.path', gvsigProductFolderPath)
                          props.store(propsFile.newWriter(), null)
                        }
                        if( gvsigProductFolderPathDefault != gvsigProductFolderPath ) {
                          f = new File(gvsigProductFolderPathDefault)
                          f.mkdirs();
                                                  new File(f,"WARNING.txt").withWriter { out ->
                                                          out.println();
                                                          out.println("The product folder used is set to:");
                                                          out.println();
                                                          out.println(gvsigProductFolderPath);
                                                          out.println();
                                                          out.println("See the HOME/.gvsig-devel.properties to change it.");
                                                          out.println();
                                                  }
                        }
                      }
                      log.info("Current gvsig.product.folder.path = " + gvsigProductFolderPath)
                    }
                  ]]></script>
                              </scripts>
                                </configuration>
                            </execution>

                        </executions>
                    </plugin>

                </plugins>
            </build>
        </profile>



        <profile>
            <!-- This profile is used to packege and install the gvSIG plugins -->
            <id>gvsig-plugin</id>
            <activation>
                <file>
                    <exists>buildNumber.properties</exists>
                </file>
            </activation>
            <build>
                <plugins>

                    <plugin>
                        <artifactId>maven-assembly-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>gvsig-plugin-package</id>
                                <phase>package</phase>
                                <goals>
                                    <goal>single</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>

                    <plugin>
                        <artifactId>maven-clean-plugin</artifactId>
                        <configuration>
                            <skip>false</skip>
                            <failOnError>true</failOnError>
                            <filesets>
                                <fileset>
                                    <directory>${gvsig.product.folder.path}/gvSIG/extensiones/${project.artifactId}</directory>
                                </fileset>
                            </filesets>
                        </configuration>
                        <executions>
                            <execution>
                                <id>default-clean</id>
                                <phase>clean</phase>
                            </execution>
                        </executions>
                    </plugin>

                    <plugin>
                        <groupId>org.codehaus.gmavenplus</groupId>
                        <artifactId>gmavenplus-plugin</artifactId>
                        <executions>

                            <execution>
                                <id>increase-build-number</id>
                                <phase>process-sources</phase>
                                <goals>
                                    <goal>execute</goal>
                                </goals>
                            </execution>

                            <execution>
                                <id>build-package-info</id>
                                <phase>prepare-package</phase>
                                <goals>
                                    <goal>execute</goal>
                                </goals>
                            </execution>

                            <execution>
                                <id>build-package-index</id>
                                <phase>package</phase>
                                <goals>
                                    <goal>execute</goal>
                                </goals>
                            </execution>

                            <execution>
                                <id>install-plugin</id>
                                <phase>install</phase>
                                <goals>
                                    <goal>execute</goal>
                                </goals>
                            </execution>

                            <execution>
                                <id>deploy-package</id>
                                <phase>install</phase>
                                <goals>
                                    <goal>execute</goal>
                                </goals>
                            </execution>

                        </executions>
                    </plugin>

                </plugins>
            </build>
        </profile>

    </profiles>

    <properties>
        <!-- Maven plugins versions -->    

        <!-- General configuration -->
        
        <localRepository>${user.home}/.m2/repository</localRepository>

        <!-- The property svn.tags.folder is used in external projects to override  -->
        <!-- configuraction in maven-release-plugin -->
        <svn.tags.folder>https://devel.gvsig.org/svn/gvsig-desktop/tags/</svn.tags.folder>

        <!-- Package info property values -->
        <gvsig.version>3.0.0</gvsig.version>
        <gvsig.package.info.codealias />
        <gvsig.package.info.code>${project.artifactId}</gvsig.package.info.code>
        <gvsig.package.info.name>${project.name}</gvsig.package.info.name>
        <gvsig.package.info.description>${project.description}</gvsig.package.info.description>
        <gvsig.package.info.version>${project.version}</gvsig.package.info.version>
        <gvsig.package.info.state>testing</gvsig.package.info.state>
        <gvsig.package.info.official>false</gvsig.package.info.official>
        <gvsig.package.info.operatingSystem>all</gvsig.package.info.operatingSystem>
        <gvsig.package.info.architecture>all</gvsig.package.info.architecture>
        <gvsig.package.info.javaVM>j1_21</gvsig.package.info.javaVM>
        <gvsig.package.info.gvSIGVersion>${gvsig.version}</gvsig.package.info.gvSIGVersion>
        <gvsig.package.info.dependencies>required: org.gvsig.app.mainplugin -ge 3.0.0</gvsig.package.info.dependencies>
        <gvsig.package.info.owner>gvSIG Association</gvsig.package.info.owner>
        <gvsig.package.info.sourcesURL>${project.scm.connection}</gvsig.package.info.sourcesURL>
        <gvsig.package.info.webURL>http://www.gvsig.com</gvsig.package.info.webURL>
        <gvsig.package.info.categories />
        <gvsig.package.info.poolURL>http://downloads.gvsig.org/download/gvsig-desktop/pool</gvsig.package.info.poolURL>

        <!-- Control the deploy of the plugin in gvsig.product.folder.path/gvSIG/extensiones -->
        <gvsig.install.plugin>true</gvsig.install.plugin>
        <!--  Control the deploy of the plugin package in gvsig.product.folder.path/install -->
        <gvsig.install.plugin.package>true</gvsig.install.plugin.package>

        <gvsig.product.folder.path>${basedir}/target/product</gvsig.product.folder.path>

        <!-- artifactID implementations libraries for use in runtime and test dependencies -->
        <org.gvsig.about.impl>org.gvsig.about.impl</org.gvsig.about.impl>
        <org.gvsig.annotation.lib.impl>org.gvsig.annotation.lib.impl</org.gvsig.annotation.lib.impl>
        <org.gvsig.annotation.swing.impl>org.gvsig.annotation.swing.impl</org.gvsig.annotation.swing.impl>
        <org.gvsig.compat.impl>org.gvsig.compat.se</org.gvsig.compat.impl>
        <org.gvsig.exportto.lib.impl>org.gvsig.exportto.lib.impl</org.gvsig.exportto.lib.impl>
        <org.gvsig.exportto.swing.impl>org.gvsig.exportto.swing.impl</org.gvsig.exportto.swing.impl>
        <org.gvsig.fmap.dal.impl>org.gvsig.fmap.dal.impl</org.gvsig.fmap.dal.impl>
        <org.gvsig.fmap.dal.swing.impl>org.gvsig.fmap.dal.swing.impl</org.gvsig.fmap.dal.swing.impl>
        <org.gvsig.fmap.geometry.impl>org.gvsig.fmap.geometry.jts</org.gvsig.fmap.geometry.impl>
        <org.gvsig.fmap.geometry.operation.impl>org.gvsig.fmap.geometry.operation.jts</org.gvsig.fmap.geometry.operation.impl>
        <org.gvsig.fmap.mapcontext.impl>org.gvsig.fmap.mapcontext.impl</org.gvsig.fmap.mapcontext.impl>
        <org.gvsig.fmap.mapcontext.operation.impl>org.gvsig.fmap.mapcontext.operation</org.gvsig.fmap.mapcontext.operation.impl>
        <org.gvsig.installer.lib.impl>org.gvsig.installer.lib.impl</org.gvsig.installer.lib.impl>
        <org.gvsig.installer.swing.impl>org.gvsig.installer.swing.impl</org.gvsig.installer.swing.impl>
        <org.gvsig.metadata.lib.basic.impl>org.gvsig.metadata.lib.basic.impl</org.gvsig.metadata.lib.basic.impl>
        <org.gvsig.metadata.swing.basic.impl>org.gvsig.metadata.swing.basic.impl</org.gvsig.metadata.swing.basic.impl>
        <org.gvsig.newlayer.lib.impl>org.gvsig.newlayer.lib.impl</org.gvsig.newlayer.lib.impl>
        <org.gvsig.personaldb.lib.impl>org.gvsig.personaldb.lib.impl</org.gvsig.personaldb.lib.impl>
        <!--
        <org.gvsig.projection.impl>org.gvsig.projection.cresques.impl</org.gvsig.projection.impl>
        <org.gvsig.projection.impl>org.gvsig.projection.jcrs</org.gvsig.projection.impl>
        <org.gvsig.proj.lib.impl>org.gvsig.proj.lib.proj4j</org.gvsig.proj.lib.impl>
        <org.gvsig.proj.swing.impl>org.gvsig.proj.swing.impl</org.gvsig.proj.swing.impl>
        -->
        <org.gvsig.symbology.lib.impl>org.gvsig.symbology.lib.impl</org.gvsig.symbology.lib.impl>
        <org.gvsig.symbology.swing.impl>org.gvsig.symbology.swing.impl</org.gvsig.symbology.swing.impl>
        <org.gvsig.timesupport.lib.impl>org.gvsig.timesupport.lib.impl</org.gvsig.timesupport.lib.impl>
        <org.gvsig.timesupport.swing.impl>org.gvsig.timesupport.swing.impl</org.gvsig.timesupport.swing.impl>
        <org.gvsig.tools.dynform.impl>org.gvsig.tools.dynform.impl</org.gvsig.tools.dynform.impl>
        <org.gvsig.tools.dynform.services>org.gvsig.tools.dynform.services</org.gvsig.tools.dynform.services>
        <org.gvsig.tools.swing.impl>org.gvsig.tools.swing.impl</org.gvsig.tools.swing.impl>
        <org.gvsig.crs.projection.lib.impl>org.gvsig.crs.projection.lib.apachesis</org.gvsig.crs.projection.lib.impl>
        <org.gvsig.crs.catalog.lib.impl>org.gvsig.crs.catalog.lib.impl</org.gvsig.crs.catalog.lib.impl>
        <org.gvsig.h2spatial.provider>org.gvsig.h2spatial.h2gis132.provider</org.gvsig.h2spatial.provider>
        
        <jython.artifactId>jython-standalone</jython.artifactId>
        <!-- External project versions -->
        <gvsig.crs.version>3.0.2</gvsig.crs.version>
        <gvsig.tools.version>3.1.2</gvsig.tools.version>
        <svn.tags.folder>https://devel.gvsig.org/svn/gvsig-desktop/tags</svn.tags.folder>
    </properties>

    <modules>
        <module>org.gvsig.desktop.compat.cdc</module>
        <module>org.gvsig.desktop.library</module>
        <module>org.gvsig.desktop.framework</module>
        <module>org.gvsig.desktop.plugin</module>

        <!-- NOTE: Project  org.gvsig.desktop.installer must not be a sub module of this. -->
        <!-- NOTE: Project  org.gvsig.desktop.buildtools must not be a sub module of this. -->

    </modules>
</project>

