<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- 
 Copyright (C) 2014 - Open Source Geospatial Foundation. All rights reserved.
 This code is licensed under the GPL 2.0 license, available at the root
 application directory.
 -->
<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>

  <parent>
    <groupId>org.geoserver</groupId>    
    <artifactId>gs-security</artifactId>
    <version>2.13-SNAPSHOT</version>
  </parent>
  <groupId>org.geoserver.security</groupId>
  <artifactId>gs-sec-jdbc</artifactId>
  <packaging>jar</packaging>
  <version>2.13-SNAPSHOT</version>
  <name>GeoServer JDBC Security Module</name>
  
  <dependencies>
    <dependency>	
      <groupId>org.geoserver</groupId>
      <artifactId>gs-main</artifactId>
      <version>${project.version}</version>
    </dependency>
    <dependency>
      <groupId>com.h2database</groupId>
      <artifactId>h2</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.postgresql</groupId>
      <artifactId>postgresql</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>mysql</groupId>
      <artifactId>mysql-connector-java</artifactId>
      <scope>test</scope>
      <version>5.1.17</version>
    </dependency>
    <dependency>
      <groupId>org.geoserver.security</groupId>
      <artifactId>gs-security-tests</artifactId>
      <version>${project.version}</version>
      <classifier>tests</classifier>
    </dependency>
  </dependencies>

  <build>
   <plugins>
    <plugin>
     <artifactId>maven-jar-plugin</artifactId>
     <executions>
       <execution>
         <phase>package</phase>
         <goals>
            <goal>test-jar</goal>
         </goals>
       </execution>
     </executions>
    </plugin>
   </plugins>
  </build>

  <profiles>
    <profile>
      <!-- placing this in a profile since it interfers with running from the
           development environemtn with the startup of the jdbc datastores -->
      <id>secJdbcJndiTest</id>
      <dependencies>
        <dependency>
          <groupId>simple-jndi</groupId>
          <artifactId>simple-jndi</artifactId>
          <version>0.11.4.1</version>
          <scope>test</scope>
        </dependency>
      </dependencies>
      <properties>
        <test.exclude.pattern>none</test.exclude.pattern>
      </properties>
    </profile>
  </profiles>

  <properties>
    <test.exclude.pattern>**/*JNDI*Test*</test.exclude.pattern>    
  </properties>
</project>
