<?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>
        <artifactId>rss-manager-feature</artifactId>
        <groupId>org.wso2.carbon</groupId>
        <version>4.2.0</version>
	<relativePath>../../pom.xml</relativePath>
    </parent>

    <modelVersion>4.0.0</modelVersion>
    <artifactId>org.wso2.carbon.rssmanager.server.feature</artifactId>
    <version>4.2.0</version>
    <name>RSS Manager Server Feature</name>
    <packaging>pom</packaging>
    <url>http://wso2.org</url>
    <description>This Feature Contains The Bundle Required For Back End Functionalities Of The RSS Manager
    </description>

    <dependencies>
        <dependency>
            <groupId>org.wso2.carbon</groupId>
            <artifactId>org.wso2.carbon.rssmanager.core</artifactId>
            <version>${carbon.platform.version}</version>
        </dependency>
        <dependency>
            <groupId>org.wso2.carbon</groupId>
            <artifactId>org.wso2.carbon.rssmanager.common</artifactId>
            <version>${carbon.platform.version}</version>
        </dependency>
        <dependency>
            <groupId>net.sourceforge.serp.wso2</groupId>
            <artifactId>serp</artifactId>
            <version>${serp.wso2.version}</version>
        </dependency>
	<dependency>
	       <groupId>org.apache.openjpa.wso2</groupId>
	       <artifactId>openjpa</artifactId>
	       <version>${openjpa.wso2.version}</version>
	</dependency>
	<dependency>
	       <groupId>org.apache.geronimo.specs</groupId>
	       <artifactId>geronimo-jpa_2.0_spec</artifactId>
	       <version>${geronimo-jpa_2.0_spec.version}</version>
	</dependency>
	<dependency>
	       <groupId>asm.wso2</groupId>
	       <artifactId>asm</artifactId>
	       <version>${asm.wso2.version}</version>
	</dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <artifactId>maven-resources-plugin</artifactId>
                <executions>
                    <execution>
                        <id>copy-resources</id>
                        <phase>generate-resources</phase>
                        <goals>
                            <goal>copy-resources</goal>
                        </goals>
                        <configuration>
                            <outputDirectory>src/main/resources</outputDirectory>
                            <resources>
                                <resource>
                                    <directory>resources</directory>
                                    <includes>
                                        <include>**/*.*</include>
                                    </includes>
                                </resource>
                            </resources>
                        </configuration>
                    </execution>
                </executions>
            </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.rssmanager.server</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.carbon:org.wso2.carbon.rssmanager.core:${carbon.platform.version}
                                </bundleDef>
                                <bundleDef>
                                    org.wso2.carbon:org.wso2.carbon.rssmanager.common:${carbon.platform.version}
                                </bundleDef>
                                <bundleDef>
                                    org.apache.geronimo.specs:geronimo-jpa_2.0_spec:${geronimo-jpa_2.0_spec.version}
                                </bundleDef>
                                <bundleDef>
                                    net.sourceforge.serp.wso2:serp:${serp.wso2.version}
                                </bundleDef>
                                <bundleDef>
                                    asm.wso2:asm:${asm.wso2.version}
                                </bundleDef>
                                <bundleDef>
                                    org.apache.openjpa.wso2:openjpa:${openjpa.wso2.version}
                                </bundleDef>
                            </bundles>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-antrun-plugin</artifactId>
                <version>1.1</version>
                <executions>
                    <execution>
                        <id>clean resources</id>
                        <phase>install</phase>
                        <configuration>
                            <tasks>
                                <delete dir="src"/>
                            </tasks>
                        </configuration>
                        <goals>
                            <goal>run</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>

   <properties>
        <serp.wso2.version>1.13.1.wso2v1</serp.wso2.version>
        <geronimo-jpa_2.0_spec.version>1.1</geronimo-jpa_2.0_spec.version>
        <openjpa.wso2.version>2.2.0.wso2v2</openjpa.wso2.version>
        <asm.wso2.version>3.1.wso2v1</asm.wso2.version>
   </properties>

</project>
