<?xml version="1.0" encoding="ISO-8859-1"?>

<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>
    <artifactId>org.gvsig.scripting.app.mainplugin</artifactId>
    <packaging>jar</packaging>
    <name>${project.artifactId}</name>
    <description><![CDATA[
This plugin provides support for scripting to gvSIG.
Among other things it contains:

- The gvSIG scripting engine
- The gvSIG script editor
- Script engines for:
   - Jython
   - Groovy
   - javascript
   - Renjin

- The script install module for the add-on manager.
- Utilities to generate packages of complements with our scripts.
- Python libraries as:
   - Six - Utilities for writing code that runs on Python 2 and 3
   - PyLint - Python source code analyzer
   - Pygments - syntax highlighting package
   - CSSUtils - CSS Cascading Style Sheets library
   - Docutils - Python Documentation Utilities
   - geopy - client for several popular geocoding web services
   - PyInliner - CSS-to-inline-styles conversion tool for HTML
   - Statistics - functions for calculating statistics of data
   - Cartodb - simple CartoDB client to perform requests against the CartoDB API

- Java libraries to use from scripting like:
   - Abeille forms deseigner
   - jOpenDocument
   - JNumeric
   - CSSBox


This plugin can be configured to be preinstalled automatically, allowing 
"Script" type plugins to be installed during the application installation process. 
To do this, the following entries must be added to the "packages.properties" 
of gvspks::

    installers=scripts
    installer.scripts.initializer=org.gvsig.scripting.app.extension.ScriptsInstallerInitializer
    installer.scripts.package.code=org.gvsig.scripting.app.mainplugin
    installer.scripts.factory.name=Script
    installer.scripts.libs=lib

If the "installers" entry already exists, add "scripts" to the end separating 
it with a space.    
                            
]]></description>
    <parent>
        <groupId>org.gvsig</groupId>
        <artifactId>org.gvsig.scripting.app</artifactId>
        <version>2.3.44</version>
    </parent>
    <dependencies>
        <dependency>
            <groupId>org.gvsig</groupId>
            <artifactId>org.gvsig.tools.lib</artifactId>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>org.gvsig</groupId>
            <artifactId>org.gvsig.tools.lib</artifactId>
            <type>test-jar</type>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.gvsig</groupId>
            <artifactId>org.gvsig.i18n</artifactId>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>org.gvsig</groupId>
            <artifactId>org.gvsig.andami</artifactId>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>org.gvsig</groupId>
            <artifactId>org.gvsig.app.document.table.app.mainplugin</artifactId>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>org.gvsig</groupId>
            <artifactId>org.gvsig.app.mainplugin</artifactId>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>org.gvsig</groupId>
            <artifactId>org.gvsig.tools.swing.impl</artifactId>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>org.gvsig</groupId>
            <artifactId>org.gvsig.about.api</artifactId>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>org.gvsig</groupId>
            <artifactId>org.gvsig.scripting.lib.api</artifactId>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>org.gvsig</groupId>
            <artifactId>org.gvsig.scripting.swing.api</artifactId>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>org.gvsig</groupId>
            <artifactId>org.gvsig.scripting.lib.impl</artifactId>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>org.gvsig</groupId>
            <artifactId>org.gvsig.scripting.swing.impl</artifactId>
            <scope>compile</scope>
        </dependency>

        <!-- force adding -->
        <dependency>
            <groupId>org.ini4j</groupId>
            <artifactId>ini4j</artifactId>
            <scope>runtime</scope>
        </dependency>
        <dependency>
            <groupId>net.sourceforge.thinlet</groupId>
            <artifactId>thinlet</artifactId>
            <scope>runtime</scope>
        </dependency>
        <dependency>
            <groupId>org.gvsig</groupId>
            <artifactId>org.gvsig.scripting.thing</artifactId>
            <scope>runtime</scope>
        </dependency>
        <dependency>
            <groupId>com.jeta</groupId>
            <artifactId>abeille</artifactId>
            <type>tar.gz</type>
            <scope>runtime</scope>
        </dependency>
        <dependency>
            <groupId>org.jopendocument</groupId>
            <artifactId>jOpenDocument</artifactId>
            <scope>runtime</scope>
        </dependency>
        <dependency>
            <groupId>com.github.tbekolay.jnumeric</groupId>
            <artifactId>jnumeric</artifactId>
            <scope>runtime</scope>
        </dependency>
 
        <dependency>
            <groupId>org.apache.tika</groupId>
            <artifactId>tika-core</artifactId>
            <scope>runtime</scope>
        </dependency>

        <dependency>
            <groupId>org.python</groupId>
            <artifactId>${jython.artifactId}</artifactId>
            <scope>runtime</scope>
        </dependency>
        <dependency>
            <groupId>org.codehaus.groovy</groupId>
            <artifactId>groovy-all</artifactId>
            <scope>runtime</scope>
        </dependency>
        <dependency>
            <groupId>org.renjin</groupId>
            <artifactId>renjin-script-engine</artifactId>
            <classifier>jar-with-dependencies</classifier>
            <scope>runtime</scope>
        </dependency>      
        
        <dependency>
            <groupId>org.scala-lang</groupId>
            <artifactId>scala-dist</artifactId>
            <scope>runtime</scope>
        </dependency>
        <dependency>
            <groupId>org.scala-lang</groupId>
            <artifactId>scala-compiler</artifactId>
            <scope>runtime</scope>
        </dependency>
        <dependency>
            <groupId>org.scala-lang</groupId>
            <artifactId>scala-library</artifactId>
            <scope>runtime</scope>
        </dependency>
        <dependency>
            <groupId>org.scala-lang</groupId>
            <artifactId>scala-reflect</artifactId>
            <scope>runtime</scope>
        </dependency>
        <dependency>
            <groupId>org.scala-lang</groupId>
            <artifactId>scalap</artifactId>
            <scope>runtime</scope>
        </dependency>
        <dependency>
            <groupId>jline</groupId>
            <artifactId>jline</artifactId>
            <scope>runtime</scope>
        </dependency>
        <dependency>
            <groupId>net.sf.cssbox</groupId>
            <artifactId>swingbox</artifactId>
            <scope>runtime</scope>
        </dependency>
        <dependency>
            <groupId>net.sf.cssbox</groupId>
            <artifactId>cssbox</artifactId>
            <scope>runtime</scope>
        </dependency>
        
        <dependency>
            <groupId>net.sourceforge.nekohtml</groupId>
            <artifactId>nekohtml</artifactId>
            <scope>runtime</scope>
        </dependency>
        <dependency>
            <groupId>net.sf.cssbox</groupId>
            <artifactId>jstyleparser</artifactId>
            <scope>runtime</scope>
        </dependency>
        <dependency>
            <groupId>org.antlr</groupId>
            <artifactId>antlr-runtime</artifactId>
            <!-- Ojo que forzamos una version en concreto -->
            <version>3.5.2</version>
        </dependency>                    
    </dependencies>


    <properties>
        <gvsig.package.info.name>Scripting framework</gvsig.package.info.name>
        <gvsig.package.info.dependencies>required: org.gvsig.app.document.table.app.mainplugin -ge 2</gvsig.package.info.dependencies>
        <gvsig.package.info.poolURL>https://devel.gvsig.org/download/projects/gvsig-scripting/pool</gvsig.package.info.poolURL>
        <gvsig.package.info.sourcesURL>https://devel.gvsig.org/svn/gvsig-scripting</gvsig.package.info.sourcesURL>
        <gvsig.package.info.state>testing</gvsig.package.info.state>
        <gvsig.package.info.categories>Development</gvsig.package.info.categories>
        <gvsig.package.info.official>true</gvsig.package.info.official>

    </properties>

    <build>
        <plugins>

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-dependency-plugin</artifactId>
                <executions>
                    <execution>
                        <id>unpack</id>
                        <phase>process-sources</phase>
                        <goals>
                            <goal>unpack</goal>
                        </goals>
                        <configuration>
                            <artifactItems>
                                <artifactItem>
                                    <groupId>com.jeta</groupId>
                                    <artifactId>abeille</artifactId>
                                    <version>2.1.0.M3</version>
                                    <type>tar.gz</type>
                                    <overWrite>true</overWrite>
                                    <outputDirectory>target/abeille</outputDirectory>
                                </artifactItem>
                            </artifactItems>
                        </configuration>
                    </execution>
                </executions>
            </plugin>

        </plugins>
    </build>

</project>
