<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>data-services-feature</artifactId>
        <version>3.0.1</version>
    </parent>

    <version>3.0.1</version>
    <modelVersion>4.0.0</modelVersion>
    <artifactId>org.wso2.carbon.dataservices.server.feature</artifactId>
    <packaging>pom</packaging>
    <name>Data Service Hosting Server Feature</name>
    <url>http://wso2.org</url>
    <description>This feature contains the core bundles required for back-end Data Service hosting functionality</description>

    <dependencies>
        <dependency>
            <groupId>org.wso2.carbon</groupId>
            <artifactId>org.wso2.carbon.dataservices.core</artifactId>
            <version>${ds.component.version}</version>
        </dependency>
        <dependency>
            <groupId>org.wso2.carbon</groupId>
            <artifactId>org.wso2.carbon.dataservices.common</artifactId>
            <version>${ds.component.version}</version>
        </dependency>
        <dependency>
            <groupId>com.google.gdata.wso2</groupId>
            <artifactId>gdata-core</artifactId>
            <version>1.0.0.wso2v1</version>
        </dependency>
        <dependency>
            <groupId>com.google.gdata.wso2</groupId>
            <artifactId>gdata-spreadsheet</artifactId>
            <version>3.0.0.wso2v1</version>
        </dependency>
        <dependency>
            <groupId>com.google.common.wso2</groupId>
            <artifactId>google-collect</artifactId>
            <version>1.0.0.wso2v2</version>
        </dependency>
        <dependency>
            <groupId>org.apache.poi.wso2</groupId>
            <artifactId>poi</artifactId>
            <version>3.5.0.wso2v1</version>
        </dependency>
        <dependency>
            <groupId>org.apache.poi.wso2</groupId>
            <artifactId>poi-ooxml</artifactId>
            <version>3.5.0.wso2v1</version>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>org.wso2.maven</groupId>
                <artifactId>carbon-p2-plugin</artifactId>
                <version>1.1</version>
                <executions>
                    <execution>
                        <id>p2-feature-generation</id>
                        <phase>package</phase>
                        <goals>
                            <goal>p2-feature-gen</goal>
                        </goals>
                        <configuration>
                            <id>org.wso2.carbon.dataservices.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.dataservices.core</bundleDef>
                                <bundleDef>org.wso2.carbon:org.wso2.carbon.dataservices.common</bundleDef>
                                <bundleDef>com.google.gdata.wso2:gdata-core</bundleDef>
                                <bundleDef>com.google.gdata.wso2:gdata-spreadsheet</bundleDef>
                                <bundleDef>com.google.common.wso2:google-collect</bundleDef>
                                <bundleDef>org.apache.poi.wso2:poi</bundleDef>
                                <bundleDef>org.apache.poi.wso2:poi-ooxml</bundleDef>
                            </bundles>
                            <importFeatures>
                                <importFeatureDef>org.wso2.carbon.service.mgt.server:${service-mgt-feature.version.data-services}</importFeatureDef>
                                <importFeatureDef>org.wso2.carbon.datasource.server:${data-source-feature.version.data-services}</importFeatureDef>
                                <importFeatureDef>org.wso2.carbon.event.core.server:${event-core-server-feature.version.data-services}</importFeatureDef>
                            </importFeatures>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>

    <properties>
        <service-mgt-feature.version.data-services>3.0.0</service-mgt-feature.version.data-services>
        <event-core-server-feature.version.data-services>3.0.0</event-core-server-feature.version.data-services>
        <data-source-feature.version.data-services>3.0.0</data-source-feature.version.data-services>
        <gdata-core.wso2.version.data-services>1.0.0.wso2v1</gdata-core.wso2.version.data-services>
        <gdata-spreadsheet.wso2.version.data-services>3.0.0.wso2v1</gdata-spreadsheet.wso2.version.data-services>
        <google-collect.wso2.version.data-services>1.0.0.wso2v2</google-collect.wso2.version.data-services>
        <poi.wso2.version.data-services>3.5.0.wso2v1</poi.wso2.version.data-services>
    </properties>

</project>
