<?xml version="1.0" encoding="UTF-8"?>
<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/xsd/maven-4.0.0.xsd">

    <parent>
        <groupId>org.wso2.carbon</groupId>
        <artifactId>data-bridge-feature</artifactId>
        <version>4.1.0</version>
	<relativePath>../../pom.xml</relativePath>
    </parent>

	<modelVersion>4.0.0</modelVersion>
    <artifactId>org.wso2.carbon.databridge.datasink.cassandra.server.feature</artifactId>
    <packaging>pom</packaging>
    <name>WSO2 Carbon - Data Bridge - Cassandra Data Sink Server Feature</name>
    <version>4.1.2</version>
    <url>http://wso2.org</url>
    <description>
        This feature contains the bundles required for the Cassandra Stream Defn Store the data bridge
    </description>

	<dependencies>
		<dependency>
			<groupId>org.wso2.carbon</groupId>
            <artifactId>org.wso2.carbon.databridge.persistence.cassandra</artifactId>
            <version>${carbon.platform.patch.version.412}</version>
		</dependency>
		<dependency>
			<groupId>org.wso2.carbon</groupId>
            <artifactId>org.wso2.carbon.databridge.datasink.cassandra</artifactId>
            <version>${carbon.platform.version}</version>
		</dependency>
	</dependencies>

	<build>
		<plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-compiler-plugin</artifactId>
				<!-- inherited version -->
				<configuration>
					<encoding>UTF-8</encoding>
					<source>1.6</source>
					<target>1.6</target>
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.wso2.maven</groupId>
				<artifactId>carbon-p2-plugin</artifactId>
				<version>${carbon.p2.plugin.version}</version>
				<executions>
					<execution>
						<id>p2-feature-generation</id>
						<phase>package</phase>
						<goals>
							<goal>p2-feature-gen</goal>
						</goals>
						<configuration>
                            <id>org.wso2.carbon.databridge.datasink.cassandra.server</id>
							<propertiesFile>../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.carbon:org.wso2.carbon.databridge.datasink.cassandra</bundleDef>
                                <bundleDef>org.wso2.carbon:org.wso2.carbon.databridge.persistence.cassandra</bundleDef>
							</bundles>

							<importFeatures>
                                <importFeatureDef>org.wso2.carbon.core.server:${carbon.platform.version}</importFeatureDef>
                                <importFeatureDef>org.wso2.carbon.cassandra.dataaccess:${wso2carbon.version}</importFeatureDef>
                                <importFeatureDef>org.wso2.carbon.databridge.core.server:${carbon.platform.patch.version.412}</importFeatureDef>
							</importFeatures>
						</configuration>
					</execution>
				</executions>
			</plugin>
		</plugins>
	</build>

    <properties>
        <carbon.platform.version>4.1.0</carbon.platform.version>
        <carbon.platform.patch.version.412>4.1.2</carbon.platform.patch.version.412>
    </properties>



</project>
