<?xml version='1.0' encoding='UTF-8'?>
<!--
  ~ Copyright 2016 Red Hat, Inc. and/or its affiliates
  ~ and other contributors as indicated by the @author tags.
  ~
  ~ 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.
  -->

<features xmlns="http://karaf.apache.org/xmlns/features/v1.0.0" name="keycloak-${project.version}">

      <feature name="keycloak-fuse-6.3-example" version="${project.version}">
          <details>The keycloak fuse example</details>
          <feature>war</feature>
          <feature>camel</feature>
          <feature>camel-jetty9</feature>
          <feature>cxf</feature>
          <feature>keycloak</feature>
          <feature>keycloak-jetty9-adapter</feature>
          <bundle dependency="true">mvn:com.fasterxml.jackson.jaxrs/jackson-jaxrs-base/${jackson.version}</bundle>
          <bundle dependency="true">mvn:com.fasterxml.jackson.jaxrs/jackson-jaxrs-json-provider/${jackson.version}</bundle>
          <bundle>mvn:org.keycloak.example.demo/product-portal-fuse-example/${project.version}</bundle>
          <bundle>mvn:org.keycloak.example.demo/customer-portal-fuse-example/${project.version}/war</bundle>
          <bundle>mvn:org.keycloak.example.demo/external-config/${project.version}/war</bundle>
          <bundle>mvn:org.keycloak.example.demo/camel-endpoint-example/${project.version}</bundle>
          <bundle>mvn:org.keycloak.example.demo/cxf-jaxws-example/${project.version}</bundle>
          <bundle>mvn:org.keycloak.example.demo/cxf-jaxrs-example/${project.version}</bundle>
      </feature>

      <!-- The difference are keycloak-jetty8-adapter and camel-jetty feature -->
    <feature name="keycloak-fuse-6.2-example" version="${project.version}">
        <details>The keycloak fuse example</details>
        <feature>war</feature>
        <feature>camel</feature>
        <feature>camel-jetty</feature>
        <feature>cxf</feature>
        <feature>keycloak</feature>
        <feature>keycloak-jetty8-adapter</feature>
        <bundle dependency="true">mvn:com.fasterxml.jackson.jaxrs/jackson-jaxrs-base/${jackson.version}</bundle>
        <bundle dependency="true">mvn:com.fasterxml.jackson.jaxrs/jackson-jaxrs-json-provider/${jackson.version}</bundle>
        <bundle>mvn:org.keycloak.example.demo/product-portal-fuse-example/${project.version}</bundle>
        <bundle>mvn:org.keycloak.example.demo/customer-portal-fuse-example/${project.version}/war</bundle>
        <bundle>mvn:org.keycloak.example.demo/camel-endpoint-example/${project.version}</bundle>
        <bundle>mvn:org.keycloak.example.demo/cxf-jaxws-example/${project.version}</bundle>
        <bundle>mvn:org.keycloak.example.demo/cxf-jaxrs-example/${project.version}</bundle>
    </feature>

</features>
