<!--
# Copyright (c) 2008, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
#
# 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.
  -->
<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</groupId>
        <artifactId>usage-parent</artifactId>
        <version>2.0.0</version>
        <relativePath>../../pom.xml</relativePath>
    </parent>

    <modelVersion>4.0.0</modelVersion>
    <groupId>org.wso2.carbon</groupId>
    <version>1.0.0</version>
    <artifactId>org.wso2.carbon.usage.usage.summary.helper</artifactId>
    <packaging>bundle</packaging>
    <name>WSO2 Stratos Usage Summary Generation Helper</name>

    <build>

        <plugins>
	    <plugin>
                    <groupId>org.apache.felix</groupId>
                    <artifactId>maven-scr-plugin</artifactId>
                    <version>1.7.2</version>
                    <executions>
                        <execution>
                            <id>generate-scr-scrdescriptor</id>
                            <goals>
                                <goal>scr</goal>
                            </goals>
                        </execution>
                    </executions>
                </plugin>

            <plugin>
                <groupId>org.apache.felix</groupId>
                <artifactId>maven-bundle-plugin</artifactId>

                <extensions>true</extensions>
                <configuration>
                    <instructions>
                        <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
                        <Axis2Module>${project.artifactId}-${project.version}</Axis2Module>
                        <Bundle-Name>${project.artifactId}</Bundle-Name>
                        <Export-Package>
                            org.wso2.carbon.usage.summary.*,
                        </Export-Package>
                        <Import-Package>
                            *;resolution:=optional
                        </Import-Package>
                        <DynamicImport-Package>*</DynamicImport-Package>
                    </instructions>
                </configuration>
            </plugin>
        </plugins>
    </build>

    <dependencies>
		<dependency>
    	    <groupId>org.apache.hive.wso2</groupId>
		    <artifactId>hive</artifactId>
    	    <version>0.8.1.wso2v3</version>
			<exclusions>
        		<exclusion>
          			<groupId>org.apache.hive</groupId>
          			<artifactId>hive-exec</artifactId>
       	 		</exclusion>
				<exclusion>
          			<groupId>org.apache.hive</groupId>
          			<artifactId>hive-shims</artifactId>
       	 		</exclusion>
				<exclusion>
          			<groupId>org.apache.hive</groupId>
          			<artifactId>hive-builtins</artifactId>
       	 		</exclusion>
				<exclusion>
          			<groupId>org.apache.hive</groupId>
          			<artifactId>hive-service</artifactId>
       	 		</exclusion>
				<exclusion>
          			<groupId>org.apache.hive</groupId>
          			<artifactId>hive-serde</artifactId>
       	 		</exclusion>
				<exclusion>
          			<groupId>org.apache.hive</groupId>
          			<artifactId>hive-metastore</artifactId>
       	 		</exclusion>	
				<exclusion>
          			<groupId>org.apache.hive</groupId>
          			<artifactId>hive-cassandra</artifactId>
       	 		</exclusion>
				<exclusion>
          			<groupId>org.apache.hive</groupId>
          			<artifactId>hive-jdbc</artifactId>
       	 		</exclusion>
				<exclusion>
					<groupId>org.wso2.carbon</groupId>
                    <artifactId>hive-jdbc-handler</artifactId>
                </exclusion>
			</exclusions> 
        </dependency>
        <dependency>
            <groupId>org.wso2.carbon</groupId>
            <artifactId>org.wso2.carbon.analytics.hive</artifactId>
            <version>4.0.1</version>
        </dependency>
        <dependency>
            <groupId>org.apache.hadoop</groupId>
            <artifactId>hadoop-core</artifactId>
            <version>0.20.2</version>
        </dependency>
    </dependencies>

    <repositories>
        <repository>
            <id>wso2-nexus</id>
            <name>WSO2 internal Repository</name>
            <url>http://maven.wso2.org/nexus/content/groups/wso2-public/</url>
            <releases>
                <enabled>true</enabled>
                <updatePolicy>daily</updatePolicy>
                <checksumPolicy>ignore</checksumPolicy>
            </releases>
        </repository>
    </repositories>

</project>
