<?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>common-feature</artifactId>
        <version>2.2.0</version>
        <relativePath>../../pom.xml</relativePath>
    </parent>

    <modelVersion>4.0.0</modelVersion>
    <artifactId>org.wso2.carbon.stratos.common.server.feature</artifactId>
    <packaging>pom</packaging>
    <version>2.2.2</version>
    <name>WSO2 Stratos - Common Core Feature</name>
    <url>http://wso2.org</url>
    <description>This feature contains the core bundles required for Back-end servlet functionality</description>

    <dependencies>
        <dependency>
            <groupId>org.wso2.carbon</groupId>
            <artifactId>org.wso2.carbon.stratos.common</artifactId>
		</dependency>
		<dependency>
            <groupId>org.wso2.carbon</groupId>
			<artifactId>org.wso2.carbon.stratos.landing.page.deployer</artifactId>
			<version>${stratos.version}</version>
		</dependency>
        
        <dependency>
            <groupId>org.wso2.carbon</groupId>
            <artifactId>org.wso2.carbon.sample.installer</artifactId>
	    <version>2.2.1</version>
        </dependency>
        <!--<dependency>
            <groupId>org.wso2.carbon</groupId>
            <artifactId>org.wso2.carbon.tenant.activity</artifactId>
        </dependency>-->       
        <dependency>
            <groupId>org.wso2.carbon</groupId>
            <artifactId>org.wso2.carbon.tenant.dispatcher</artifactId>
			<version>${stratos.version}</version>
        </dependency>
        <dependency>
            <groupId>org.wso2.carbon</groupId>
            <artifactId>org.wso2.carbon.redirector.servlet</artifactId>
			<version>2.2.1</version>
        </dependency>
        <!--<dependency>
            <groupId>org.wso2.carbon</groupId>
            <artifactId>org.wso2.carbon.throttling.agent</artifactId>
        </dependency>-->
		<dependency>
            <groupId>org.wso2.carbon</groupId>
            <artifactId>org.wso2.carbon.throttling.agent.stub</artifactId>
			<version>${carbon.version}</version>
        </dependency>
        <!--<dependency>
            <groupId>org.wso2.carbon</groupId>
            <artifactId>org.wso2.carbon.usage.agent</artifactId>
			<version>2.2.0</version>
        </dependency>-->
        <dependency>
            <groupId>org.quartz-scheduler.wso2</groupId>
            <artifactId>quartz</artifactId>
        </dependency>
        <!--dependency>
            <groupId>org.wso2.carbon</groupId>
            <artifactId>org.wso2.carbon.task</artifactId>
            <version>${carbon.platform.version}</version> 
        </dependency-->
        <dependency>
            <groupId>org.wso2.carbon</groupId>
            <artifactId>org.wso2.carbon.application.upload</artifactId>
            <version>${carbon.platform.version}</version> 
        </dependency>
        <!--dependency>
            <groupId>org.apache.synapse</groupId>
            <artifactId>synapse-tasks</artifactId>
            <version>${synapse.version}</version>
        </dependency-->

		<!--  Tenant Mgmt -->
        <dependency>
        	<groupId>org.json.wso2</groupId>
        	<artifactId>json</artifactId>
        	<version>${json.patch.version.200-wso2v1}</version>
        </dependency>


        <dependency>
        	<groupId>org.wso2.carbon</groupId>
        	<artifactId>org.wso2.carbon.tenant.mgt</artifactId>
        	<version>2.2.2</version>
        </dependency>
		
		<dependency>
			<groupId>kaptcha.wso2</groupId>
			<artifactId>kaptcha</artifactId>
			<version>${kaptcha.patch.version.230-wso2v1}</version>
		</dependency>
		<dependency>
			<groupId>org.wso2.carbon</groupId>
			<artifactId>org.wso2.carbon.keystore.mgt</artifactId>
			<version>${stratos.keystore.version}</version>
		</dependency>
		<dependency>
			<groupId>org.wso2.carbon</groupId>
			<artifactId>org.wso2.carbon.tenant.mgt.core</artifactId>
			<version>${stratos.version}</version>
		</dependency>
		<dependency>
			<groupId>org.wso2.carbon</groupId>
			<artifactId>org.wso2.carbon.captcha.mgt</artifactId>
			<version>${carbon.version}</version>
		</dependency>
		<dependency>
			<groupId>org.wso2.carbon</groupId>
			<artifactId>org.wso2.carbon.theme.mgt</artifactId>
			<version>${stratos.version}</version>
		</dependency>
