<?xml version="1.0" encoding="UTF-8"?>
<!--
 Copyright © 2017 Red Hat, Inc. and others.

 This program and the accompanying materials are made available under the
 terms of the Eclipse Public License v1.0 which accompanies this distribution,
 and is available at http://www.eclipse.org/legal/epl-v10.html
 -->
<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.opendaylight.odlparent</groupId>
        <artifactId>single-feature-parent</artifactId>
        <version>10.0.0</version>
        <relativePath/>
    </parent>

    <groupId>org.opendaylight.aaa</groupId>
    <artifactId>odl-aaa-shiro</artifactId>
    <version>0.15.2</version>
    <packaging>feature</packaging>

    <!-- odl-aaa-shiro feature which combines all aspects of AAA into one feature -->
    <name>ODL :: aaa :: ${project.artifactId}</name>

    <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>${project.groupId}</groupId>
                <artifactId>aaa-parent</artifactId>
                <version>${project.version}</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
        </dependencies>
    </dependencyManagement>

    <dependencies>
        <dependency>
            <groupId>org.opendaylight.aaa</groupId>
            <artifactId>odl-aaa-password-service</artifactId>
            <version>${project.version}</version>
            <classifier>features</classifier>
            <type>xml</type>
        </dependency>

        <dependency>
            <groupId>org.opendaylight.controller</groupId>
            <artifactId>odl-jolokia</artifactId>
            <classifier>features</classifier>
            <type>xml</type>
        </dependency>

        <!-- Existing AAA infrastructure -->
        <dependency>
            <groupId>org.opendaylight.aaa</groupId>
            <artifactId>odl-aaa-web</artifactId>
            <version>${project.version}</version>
            <classifier>features</classifier>
            <type>xml</type>
        </dependency>
        <dependency>
            <groupId>org.opendaylight.aaa.web</groupId>
            <artifactId>web-osgi-impl</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>org.opendaylight.aaa</groupId>
            <artifactId>aaa-shiro</artifactId>
        </dependency>
        <dependency>
          <groupId>org.opendaylight.aaa</groupId>
          <artifactId>aaa-shiro-api</artifactId>
        </dependency>
        <dependency>
            <groupId>org.opendaylight.aaa</groupId>
            <artifactId>odl-aaa-encryption-service</artifactId>
            <version>${project.version}</version>
            <type>xml</type>
            <classifier>features</classifier>
        </dependency>
        <dependency>
            <groupId>org.opendaylight.aaa</groupId>
            <artifactId>aaa-filterchain</artifactId>
        </dependency>
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>odl-aaa-api</artifactId>
            <version>${project.version}</version>
            <type>xml</type>
            <classifier>features</classifier>
        </dependency>
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>odl-aaa-cert</artifactId>
            <version>${project.version}</version>
            <type>xml</type>
            <classifier>features</classifier>
        </dependency>
        <dependency>
            <groupId>org.opendaylight.aaa</groupId>
            <artifactId>aaa-shiro</artifactId>
            <version>${project.version}</version>
            <type>xml</type>
            <classifier>aaa-app-config</classifier>
        </dependency>
        <dependency>
            <groupId>org.opendaylight.aaa</groupId>
            <artifactId>aaa-shiro</artifactId>
            <version>${project.version}</version>
            <type>xml</type>
            <classifier>aaa-datastore-config</classifier>
        </dependency>
        <dependency>
            <groupId>org.opendaylight.odlparent</groupId>
            <artifactId>odl-karaf-feat-jetty</artifactId>
            <type>xml</type>
            <classifier>features</classifier>
        </dependency>

        <!--H2 Store -->
        <dependency>
            <groupId>org.opendaylight.odlparent</groupId>
            <artifactId>odl-karaf-feat-jdbc</artifactId>
            <type>xml</type>
            <classifier>features</classifier>
        </dependency>

        <dependency>
            <!-- finalname="bin/idmtool" -->
            <groupId>org.opendaylight.aaa</groupId>
            <artifactId>aaa-shiro</artifactId>
            <version>${project.version}</version>
            <type>py</type>
            <classifier>idmtool</classifier>
        </dependency>

        <dependency>
            <!-- finalname="/etc/org.opendaylight.aaa.filterchain.cfg" -->
            <groupId>org.opendaylight.aaa</groupId>
            <artifactId>aaa-filterchain</artifactId>
            <type>cfg</type>
            <classifier>config</classifier>
        </dependency>

        <dependency>
            <!-- This is necessary for a full javax.transaction.xa for ehcache -->
            <groupId>org.apache.geronimo.specs</groupId>
            <artifactId>geronimo-jta_1.1_spec</artifactId>
            <version>1.1.1</version>
        </dependency>
    </dependencies>

    <build>
        <pluginManagement>
            <plugins>
                <plugin>
                    <groupId>org.apache.karaf.tooling</groupId>
                    <artifactId>karaf-maven-plugin</artifactId>
                </plugin>
            </plugins>
        </pluginManagement>
    </build>
</project>
