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

 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>14.3.7</version>
        <relativePath>../../single-feature-parent/pom.xml</relativePath>
    </parent>

    <artifactId>odl-karaf-feat-jdbc</artifactId>
    <name>ODL :: odlparent :: ${project.artifactId}</name>
    <packaging>kar</packaging>

    <properties>
        <pax.jdbc.version>1.5.7</pax.jdbc.version>
    </properties>

    <dependencies>
        <dependency>
            <groupId>org.ops4j.pax.jdbc</groupId>
            <artifactId>pax-jdbc-features</artifactId>
            <version>${pax.jdbc.version}</version>
            <classifier>features</classifier>
            <!-- Keep this list in sync with blacklisted features in karaf4-parent-->
            <exclusions>
                <exclusion>
                    <groupId>org.ops4j.pax.jdbc</groupId>
                    <artifactId>pax-jdbc-db2</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.ops4j.pax.jdbc</groupId>
                    <artifactId>pax-jdbc-teradata</artifactId>
                </exclusion>
                <!--
                    Exclude Derby version 10.14.2.0 due to the vulnerability:
                      https://nvd.nist.gov/vuln/detail/CVE-2022-46337
                    for which there are no upstream builds we can use.
                 -->
                <exclusion>
                    <groupId>org.ops4j.pax.jdbc</groupId>
                    <artifactId>pax-jdbc-derby</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.ops4j.pax.jdbc</groupId>
                    <artifactId>pax-jdbc-derbyclient</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.ops4j.pax.jdbc</groupId>
                    <artifactId>pax-jdbc-hsqldb</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.ops4j.pax.jdbc</groupId>
                    <artifactId>pax-jdbc-mysql</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.ops4j.pax.jdbc</groupId>
                    <artifactId>pax-jdbc-oracle</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.ops4j.pax.jdbc</groupId>
                    <artifactId>pax-jdbc-postgresql</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.ops4j.pax.jdbc</groupId>
                    <artifactId>pax-jdbc-sqlite</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.ops4j.pax.jdbc</groupId>
                    <artifactId>pax-jdbc-mssql</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.ops4j.pax.jdbc</groupId>
                    <artifactId>pax-jdbc-jtds</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.ops4j.pax.jdbc</groupId>
                    <artifactId>pax-jdbc-derbyclient</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.ops4j.pax.jdbc</groupId>
                    <artifactId>pax-jdbc-pool-c3p0</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.ops4j.pax.jdbc</groupId>
                    <artifactId>pax-jdbc-pool-hikaricp</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.ops4j.pax.jdbc</groupId>
                    <artifactId>pax-jdbc-pool-aries</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.ops4j.pax.jdbc</groupId>
                    <artifactId>pax-jdbc-pool-narayana</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.ops4j.pax.jdbc</groupId>
                    <artifactId>pax-jdbc-pool-transx</artifactId>
                </exclusion>
            </exclusions>
            <type>xml</type>
            <scope>runtime</scope>
        </dependency>
        <dependency>
            <groupId>org.osgi</groupId>
            <artifactId>org.osgi.service.jdbc</artifactId>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>org.apache.karaf.jdbc</groupId>
            <artifactId>org.apache.karaf.jdbc.core</artifactId>
            <scope>compile</scope>
            <exclusions>
                <exclusion>
                    <groupId>org.apache.felix</groupId>
                    <artifactId>org.apache.felix.utils</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.apache.karaf</groupId>
                    <artifactId>org.apache.karaf.util</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.apache.karaf.jaas</groupId>
                    <artifactId>org.apache.karaf.jaas.boot</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
    </dependencies>

    <build>
        <resources>
            <resource>
                <directory>src/main/feature</directory>
                <filtering>true</filtering>
            </resource>
        </resources>
    </build>

</project>