<dependency>
                <groupId>org.apache.rampart.wso2</groupId>
                <artifactId>rampart-policy</artifactId>
                <version>${orbit.version.rampart}</version>
            </dependency>
            <dependency>
                <groupId>org.apache.rampart.wso2</groupId>
                <artifactId>rampart-core</artifactId>
                <version>${orbit.version.rampart}</version>
            </dependency>
            <dependency>
                <groupId>org.apache.rampart.wso2</groupId>
                <artifactId>rampart-trust</artifactId>
                <version>${orbit.version.rampart}</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>conf/cloud-services-desc.xml</include>
					                    <include>conf/multitenancy-packages.xml</include> 
					                    <include>conf/identity.xml</include>
							    <include>conf/tenant-mgt.xml</include> 
					                    <include>conf/stratos.xml</include> 
							   <include>conf/eula.xml</include> 
					                    <include>conf/usage-throttling-agent-config.xml</include> 
                                        <include>p2.inf</include>
                                        <include>build.properties</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.stratos.common.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.stratos.common:${stratos.version}</bundleDef>
                                <bundleDef>org.wso2.carbon:org.wso2.carbon.redirector.servlet</bundleDef>
                                <bundleDef>org.wso2.carbon:org.wso2.carbon.sample.installer:2.2.1</bundleDef>
                                <bundleDef>org.wso2.carbon:org.wso2.carbon.tenant.dispatcher</bundleDef>
                                <!--<bundleDef>org.wso2.carbon:org.wso2.carbon.throttling.agent</bundleDef>-->
				<!--<bundleDef>org.wso2.carbon:org.wso2.carbon.throttling.agent.stub</bundleDef>-->
                                <!--<bundleDef>org.wso2.carbon:org.wso2.carbon.usage.agent</bundleDef>-->
                                <bundleDef>org.wso2.carbon:org.wso2.carbon.stratos.landing.page.deployer</bundleDef>
                                <!--bundleDef>org.quartz-scheduler.wso2:quartz</bundleDef-->
                                <!--<bundleDef>org.wso2.carbon:org.wso2.carbon.tenant.activity</bundleDef>-->
                                <!--bundleDef>org.wso2.carbon:org.wso2.carbon.task</bundleDef-->
                                <!--bundleDef>org.apache.synapse:synapse-tasks</bundleDef-->
                                
                                
                                <!-- Tenant Mgmt -->
                                <bundleDef>org.json.wso2:json</bundleDef>
								<bundleDef>org.wso2.carbon:org.wso2.carbon.tenant.mgt:2.2.2</bundleDef>
								<bundleDef>kaptcha.wso2:kaptcha</bundleDef>
								<bundleDef>org.wso2.carbon:org.wso2.carbon.keystore.mgt</bundleDef>
								<bundleDef>org.wso2.carbon:org.wso2.carbon.tenant.mgt.core:${stratos.version}</bundleDef>
								<bundleDef>org.wso2.carbon:org.wso2.carbon.captcha.mgt</bundleDef>
								<bundleDef>org.wso2.carbon:org.wso2.carbon.theme.mgt:${stratos.version}</bundleDef>
                                <!-- End Tenant Mgmt -->
                                
                            </bundles>
                            <importBundles>
				<importBundleDef>org.apache.rampart.wso2:rampart-policy</importBundleDef>
                                <importBundleDef>org.apache.rampart.wso2:rampart-core</importBundleDef>
                                <importBundleDef>org.apache.rampart.wso2:rampart-trust</importBundleDef>
                                <importBundleDef>org.wso2.carbon:org.wso2.carbon.application.upload</importBundleDef>
                            </importBundles>
                            <importFeatures>
                                <importFeatureDef>org.wso2.carbon.core.server:${wso2carbon.version}</importFeatureDef>
				<importFeatureDef>org.wso2.carbon.identity.authenticator.saml2.sso.server:${carbon.version}</importFeatureDef>
				<importFeatureDef>org.wso2.carbon.registry.core.server:${carbon.version}</importFeatureDef>
                            </importFeatures>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>

    <properties>
	<json.patch.version.200-wso2v1>2.0.0.wso2v1</json.patch.version.200-wso2v1>
	<kaptcha.patch.version.230-wso2v1>2.3.0.wso2v1</kaptcha.patch.version.230-wso2v1>
	<carbon.version>4.2.0</carbon.version>
	<carbon.platform.version>4.2.0</carbon.platform.version>
	<stratos.version>2.2.0</stratos.version>
	<stratos.keystore.version>2.2.1</stratos.keystore.version>
	<stratos.activation.version>2.2.1</stratos.activation.version>
     </properties>

</project>
