<?xml version="1.0" encoding="utf-8"?>
<!--
  ~ Copyright (c) 2015, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
  ~
  ~ WSO2 Inc. 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">

    <parent>
        <groupId>org.wso2.carbon.analytics-common</groupId>
        <artifactId>spark-common-feature</artifactId>
        <version>5.4.9</version>
        <relativePath>../pom.xml</relativePath>
    </parent>

    <modelVersion>4.0.0</modelVersion>
    <artifactId>org.wso2.carbon.spark.commons.feature</artifactId>
    <packaging>pom</packaging>
    <name>WSO2 Carbon - Spark Commons Feature</name>
    <url>http://maven.apache.org</url>
    <description>This feature contains the core bundles required for Spark
    </description>

    <dependencies>
        <dependency>
            <groupId>org.wso2.orbit.org.apache.spark</groupId>
            <artifactId>spark-core_2.10</artifactId>
        </dependency>
        <dependency>
            <groupId>org.wso2.orbit.org.apache.spark</groupId>
            <artifactId>spark-sql_2.10</artifactId>
        </dependency>
        <dependency>
            <groupId>org.wso2.orbit.org.apache.spark</groupId>
            <artifactId>spark-streaming_2.10</artifactId>
        </dependency>
        <dependency>
            <groupId>org.wso2.orbit.org.apache.hadoop</groupId>
            <artifactId>hadoop-client</artifactId>
        </dependency>
        <dependency>
            <groupId>org.wso2.orbit.org.apache.htrace</groupId>
            <artifactId>htrace-core-apache</artifactId>
        </dependency>
        <dependency>
            <groupId>org.wso2.orbit.org.apache.mesos</groupId>
            <artifactId>mesos</artifactId>
        </dependency>
        <dependency>
            <groupId>org.wso2.json4s</groupId>
            <artifactId>json4s-jackson_2.10</artifactId>
        </dependency>
        <dependency>
            <groupId>org.apache.commons</groupId>
            <artifactId>commons-lang3</artifactId>
        </dependency>
        <dependency>
            <groupId>org.apache.commons</groupId>
            <artifactId>commons-math3</artifactId>
        </dependency>
        <dependency>
            <groupId>org.wso2.orbit.io.netty</groupId>
            <artifactId>netty-all</artifactId>
        </dependency>
        <dependency>
            <groupId>io.netty</groupId>
            <artifactId>netty</artifactId>
        </dependency>
        <dependency>
            <groupId>org.wso2.twitter</groupId>
            <artifactId>chill_2.10</artifactId>
        </dependency>
        <dependency>
            <groupId>com.ning</groupId>
            <artifactId>compress-lzf</artifactId>
        </dependency>
        <dependency>
            <groupId>com.google.guava</groupId>
            <artifactId>guava</artifactId>
        </dependency>
        <dependency>
            <groupId>com.fasterxml.jackson.core</groupId>
            <artifactId>jackson-databind</artifactId>
        </dependency>
        <dependency>
            <groupId>com.fasterxml.jackson.core</groupId>
            <artifactId>jackson-core</artifactId>
        </dependency>
        <dependency>
            <groupId>com.fasterxml.jackson.core</groupId>
            <artifactId>jackson-annotations</artifactId>
        </dependency>
        <dependency>
            <groupId>org.wso2.orbit.com.fasterxml.jackson.module</groupId>
            <artifactId>jackson-module-scala_2.10</artifactId>
        </dependency>
        <dependency>
            <groupId>org.wso2.orbit.com.esotericsoftware.kryo</groupId>
            <artifactId>kryo</artifactId>
        </dependency>
        <dependency>
            <groupId>io.dropwizard.metrics</groupId>
            <artifactId>metrics-core</artifactId>
        </dependency>
        <dependency>
            <groupId>io.dropwizard.metrics</groupId>
            <artifactId>metrics-graphite</artifactId>
        </dependency>
        <dependency>
            <groupId>io.dropwizard.metrics</groupId>
            <artifactId>metrics-json</artifactId>
        </dependency>
        <dependency>
            <groupId>io.dropwizard.metrics</groupId>
            <artifactId>metrics-jvm</artifactId>
        </dependency>
        <dependency>
            <groupId>org.wso2.orbit.com.clearspring.analytics</groupId>
            <artifactId>stream</artifactId>
        </dependency>
        <dependency>
            <groupId>org.scala-lang</groupId>
            <artifactId>scala-library</artifactId>
        </dependency>
        <dependency>
            <groupId>org.scala-lang</groupId>
            <artifactId>scala-reflect</artifactId>
        </dependency>
        <dependency>
            <groupId>com.typesafe.akka</groupId>
            <artifactId>akka-remote_2.10</artifactId>
        </dependency>
        <dependency>
            <groupId>com.typesafe.akka</groupId>
            <artifactId>akka-actor_2.10</artifactId>
        </dependency>
        <dependency>
            <groupId>com.typesafe.akka</groupId>
            <artifactId>akka-slf4j_2.10</artifactId>
        </dependency>
        <dependency>
            <groupId>com.typesafe</groupId>
            <artifactId>config</artifactId>
        </dependency>
        <dependency>
            <groupId>org.wso2.orbit.com.esotericsoftware.minlog</groupId>
            <artifactId>minlog</artifactId>
        </dependency>
        <dependency>
            <groupId>com.google.protobuf</groupId>
            <artifactId>protobuf-java</artifactId>
        </dependency>
        <dependency>
            <groupId>commons-configuration.wso2</groupId>
            <artifactId>commons-configuration</artifactId>
        </dependency>
        <dependency>
            <groupId>org.wso2.orbit.org.objenesis</groupId>
            <artifactId>objenesis</artifactId>
        </dependency>
        <dependency>
            <groupId>javax.servlet.jsp</groupId>
            <artifactId>javax.servlet.jsp-api</artifactId>
        </dependency>
        <dependency>
            <groupId>org.wso2.uncommons.maths</groupId>
            <artifactId>uncommons-maths</artifactId>
        </dependency>
        <dependency>
            <groupId>org.spark-project.protobuf</groupId>
            <artifactId>protobuf-java</artifactId>
        </dependency>

        <dependency>
            <groupId>org.wso2.orbit.com.thoughtworks.paranamer</groupId>
            <artifactId>paranamer</artifactId>
        </dependency>

        <dependency>
            <groupId>com.sun.jersey</groupId>
            <artifactId>jersey-core</artifactId>
        </dependency>
        <dependency>
            <groupId>com.sun.jersey</groupId>
            <artifactId>jersey-server</artifactId>
        </dependency>
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-api</artifactId>
        </dependency>
        <dependency>
            <groupId>org.xerial.snappy</groupId>
            <artifactId>snappy-java</artifactId>
        </dependency>
        <dependency>
            <groupId>org.wso2.orbit.org.codehaus.janino</groupId>
            <artifactId>janino</artifactId>
        </dependency>
        <dependency>
            <groupId>org.wso2.orbit.org.apache.avro</groupId>
            <artifactId>avro-tools</artifactId>
        </dependency>
        <dependency>
            <groupId>org.wso2.orbit.org.tachyonproject</groupId>
            <artifactId>tachyon-client</artifactId>
        </dependency>
        <dependency>
            <groupId>org.wso2.orbit.org.apache.parquet</groupId>
            <artifactId>parquet-hadoop</artifactId>
        </dependency>
        <dependency>
            <groupId>org.wso2.orbit.org.codehaus.janino</groupId>
            <artifactId>commons-compiler</artifactId>
        </dependency>
        <dependency>
            <groupId>org.apache.xbean</groupId>
            <artifactId>xbean-asm5-shaded</artifactId>
        </dependency>
        <dependency>
            <groupId>net.jpountz.lz4</groupId>
            <artifactId>lz4</artifactId>
        </dependency>
        <dependency>
            <groupId>org.fusesource.leveldbjni</groupId>
            <artifactId>leveldbjni</artifactId>
        </dependency>
        <dependency>
            <groupId>org.wso2.orbit.org.iq80.leveldb</groupId>
            <artifactId>leveldb-api</artifactId>
        </dependency>
        <dependency>
            <groupId>org.wso2.orbit.oro</groupId>
            <artifactId>oro</artifactId>
        </dependency>

    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>org.wso2.maven</groupId>
                <artifactId>carbon-p2-plugin</artifactId>
                <version>${carbon.p2.plugin.version}</version>
                <extensions>true</extensions>
                <executions>
                    <execution>
                        <id>4-p2-feature-generation</id>
                        <phase>package</phase>
                        <goals>
                            <goal>p2-feature-gen</goal>
                        </goals>
                        <configuration>
                            <id>org.wso2.carbon.spark.commons</id>
                            <propertiesFile>../../etc/feature.properties</propertiesFile>
                            <adviceFile>
                                <properties>
                                    <propertyDef>org.wso2.carbon.p2.category.type:server
                                    </propertyDef>
                                    <propertyDef>org.eclipse.equinox.p2.type.group:false
                                    </propertyDef>
                                </properties>
                            </adviceFile>
                            <bundles>
                                <bundleDef>org.wso2.orbit.org.apache.spark:spark-core_2.10
                                </bundleDef>
                                <bundleDef>org.wso2.orbit.org.apache.spark:spark-sql_2.10
                                </bundleDef>
                                <bundleDef>org.wso2.orbit.org.apache.spark:spark-streaming_2.10
                                </bundleDef>
                                <bundleDef>org.wso2.orbit.org.apache.hadoop:hadoop-client
                                </bundleDef>
                                <bundleDef>org.wso2.orbit.org.apache.htrace:htrace-core-apache
                                </bundleDef>
                                <bundleDef>org.wso2.json4s:json4s-jackson_2.10</bundleDef>
                                <bundleDef>org.wso2.twitter:chill_2.10</bundleDef>
                                <bundleDef>org.wso2.orbit.com.clearspring.analytics:stream</bundleDef>
                                <bundleDef>org.wso2.orbit.com.esotericsoftware.kryo:kryo</bundleDef>
                                <bundleDef>com.typesafe.akka:akka-remote_2.10</bundleDef>
                                <bundleDef>com.typesafe.akka:akka-actor_2.10</bundleDef>
                                <bundleDef>com.typesafe.akka:akka-slf4j_2.10</bundleDef>
                                <bundleDef>org.apache.commons:commons-lang3</bundleDef>
                                <bundleDef>org.apache.commons:commons-math3</bundleDef>
                                <bundleDef>org.xerial.snappy:snappy-java</bundleDef>
                                <bundleDef>com.google.guava:guava</bundleDef>
                                <bundleDef>org.json.wso2:json</bundleDef>
                                <bundleDef>org.wso2.orbit.io.netty:netty-all</bundleDef>
                                <bundleDef>org.scala-lang:scala-library</bundleDef>
                                <bundleDef>org.scala-lang:scala-reflect</bundleDef>
                                <bundleDef>com.ning:compress-lzf</bundleDef>
                                <bundleDef>io.dropwizard.metrics:metrics-json</bundleDef>
                                <bundleDef>io.dropwizard.metrics:metrics-jvm</bundleDef>
                                <bundleDef>io.dropwizard.metrics:metrics-core</bundleDef>
                                <bundleDef>io.dropwizard.metrics:metrics-graphite</bundleDef>
                                <bundleDef>com.fasterxml.jackson.core:jackson-databind</bundleDef>
                                <bundleDef>com.fasterxml.jackson.core:jackson-core</bundleDef>
                                <bundleDef>com.fasterxml.jackson.core:jackson-annotations
                                </bundleDef>
                                <bundleDef>org.wso2.orbit.com.fasterxml.jackson.module:jackson-module-scala_2.10
                                </bundleDef>
                                <bundleDef>com.typesafe:config</bundleDef>
                                <bundleDef>org.spark-project.protobuf:protobuf-java</bundleDef>
                                <bundleDef>org.wso2.uncommons.maths:uncommons-maths</bundleDef>
                                <bundleDef>org.wso2.orbit.com.esotericsoftware.minlog:minlog
                                </bundleDef>
                                <bundleDef>org.wso2.orbit.org.apache.mesos:mesos</bundleDef>
                                <bundleDef>com.google.protobuf:protobuf-java</bundleDef>
                                <bundleDef>commons-configuration.wso2:commons-configuration
                                </bundleDef>
                                <bundleDef>org.wso2.orbit.org.objenesis:objenesis</bundleDef>
                                <bundleDef>javax.servlet.jsp:javax.servlet.jsp-api</bundleDef>
                                <bundleDef>io.netty:netty</bundleDef>
                                <!--new bundles with spa4k 1.4.0 update-->
                                <bundleDef>org.wso2.orbit.com.thoughtworks.paranamer:paranamer</bundleDef>
                                <bundleDef>com.sun.jersey:jersey-core</bundleDef>
                                <bundleDef>com.sun.jersey:jersey-server</bundleDef>
                                <!--slf4j 5.10 is needed for akka in spark cluster mode-->

                                <bundleDef>org.apache.xbean:xbean-asm5-shaded</bundleDef>
                                <bundleDef>org.wso2.orbit.org.codehaus.janino:commons-compiler</bundleDef>
                                <bundleDef>org.wso2.orbit.org.apache.avro:avro-tools</bundleDef>
                                <bundleDef>org.wso2.orbit.org.apache.parquet:parquet-hadoop</bundleDef>
                                <bundleDef>org.wso2.orbit.org.codehaus.janino:janino</bundleDef>
                                <bundleDef>org.wso2.orbit.org.tachyonproject:tachyon-client</bundleDef>
                                <bundleDef>net.jpountz.lz4:lz4</bundleDef>
                                <bundleDef>org.fusesource.leveldbjni:leveldbjni</bundleDef>
                                <bundleDef>org.wso2.orbit.org.iq80.leveldb:leveldb-api</bundleDef>
                                <bundleDef>org.wso2.orbit.oro:oro</bundleDef>
                            </bundles>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>

</project>
