<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <licenses>
    <license>
      <name>Apache 2</name>
      <url>http://www.apache.org/licenses/LICENSE-2.0</url>
      <distribution>repo</distribution>
      <comments>
      <![CDATA[
      gvNIX. Spring Roo based RAD tool for Generalitat Valenciana
      Copyright (C) 2013 - Generalitat Valenciana

      Licensed under the Apache License, Version 2.0 (the "License");
      you may not use this file except in compliance with the License.
      You may obtain a copy of the License at

      http://www.apache.org/licenses/LICENSE-2.0

      Unless required by applicable law or agreed to in writing, software
      distributed under the License is distributed on an "AS IS" BASIS,
      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
      See the License for the specific language governing permissions and
      limitations under the License.
      ]]>
      </comments>
    </license>
  </licenses>
  <parent>
    <groupId>org.gvnix</groupId>
    <artifactId>org.gvnix.root</artifactId>
    <version>1.4.1.RELEASE</version>
  </parent>
  <artifactId>org.gvnix.web.datatables</artifactId>
  <packaging>jar</packaging>
  <name>gvNIX - Dandelion-Datatables Utils</name>
  <organization>
    <name>Generalitat Valenciana</name>
  </organization>
  <description>Dandelion-DataTables utilities for Spring MVC based projects.</description>
  <url>http://www.gvnix.org</url>

  <!-- DiSiD: Add gvNIX version from parent pom and google code project name and repo folder values -->
  <properties>
    <google.code.project.name>gvnix</google.code.project.name>
    <gvnix.version>${project.parent.version}</gvnix.version>
    <querydsl.version>3.4.3</querydsl.version>
    <spring.version>3.2.0.RELEASE</spring.version>
  </properties>

  <repositories>
    <repository>
      <id>gvnix-add-on-repository</id>
      <name>gvNIX repository</name>
      <url>https://gvnix.googlecode.com/svn/repo</url>
      <snapshots>
        <updatePolicy>never</updatePolicy>
        <enabled>true</enabled>
      </snapshots>
    </repository>
  </repositories>

  <dependencies>
<!--
    <dependency>
        <groupId>org.slf4j</groupId>
        <artifactId>slf4j-api</artifactId>
        <version>${slf4j.version}</version>
    </dependency>-->
    <dependency>
        <groupId>org.hibernate.javax.persistence</groupId>
        <artifactId>hibernate-jpa-2.0-api</artifactId>
        <version>1.0.1.Final</version>
    </dependency>

    <!-- Querydsl -->
    <dependency>
      <groupId>com.mysema.querydsl</groupId>
      <artifactId>querydsl-core</artifactId>
      <version>${querydsl.version}</version>
      <scope>provided</scope>
      <exclusions>
        <exclusion>
          <groupId>com.mysema.querydsl</groupId>
          <artifactId>querydsl-codegen</artifactId>
        </exclusion>
      </exclusions>
    </dependency>

    <dependency>
      <groupId>com.mysema.querydsl</groupId>
      <artifactId>querydsl-jpa</artifactId>
      <version>${querydsl.version}</version>
      <scope>provided</scope>
      <exclusions>
        <exclusion>
          <groupId>com.mysema.querydsl</groupId>
          <artifactId>querydsl-codegen</artifactId>
        </exclusion>
        <exclusion>
        	<!-- Exclude jpa-api as we use 2.0 -->
            <groupId>org.hibernate.javax.persistence</groupId>
      		<artifactId>hibernate-jpa-2.1-api</artifactId>
        </exclusion>
      </exclusions>
    </dependency>
    
    <dependency>
	  <groupId>com.mysema.querydsl</groupId>
	  <artifactId>querydsl-spatial</artifactId>
	  <version>${querydsl.version}</version>
	</dependency>    

    <!-- Dandelion - DataTables -->
    <dependency>
      <groupId>com.github.dandelion</groupId>
      <artifactId>datatables-core</artifactId>
      <version>${dandelion-datatables.version}</version>
    </dependency>

    <!-- Spring -->
    <dependency>
      <groupId>org.springframework</groupId>
      <artifactId>spring-beans</artifactId>
      <version>${spring.version}</version>
    </dependency>
    
    <dependency>
      <groupId>org.springframework</groupId>
      <artifactId>spring-context</artifactId>
      <version>${spring.version}</version>
    </dependency>
    
    <!-- General dependencies for standard applications -->
    <dependency>
        <groupId>javax.servlet</groupId>
        <artifactId>servlet-api</artifactId>
        <version>2.5</version>
        <scope>provided</scope>
    </dependency>

  </dependencies>

  <!-- DiSiD: Add google code distribution management -->
  <distributionManagement>
    <repository>
      <id>Google Code</id>
      <url>dav:https://${google.code.project.name}.googlecode.com/svn/repo</url>
    </repository>
  </distributionManagement>

  <build>

    <!-- DiSiD: Add webdav extension to google code  -->
    <extensions>
      <extension>
        <groupId>org.apache.maven.wagon</groupId>
        <artifactId>wagon-webdav-jackrabbit</artifactId>
        <version>2.3</version>
      </extension>
    </extensions>

	  <!-- DiSiD: Add build resources filtering -->
    <resources>
      <resource>
        <directory>src/main/resources</directory>
        <filtering>false</filtering>
        <excludes>
          <exclude>**/addon/*/configuration.xml</exclude>
          <!-- JS plugins version  -->
          <exclude>**/addon/*/*.gvnix.*.js</exclude>
        </excludes>
      </resource>
      <resource>
        <directory>src/main/resources</directory>
        <filtering>true</filtering>
        <includes>
          <include>**/addon/*/configuration.xml</include>
          <!-- JS plugins version -->
          <include>**/addon/*/*.gvnix.*.js</include>
        </includes>
      </resource>
    </resources>

  </build>

</project>
