<?xml version="1.0" encoding="utf-8"?>
<!--
 ~ Copyright (c) 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>jsservices-feature</artifactId>
        <version>3.2.0</version>
        <relativePath>../../pom.xml</relativePath>
    </parent>

    <modelVersion>4.0.0</modelVersion>
    <artifactId>org.wso2.carbon.jsservices.server.feature</artifactId>
    <version>${carbon.platform.patch.version.322}</version>
    <packaging>pom</packaging>
    <name>WSO2 Carbon - Javascript Service Hosting Server Feature</name>
    <url>http://wso2.org</url>
    <description>This feature contains backend bundles required to deploy Javascript Service
    </description>

    <dependencies>
        <dependency>
            <groupId>org.wso2.carbon</groupId>
            <artifactId>org.wso2.carbon.mashup.jsservices</artifactId>
            <version>${carbon.platform.patch.version.322}</version>
        </dependency>
        <dependency>
            <groupId>org.wso2.carbon</groupId>
            <artifactId>org.wso2.carbon.mashup.jsservices.admin</artifactId>
        </dependency>
        <dependency>
            <groupId>org.wso2.carbon</groupId>
            <artifactId>org.wso2.carbon.mashup.jsservices.custom-ui</artifactId>
        </dependency>
        <dependency>
            <groupId>org.wso2.carbon</groupId>
            <artifactId>org.wso2.carbon.mashup.javascript.hostobjects.atom</artifactId>
        </dependency>
        <dependency>
            <groupId>org.wso2.carbon</groupId>
            <artifactId>org.wso2.carbon.mashup.javascript.hostobjects.email</artifactId>
        </dependency>
        <dependency>
            <groupId>org.wso2.carbon</groupId>
            <artifactId>org.wso2.carbon.mashup.javascript.hostobjects.feed</artifactId>
        </dependency>
        <dependency>
            <groupId>org.wso2.carbon</groupId>
            <artifactId>org.wso2.carbon.mashup.javascript.hostobjects.file</artifactId>
        </dependency>
        <dependency>
            <groupId>org.wso2.carbon</groupId>
            <artifactId>org.wso2.carbon.mashup.javascript.hostobjects.httpclient</artifactId>
        </dependency>
        <dependency>
            <groupId>org.wso2.carbon</groupId>
            <artifactId>org.wso2.carbon.mashup.javascript.hostobjects.im</artifactId>
        </dependency>
        <dependency>
            <groupId>org.wso2.carbon</groupId>
            <artifactId>org.wso2.carbon.mashup.javascript.hostobjects.request</artifactId>
        </dependency>
        <dependency>
            <groupId>org.wso2.carbon</groupId>
            <artifactId>org.wso2.carbon.mashup.javascript.hostobjects.scraper</artifactId>
        </dependency>
        <dependency>
            <groupId>org.wso2.carbon</groupId>
            <artifactId>org.wso2.carbon.mashup.javascript.hostobjects.session</artifactId>
        </dependency>
        <dependency>
            <groupId>org.wso2.carbon</groupId>
            <artifactId>org.wso2.carbon.mashup.javascript.hostobjects.system</artifactId>
        </dependency>
        <dependency>
            <groupId>org.wso2.carbon</groupId>
            <artifactId>org.wso2.carbon.mashup.javascript.hostobjects.registry</artifactId>
        </dependency>
        <dependency>
            <groupId>org.wso2.carbon</groupId>
            <artifactId>org.wso2.carbon.mashup.javascript.hostobjects.wsrequest</artifactId>
        </dependency>
        <dependency>
            <groupId>org.wso2.carbon</groupId>
            <artifactId>org.wso2.carbon.mashup.javascript.hostobjects.sparql</artifactId>
        </dependency>
        <dependency>
            <groupId>org.wso2.carbon</groupId>
            <artifactId>org.wso2.carbon.mashup.im-wrapper.core</artifactId>
        </dependency>
        <dependency>
            <groupId>org.wso2.carbon</groupId>
            <artifactId>org.wso2.carbon.mashup.im-wrapper.jabber</artifactId>
        </dependency>
        <dependency>
            <groupId>org.wso2.carbon</groupId>
            <artifactId>org.wso2.carbon.mashup.im-wrapper.msn</artifactId>
        </dependency>
        <dependency>
            <groupId>org.wso2.carbon</groupId>
            <artifactId>org.wso2.carbon.mashup.im-wrapper.yahoo</artifactId>
        </dependency>
        <dependency>
            <groupId>org.wso2.carbon</groupId>
            <artifactId>org.wso2.carbon.mashup.im-wrapper.oscar</artifactId>
        </dependency>
        <dependency>
            <groupId>org.wso2.carbon</groupId>
            <artifactId>org.wso2.carbon.mashup.javascript.messagereceiver</artifactId>
        </dependency>
        <dependency>
            <groupId>org.wso2.carbon</groupId>
            <artifactId>org.wso2.carbon.mashup.request-processors.template</artifactId> 
            <version>${carbon.platform.patch.version.322}</version>           
        </dependency>
        <dependency>
            <groupId>org.wso2.carbon</groupId>
            <artifactId>org.wso2.carbon.mashup.javascript.hostobjects.hostobject-service
            </artifactId>
        </dependency>
        <dependency>
            <groupId>org.apache.axis2.wso2</groupId>
            <artifactId>axis2-json</artifactId>
        </dependency>
        <dependency>
            <groupId>net.sf.jml.wso2</groupId>
            <artifactId>jml</artifactId>
        </dependency>
        <dependency>
            <groupId>org.igniterealtime.smack.wso2</groupId>
            <artifactId>smack</artifactId>
        </dependency>
        <dependency>
            <groupId>org.igniterealtime.smack.wso2</groupId>
            <artifactId>smackx</artifactId>
        </dependency>
        <dependency>
            <groupId>socks.wso2</groupId>
            <artifactId>socks</artifactId>
        </dependency>
        <dependency>
            <groupId>net.kano.joust.wso2</groupId>
            <artifactId>joscar-client</artifactId>
        </dependency>
        <dependency>
            <groupId>net.kano.joust.wso2</groupId>
            <artifactId>joscar-common</artifactId>
        </dependency>
        <dependency>
            <groupId>net.kano.joust.wso2</groupId>
            <artifactId>joscar-protocol</artifactId>
        </dependency>
        <dependency>
            <groupId>org.wso2.wsf.javascript</groupId>
            <artifactId>axiom-e4x</artifactId>
        </dependency>
        <dependency>
            <groupId>rhino.wso2</groupId>
            <artifactId>js</artifactId>
        </dependency>
        <dependency>
            <groupId>jdom.wso2</groupId>
            <artifactId>jdom</artifactId>
        </dependency>
        <dependency>
            <groupId>rome.wso2</groupId>
            <artifactId>rome</artifactId>
        </dependency>
        <dependency>
            <groupId>org.codehaus.jettison.wso2</groupId>
            <artifactId>jettison</artifactId>
        </dependency>
        <dependency>
            <groupId>org.webharvest.wso2</groupId>
            <artifactId>webharvest-core</artifactId>
        </dependency>
        <dependency>
            <groupId>bsh.wso2</groupId>
            <artifactId>bsh</artifactId>
        </dependency>
        <dependency>
            <groupId>org.htmlcleaner.wso2</groupId>
            <artifactId>htmlcleaner</artifactId>
        </dependency>
        <!-- Apache Abdera dependencies  -->
        <dependency>
            <groupId>org.apache.abdera.wso2</groupId>
            <artifactId>abdera-extensions</artifactId>
        </dependency>
        <dependency>
            <groupId>org.apache.rampart.wso2</groupId>
            <artifactId>rampart-core</artifactId>
        </dependency>
        <dependency>
            <groupId>org.apache.rampart.wso2</groupId>
            <artifactId>rampart-policy</artifactId>
        </dependency>
        <dependency>
            <groupId>org.apache.rampart.wso2</groupId>
            <artifactId>rampart-trust</artifactId>
        </dependency>
        <dependency>
            <groupId>org.apache.ws.security.wso2</groupId>
            <artifactId>wss4j</artifactId>
        </dependency>
        <dependency>
            <groupId>net.sf.saxon.wso2</groupId>
            <artifactId>saxon</artifactId>
        </dependency>
        <!-- STAX implementation used in WSAS -->
        <dependency>
            <groupId>org.apache.geronimo.specs.wso2</groupId>
            <artifactId>geronimo-stax-api_1.0_spec</artifactId>
        </dependency>
        <dependency>
            <groupId>net.sf.cindy.wso2</groupId>
            <artifactId>cindy</artifactId>
        </dependency>
        <dependency>
            <groupId>com.hp.hpl.jena.wso2</groupId>
            <artifactId>arq</artifactId>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>org.wso2.maven</groupId>
                <artifactId>carbon-p2-plugin</artifactId>
                <version>${p2-plugin.version.mashup}</version>
                <executions>
                    <execution>
                        <id>p2-feature-generation</id>
                        <phase>package</phase>
                        <goals>
                            <goal>p2-feature-gen</goal>
                        </goals>
                        <configuration>
                            <id>org.wso2.carbon.jsservices.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.mashup.jsservices
                                </bundleDef>
                                <bundleDef>
                                    org.wso2.carbon:org.wso2.carbon.mashup.jsservices.admin
                                </bundleDef>
                                <bundleDef>
                                    org.wso2.carbon:org.wso2.carbon.mashup.jsservices.custom-ui
                                </bundleDef>
                                <bundleDef>
                                    org.wso2.carbon:org.wso2.carbon.mashup.javascript.hostobjects.atom
                                </bundleDef>
                                <bundleDef>
                                    org.wso2.carbon:org.wso2.carbon.mashup.javascript.hostobjects.email
                                </bundleDef>
                                <bundleDef>
                                    org.wso2.carbon:org.wso2.carbon.mashup.javascript.hostobjects.feed
                                </bundleDef>
                                <bundleDef>
                                    org.wso2.carbon:org.wso2.carbon.mashup.javascript.hostobjects.file
                                </bundleDef>
                                <bundleDef>
                                    org.wso2.carbon:org.wso2.carbon.mashup.javascript.hostobjects.httpclient
                                </bundleDef>
                                <bundleDef>
                                    org.wso2.carbon:org.wso2.carbon.mashup.javascript.hostobjects.im
                                </bundleDef>
                                <bundleDef>
                                    org.wso2.carbon:org.wso2.carbon.mashup.javascript.hostobjects.request
                                </bundleDef>
                                <bundleDef>
                                    org.wso2.carbon:org.wso2.carbon.mashup.javascript.hostobjects.scraper
                                </bundleDef>
                                <bundleDef>
                                    org.wso2.carbon:org.wso2.carbon.mashup.javascript.hostobjects.session
                                </bundleDef>
                                <bundleDef>
                                    org.wso2.carbon:org.wso2.carbon.mashup.javascript.hostobjects.system
                                </bundleDef>
                                <bundleDef>
                                    org.wso2.carbon:org.wso2.carbon.mashup.javascript.hostobjects.registry
                                </bundleDef>
                                <bundleDef>
                                    org.wso2.carbon:org.wso2.carbon.mashup.javascript.hostobjects.wsrequest
                                </bundleDef>
                                <bundleDef>
                                    org.wso2.carbon:org.wso2.carbon.mashup.javascript.hostobjects.sparql
                                </bundleDef>
                                <bundleDef>
                                    org.wso2.carbon:org.wso2.carbon.mashup.im-wrapper.core
                                </bundleDef>
                                <bundleDef>
                                    org.wso2.carbon:org.wso2.carbon.mashup.im-wrapper.jabber
                                </bundleDef>
                                <bundleDef>
                                    org.wso2.carbon:org.wso2.carbon.mashup.im-wrapper.msn
                                </bundleDef>
                                <bundleDef>
                                    org.wso2.carbon:org.wso2.carbon.mashup.im-wrapper.oscar
                                </bundleDef>
                                <bundleDef>
                                    org.wso2.carbon:org.wso2.carbon.mashup.im-wrapper.yahoo
                                </bundleDef>
                                <bundleDef>
                                    org.wso2.carbon:org.wso2.carbon.mashup.javascript.messagereceiver
                                </bundleDef>
                                <bundleDef>
                                    org.wso2.carbon:org.wso2.carbon.mashup.request-processors.template
                                </bundleDef>
                                <bundleDef>
                                    org.wso2.carbon:org.wso2.carbon.mashup.javascript.hostobjects.hostobject-service
                                </bundleDef>
                            </bundles>
                            <importBundles>
                                <importBundleDef>org.apache.axis2.wso2:axis2-json</importBundleDef>
                                <importBundleDef>net.sf.jml.wso2:jml</importBundleDef>
                                <importBundleDef>org.igniterealtime.smack.wso2:smack
                                </importBundleDef>
                                <importBundleDef>org.igniterealtime.smack.wso2:smackx
                                </importBundleDef>
                                <importBundleDef>socks.wso2:socks</importBundleDef>
                                <importBundleDef>net.kano.joust.wso2:joscar-client</importBundleDef>
                                <importBundleDef>net.kano.joust.wso2:joscar-common</importBundleDef>
                                <importBundleDef>net.kano.joust.wso2:joscar-protocol
                                </importBundleDef>
                                <importBundleDef>jdom.wso2:jdom</importBundleDef>
                                <importBundleDef>rome.wso2:rome</importBundleDef>
                                <importBundleDef>org.codehaus.jettison.wso2:jettison
                                </importBundleDef>
                                <importBundleDef>rhino.wso2:js</importBundleDef>
                                <importBundleDef>org.wso2.wsf.javascript:axiom-e4x</importBundleDef>
                                <importBundleDef>org.webharvest.wso2:webharvest-core
                                </importBundleDef>
                                <importBundleDef>bsh.wso2:bsh</importBundleDef>
                                <importBundleDef>org.htmlcleaner.wso2:htmlcleaner</importBundleDef>
                                <importBundleDef>org.apache.abdera.wso2:abdera-extensions
                                </importBundleDef>
                                <importBundleDef>org.apache.rampart.wso2:rampart-core
                                </importBundleDef>
                                <importBundleDef>org.apache.rampart.wso2:rampart-trust
                                </importBundleDef>
                                <importBundleDef>org.apache.rampart.wso2:rampart-policy
                                </importBundleDef>
                                <importBundleDef>net.sf.saxon.wso2:saxon</importBundleDef>
                                <importBundleDef>
                                    org.apache.geronimo.specs.wso2:geronimo-stax-api_1.0_spec
                                </importBundleDef>
                                <importBundleDef>org.apache.ws.security.wso2:wss4j</importBundleDef>
                                <importBundleDef>net.sf.cindy.wso2:cindy</importBundleDef>
                                <importBundleDef>com.hp.hpl.jena.wso2:arq</importBundleDef>
                            </importBundles>
                            <importFeatures>
                                <importFeatureDef>
                                    org.wso2.carbon.service.mgt.server:${service.mgt.version}
                                </importFeatureDef>
                                <importFeatureDef>org.wso2.carbon.jsservices.common:${pom.version}
                                </importFeatureDef>
                                <importFeatureDef>
                                    org.wso2.carbon.task.server:${scheduled.task.feature.version}
                                </importFeatureDef>
                                <importFeatureDef>
                                    org.wso2.carbon.core.common:${wso2carbon.core.version.mashup}
                                </importFeatureDef>
                            </importFeatures>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>

     <properties>
        <carbon.platform.patch.version.322>3.2.2</carbon.platform.patch.version.322>
    </properties>

</project>
