<?xml version="1.0" encoding="UTF-8"?><!-- Copyright 2015 floragunn UG (haftungsbeschränkt) 
  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. -->

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>

  <parent>
    <groupId>org.elasticsearch.plugin</groupId>
    <artifactId>plugins</artifactId>
    <version>2.3.5</version>
  </parent>

  <groupId>com.floragunn</groupId>
  <artifactId>search-guard-2</artifactId>
  <packaging>jar</packaging>
  <version>2.3.5.5</version>
  <name>Search Guard</name>
  <description>Provide access control related features for Elasticsearch 2</description>
  <url>https://github.com/floragunncom/search-guard</url>
  <inceptionYear>2015</inceptionYear>

  <licenses>
    <license>
      <name>The Apache Software License, Version 2.0</name>
      <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
      <distribution>repo</distribution>
    </license>
  </licenses>

  <properties>
    <sgssl.version>2.3.5.15</sgssl.version>
    <elasticsearch.version>2.3.5</elasticsearch.version>
    <elasticsearch.plugin.isolated>false</elasticsearch.plugin.isolated>
    <dependency.locations.enabled>false</dependency.locations.enabled>
    <elasticsearch.plugin.classname>com.floragunn.searchguard.SearchGuardPlugin</elasticsearch.plugin.classname>
    <tests.ifNoTests>warn</tests.ifNoTests>
    <elasticsearch.assembly.descriptor>${basedir}/src/main/assemblies/plugin.xml</elasticsearch.assembly.descriptor>
    <skip.integ.tests>true</skip.integ.tests>
    <skip.unit.tests>false</skip.unit.tests>
    <elasticsearch.license.header>build/license-check/elasticsearch_license_header.txt</elasticsearch.license.header>
    <elasticsearch.license.headerDefinition>build/license-check/license_header_definition.xml</elasticsearch.license.headerDefinition>
    <tests.security.manager>false</tests.security.manager>
    <apache.ds.version>2.0.0-M21</apache.ds.version>
  </properties>

  <distributionManagement>
    <snapshotRepository>
      <id>ossrh-fg</id>
      <url>https://oss.sonatype.org/content/repositories/snapshots</url>
    </snapshotRepository>
    <repository>
      <id>ossrh-fg</id>
      <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
    </repository>
  </distributionManagement>

  <scm>
    <url>https://github.com/floragunncom/search-guard</url>
    <connection>scm:git:git@github.com:floragunncom/search-guard.git</connection>
    <developerConnection>scm:git:git@github.com:floragunncom/search-guard.git</developerConnection>
    <tag>HEAD</tag>
  </scm>

  <issueManagement>
    <system>GitHub</system>
    <url>https://github.com/floragunncom/search-guard/issues</url>
  </issueManagement>

  <developers>
    <developer>
      <email>info (at) search-guard (dot) com</email>
      <name>floragunn UG (haftungsbeschränkt)</name>
      <url>http://www.floragunn.com</url>
      <id>floragunncom</id>
    </developer>
  </developers>

  <dependencies>
    <dependency>
      <groupId>com.floragunn</groupId>
      <artifactId>search-guard-ssl</artifactId>
      <version>${sgssl.version}</version>
      <scope>provided</scope>
    </dependency>
    
    <!-- Only test scoped dependencies hereafter -->

    <!--  <dependency>
       <groupId>com.floragunn</groupId>
       <artifactId>dlic-search-guard-module-dlsfls</artifactId>
       <version>2.0.0.0-SNAPSHOT</version>
       <scope>test</scope>
    </dependency>  

    <dependency>
      <groupId>com.floragunn</groupId>
      <artifactId>dlic-search-guard-authbackend-ldap</artifactId>
      <version>2.0.0.0-SNAPSHOT</version>
      <scope>test</scope>
    </dependency>
  
    <dependency>
      <groupId>com.floragunn</groupId>
      <artifactId>dlic-search-guard-authbackend-ldap</artifactId>
      <version>2.0.0.0-SNAPSHOT</version>
      <type>test-jar</type>
      <scope>test</scope>
    </dependency>
    
    
    <dependency>
      <groupId>org.apache.directory.server</groupId>
      <artifactId>apacheds-all</artifactId>
      <version>${apache.ds.version}</version>
      <scope>test</scope>
    </dependency>
    
    -->
    <dependency>
      <groupId>commons-io</groupId>
      <artifactId>commons-io</artifactId>
      <version>2.4</version>
      <scope>test</scope>
    </dependency>  
    <dependency>
      <groupId>org.apache.httpcomponents</groupId>
      <artifactId>fluent-hc</artifactId>
      <version>4.3.4</version>
      <scope>test</scope>
    </dependency>   
    <dependency>
      <groupId>io.netty</groupId>
      <artifactId>netty-tcnative</artifactId>
      <version>1.1.33.Fork17</version>
      <classifier>${os.detected.classifier}</classifier>
      <scope>test</scope>
    </dependency>    
  </dependencies>

  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-jar-plugin</artifactId>
        <executions>
          <execution>
            <goals>
              <goal>test-jar</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-assembly-plugin</artifactId>
      </plugin>
      <plugin>
        <artifactId>maven-release-plugin</artifactId>
        <configuration>
          <tagNameFormat>v@{project.version}</tagNameFormat>
          <pushChanges>false</pushChanges>
          <localCheckout>true</localCheckout>
          <useReleaseProfile>false</useReleaseProfile>
          <arguments>-Pdev,prerelease</arguments>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-javadoc-plugin</artifactId>
        <configuration>
          <encoding>${project.build.sourceEncoding}</encoding>
          <locale>en</locale>
          <additionalparam>-Xdoclint:none</additionalparam>
        </configuration>
        <executions>
          <execution>
            <id>attach-javadocs</id>
            <goals>
              <goal>jar</goal>
            </goals>
            <configuration>
                <additionalparam>-Xdoclint:none</additionalparam>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <!-- skip validation -->
      <plugin>
        <groupId>de.thetaphi</groupId>
        <artifactId>forbiddenapis</artifactId>
        <executions>
          <execution>
            <id>check-forbidden-apis</id>
            <phase>none</phase>
          </execution>
          <execution>
            <id>check-forbidden-test-apis</id>
            <phase>none</phase>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>com.mycila</groupId>
        <artifactId>license-maven-plugin</artifactId>
        <executions>
          <execution>
            <id>check-license-headers</id>
            <phase>none</phase>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-antrun-plugin</artifactId>
        <executions>
          <execution>
            <id>check-invalid-patterns</id>
            <phase>none</phase>
          </execution>
        </executions>
      </plugin>
      <plugin>
          <groupId>org.codehaus.mojo</groupId>
          <artifactId>cobertura-maven-plugin</artifactId>
          <version>2.7</version>
          <configuration>
              <formats>
                  <format>xml</format>
              </formats>
              <aggregate>true</aggregate>
              <maxmem>256m</maxmem>
          </configuration>
      </plugin>
      <plugin>
          <groupId>org.eluder.coveralls</groupId>
          <artifactId>coveralls-maven-plugin</artifactId>
          <version>3.1.0</version>
      </plugin>
      <plugin>
          <groupId>com.carrotsearch.randomizedtesting</groupId>
          <artifactId>junit4-maven-plugin</artifactId>
          <executions>
            <execution>
              <id>tests</id>
              <phase>none</phase>
              <goals>
                <goal>junit4</goal>
              </goals>
            </execution>
          </executions>
      </plugin>
      <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-surefire-plugin</artifactId>
          <version>2.19.1</version>
          <configuration>
              <includes>
                  <include>**/*Test*.java</include>
              </includes>
              <forkCount>0</forkCount>
              <reuseForks>false</reuseForks>
              <skip>false</skip>
          </configuration>
       </plugin>
    </plugins>
    <extensions>
        <extension>
          <groupId>kr.motd.maven</groupId>
          <artifactId>os-maven-plugin</artifactId>
          <version>1.4.0.Final</version>
        </extension>
    </extensions>
  </build>

  <profiles>
    <profile>
      <id>prerelease</id>
      <build>
        <plugins>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-gpg-plugin</artifactId>
            <version>1.6</version>
            <configuration>
              <keyname>51EDB2FE</keyname>
            </configuration>
            <executions>
              <execution>
                <id>sign-artifacts</id>
                <phase>verify</phase>
                <goals>
                  <goal>sign</goal>
                </goals>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
    </profile>
  </profiles>
</project>
