<!--

     Copyright 2005-2014 Red Hat, Inc.

     Red Hat 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.

-->
<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/maven-v4_0_0.xsd">
  <modelVersion>4.0.0</modelVersion>

    <parent>
        <groupId>io.fabric8.insight</groupId>
        <artifactId>insight-project</artifactId>
        <version>1.1.0.CR2</version>
    </parent>

  <artifactId>insight-elasticsearch</artifactId>
  <packaging>bundle</packaging>

  <name>Fabric8 :: Insight :: Elastic Search</name>
  
  <properties>
      <fuse.osgi.import.additional>
          *;resolution:=optional
      </fuse.osgi.import.additional>
      <fuse.osgi.export>
          org.elasticsearch*;-noimport:=true;version=0.20.5;-split-package:=merge-first,
          io.fabric8.insight.elasticsearch;version=${project.version}
      </fuse.osgi.export>
      <fuse.osgi.private.pkg>
          org.apache.lucene*;-split-package:=merge-first,
          org.tartarus*,
          org.ops4j.peaberry*,
          io.fabric8.insight.elasticsearch.impl
      </fuse.osgi.private.pkg>
      <fuse.osgi.services.export>
          org.elasticsearch.node.Node,
          io.fabric8.insight.elasticsearch.ElasticRest,
          io.fabric8.insight.storage.StorageService
      </fuse.osgi.services.export>
  </properties>

  <dependencies>
      <dependency>
          <groupId>io.fabric8</groupId>
          <artifactId>fabric-groups</artifactId>
      </dependency>
      <dependency>
          <groupId>io.fabric8</groupId>
          <artifactId>fabric-zookeeper</artifactId>
      </dependency>
      <dependency>
          <groupId>io.fabric8.insight</groupId>
          <artifactId>insight-storage</artifactId>
      </dependency>
      <dependency>
          <groupId>io.fabric8.insight</groupId>
          <artifactId>insight-metrics-model</artifactId>
      </dependency>
      <dependency>
          <groupId>io.fabric8.insight</groupId>
          <artifactId>insight-metrics-mvel</artifactId>
      </dependency>

      <dependency>
          <groupId>org.osgi</groupId>
          <artifactId>org.osgi.core</artifactId>
          <version>${osgi-version}</version>
      </dependency>
      <dependency>
          <groupId>org.osgi</groupId>
          <artifactId>org.osgi.compendium</artifactId>
      </dependency>
      <dependency>
          <groupId>org.elasticsearch</groupId>
          <artifactId>elasticsearch</artifactId>
          <version>0.20.5</version>
      </dependency>
      <dependency>
          <groupId>org.elasticsearch</groupId>
          <artifactId>elasticsearch-hadoop</artifactId>
          <version>1.2.0</version>
          <exclusions>
            <exclusion>
              <groupId>org.codehaus.jackson</groupId>
              <artifactId>jackson-mapper-asl</artifactId>
            </exclusion>
            <exclusion>
              <groupId>org.codehaus.jackson</groupId>
              <artifactId>jackson-core-asl</artifactId>
            </exclusion>
            <exclusion>
              <groupId>org.codehaus.jackson</groupId>
              <artifactId>jackson-jaxrs</artifactId>
            </exclusion>
            <exclusion>
              <groupId>org.codehaus.jackson</groupId>
              <artifactId>jackson-xc</artifactId>
            </exclusion>
          </exclusions>
      </dependency>

      <dependency>
          <groupId>org.apache.lucene</groupId>
          <artifactId>lucene-core</artifactId>
          <version>3.6.0</version>
      </dependency>
      <dependency>
          <groupId>org.apache.lucene</groupId>
          <artifactId>lucene-analyzers</artifactId>
          <version>3.6.0</version>
      </dependency>
      <dependency>
          <groupId>org.apache.lucene</groupId>
          <artifactId>lucene-highlighter</artifactId>
          <version>3.6.0</version>
      </dependency>
      <dependency>
          <groupId>org.apache.lucene</groupId>
          <artifactId>lucene-memory</artifactId>
          <version>3.6.0</version>
      </dependency>
      <dependency>
          <groupId>org.apache.lucene</groupId>
          <artifactId>lucene-queries</artifactId>
          <version>3.6.0</version>
      </dependency>

      <dependency>
          <groupId>log4j</groupId>
          <artifactId>log4j</artifactId>
          <version>1.2.16</version>
      </dependency>

      <dependency>
          <groupId>org.jboss.netty</groupId>
          <artifactId>netty</artifactId>
          <version>3.2.3.Final</version>
      </dependency>

      <dependency>
          <groupId>javax.servlet</groupId>
          <artifactId>servlet-api</artifactId>
          <scope>provided</scope>
      </dependency>

  </dependencies>

  <build>
    <plugins>

    </plugins>
  </build>

</project>
