<!--
/**
 * Copyright (c) Codice Foundation
 *
 * This is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either
 * version 3 of the License, or any later version.
 *
 * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 * See the GNU Lesser General Public License for more details. A copy of the GNU Lesser General Public License is distributed along with this program and can be found at
 * <http://www.gnu.org/licenses/lgpl.html>.
 *
 **/
 -->
<features xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    name="solr-2.30.0"
    xmlns="http://karaf.apache.org/xmlns/features/v1.3.0"
    xsi:schemaLocation="http://karaf.apache.org/xmlns/features/v1.3.0 http://karaf.apache.org/xmlns/features/v1.3.0">

    <repository>mvn:org.ops4j.pax.web/pax-web-features/8.0.34/xml/features</repository>

    <feature name="solr-dependencies" version="2.30.0" >
        <feature>pax-web-jetty-extras</feature>
        <bundle>mvn:org.eclipse.jetty/jetty-client/10.0.26</bundle>
        <bundle>mvn:org.eclipse.jetty/jetty-alpn-client/10.0.26</bundle>
        <bundle>mvn:org.eclipse.jetty/jetty-alpn-java-client/10.0.26</bundle>
        <bundle>mvn:org.eclipse.jetty/jetty-http/10.0.26</bundle>
        <bundle>mvn:org.eclipse.jetty/jetty-io/10.0.26</bundle>
        <bundle>mvn:org.eclipse.jetty/jetty-util/10.0.26</bundle>
        <bundle>mvn:org.eclipse.jetty.http2/http2-hpack/10.0.26</bundle>
        <bundle>mvn:org.eclipse.jetty.http2/http2-common/10.0.26</bundle>
        <bundle>mvn:org.eclipse.jetty.http2/http2-client/10.0.26</bundle>
        <bundle>mvn:org.eclipse.jetty.http2/http2-http-client-transport/10.0.26</bundle>
        <bundle>mvn:org.apache.httpcomponents/httpcore-osgi/4.4.16</bundle>
        <bundle>mvn:org.apache.httpcomponents/httpclient-osgi/4.5.14</bundle>
        <bundle>mvn:com.sun.mail/jakarta.mail/1.6.7</bundle>
        <bundle>mvn:ddf.platform.solr/solr-dependencies/2.30.0</bundle>
    </feature>

    <feature name="solr-factory-api" version="2.30.0" >
        <feature>solr-dependencies</feature>
        <bundle>mvn:ddf.platform.solr/solr-factory/2.30.0</bundle>
    </feature>

    <feature name="solr-factory-impl" version="2.30.0"
             description="Solr factory">
        <feature>security-core-services</feature>
        <feature>common-system</feature>
        <feature version="6.1.21_1">spring</feature>
        <feature>solr-factory-api</feature>
        <feature>platform-util</feature>
        <bundle>mvn:ddf.platform.solr/solr-factory-impl/2.30.0</bundle>
    </feature>

    <feature name="solr-core" version="2.30.0"
             description="Core Solr features">
        <feature>solr-dependencies</feature>
        <feature>solr-factory-api</feature>
        <feature>solr-factory-impl</feature>
    </feature>

    <!-- Start of app features -->

    <repository>mvn:org.apache.karaf.features/spring/4.4.10/xml/features</repository>
    <repository>mvn:ddf.features/security/2.30.0/xml/features</repository>
    <repository>mvn:ddf.features/utilities/2.30.0/xml/features</repository>

    <feature name="solr-decanter-appender" version="2.30.0"
        description="A Decanter appender that writes to solr">
        <feature>persistence-core</feature>
        <feature>spring</feature>
        <feature>common-system</feature>
        <bundle>mvn:ddf.platform.solr/solr-appender/2.30.0</bundle>
    </feature>

    <feature name="persistence-core-api" version="2.30.0"
        description="Internal Persistence Core API">
        <feature>security-core-api</feature>
        <bundle>mvn:ddf.persistence.core/persistence-core-api/2.30.0</bundle>
    </feature>

    <feature name="persistence-core" version="2.30.0"
             description="Internal Persistence Core Implementation">
        <feature>persistence-core-api</feature>
        <feature>solr-factory-impl</feature>

        <bundle>mvn:com.google.code.gson/gson/2.13.2</bundle>
        <bundle>mvn:org.codice.thirdparty/picocontainer/1.3_1</bundle>
        <!-- for GeoTools -->
        <feature>jts</feature>
        <feature>geotools</feature>
        <bundle>mvn:ddf.persistence.core/persistence-core-impl/2.30.0</bundle>
        <bundle>mvn:ddf.platform/preferences-api/2.30.0</bundle>
        <bundle>mvn:ddf.persistence.core/persistence-core-commands/2.30.0</bundle>

        <bundle>mvn:joda-time/joda-time/2.9.4</bundle>
        <bundle>mvn:ddf.persistence.core/persistence-core-listeners/2.30.0</bundle>
        <bundle>mvn:ddf.persistence.core/persistence-core-attributes-impl/2.30.0
        </bundle>
    </feature>

    <feature name="platform-solr-app" version="2.30.0"
             description="All Solr features">
        <feature>solr-core</feature>
        <feature>persistence-core-api</feature>
        <feature>persistence-core</feature>
    </feature>

    <feature name="solr-all" version="2.30.0"
             description="All DDF Solr features">
        <feature>platform-solr-app</feature>
        <feature>solr-decanter-appender</feature>
    </feature>

</features>
