<?xml version="1.0" encoding="UTF-8"?>
<!--
  ~ Licensed to the Apache Software Foundation (ASF) under one
  ~ or more contributor license agreements.  See the NOTICE file
  ~ distributed with this work for additional information
  ~ regarding copyright ownership.  The ASF licenses this file
  ~ to you 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.
  -->
<features name="shiro-1.2.0" xmlns="http://karaf.apache.org/xmlns/features/v1.0.0">

    <!-- Shiro core features: -->

    <feature name="shiro-core" version="1.2.0" resolver="(obr)">
        <bundle>mvn:org.apache.shiro/shiro-core/1.2.0</bundle>
    </feature>

    <feature name="shiro-web" version="1.2.0" resolver="(obr)">
        <feature version="1.2.0">shiro-core</feature>
        <feature version="[2,4)">war</feature>
        <bundle>mvn:org.apache.shiro/shiro-web/1.2.0</bundle>
    </feature>

    <!-- 3rd party support (alphabetized please): -->

    <feature name="shiro-aspectj" version="1.2.0" resolver="(obr)">
        <feature version="1.2.0">shiro-core</feature>
        <bundle dependency='true'>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.aspectj/1.6.16_1</bundle>
        <bundle>mvn:org.apache.shiro/shiro-aspectj/1.2.0</bundle>
    </feature>

    <feature name="shiro-cas" version="1.2.0" resolver="(obr)">
        <feature version="1.2.0">shiro-cas</feature>
        <!-- Is there a CAS client osgi bundle somewhere?
        <bundle dependency='true'>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.aspectj/${casclient.bundle.version}</bundle>
        -->
        <bundle>mvn:org.apache.shiro/shiro-cas/1.2.0</bundle>
    </feature>

    <feature name="shiro-ehcache" version="1.2.0" resolver="(obr)">
        <feature version="1.2.0">shiro-core</feature>
        <bundle dependency='true'>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.ehcache/2.5.0_1</bundle>
        <bundle>mvn:org.apache.shiro/shiro-ehcache/1.2.0</bundle>
    </feature>

    <feature name="shiro-quartz" version="1.2.0" resolver="(obr)">
        <feature version="1.2.0">shiro-core</feature>
        <bundle dependency='true'>mvn:commons-collections/commons-collections/3.2.1</bundle>
        <bundle dependency='true'>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.quartz/1.6.1_1</bundle>
        <bundle>mvn:org.apache.shiro/shiro-quartz/1.2.0</bundle>
    </feature>

    <feature name="shiro-spring" version="1.2.0" resolver="(obr)">
        <feature version="1.2.0">shiro-core</feature>
        <feature version="[3,4)">spring</feature>
        <bundle>mvn:org.apache.shiro/shiro-spring/1.2.0</bundle>
    </feature>

</features>
