<?xml version="1.0" encoding="utf-8"?>
<!--
 ~ Copyright (c) WSO2 Inc. (http://wso2.com) 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.am</groupId>
        <artifactId>am-p2-profile-gen-parent</artifactId>
        <version>4.3.0-beta</version>
        <relativePath>../pom.xml</relativePath>
    </parent>

    <modelVersion>4.0.0</modelVersion>
    <artifactId>am-p2-profile</artifactId>
    <packaging>pom</packaging>
    <name>WSO2 API Manager - P2 Profile Generation</name>
    <url>http://www.wso2.org</url>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-dependency-plugin</artifactId>
                <inherited>false</inherited>
                <executions>
                    <execution>
                        <id>1-unpack-p2-agent-distribution</id>
                        <phase>test</phase>
                        <goals>
                            <goal>unpack</goal>
                        </goals>
                        <configuration>
                            <artifactItems>
                                <artifactItem>
                                    <groupId>org.wso2.carbon</groupId>
                                    <artifactId>wso2carbon-core</artifactId>
                                    <version>${carbon.kernel.version}</version>
                                    <type>zip</type>
                                    <overWrite>true</overWrite>
                                    <outputDirectory>target</outputDirectory>
                                </artifactItem>
                            </artifactItems>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.wso2.maven</groupId>
                <artifactId>carbon-p2-plugin</artifactId>
                <executions>
                    <execution>
                        <id>2-p2-repo-generation</id>
                        <phase>package</phase>
                        <goals>
                            <goal>p2-repo-gen</goal>
                        </goals>
                        <configuration>
                            <p2AgentLocation>${basedir}/target/p2-agent</p2AgentLocation>
                            <metadataRepository>file:${basedir}/target/p2-repo</metadataRepository>
                            <artifactRepository>file:${basedir}/target/p2-repo</artifactRepository>
                            <publishArtifacts>true</publishArtifacts>
                            <publishArtifactRepository>true</publishArtifactRepository>
                            <featureArtifacts>
                                <featureArtifactDef>
                                    org.wso2.carbon.mediation:org.wso2.carbon.mediation.ui.feature:${carbon.mediation.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.mediation:org.wso2.carbon.mediation.ui.feature:${carbon.mediation.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.commons:org.wso2.carbon.tenant.mgt.common.feature:${carbon.commons.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon:org.wso2.carbon.core.feature:${carbon.kernel.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.framework:org.wso2.carbon.identity.application.mgt.server.feature:${carbon.identity.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.governance:org.wso2.carbon.identity.recovery.server.feature:${carbon.identity.governance.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.governance:org.wso2.carbon.identity.user.server.feature:${carbon.identity.governance.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.governance:org.wso2.carbon.identity.governance.server.feature:${carbon.identity.governance.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.governance:org.wso2.carbon.identity.captcha.server.feature:${carbon.identity.governance.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.governance:org.wso2.carbon.identity.password.policy.server.feature:${carbon.identity.governance.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.saml.common:org.wso2.carbon.identity.saml.common.util.feature:${saml.common.util.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.event.handler.accountlock:org.wso2.carbon.identity.handler.event.account.lock.feature:${carbon.identity.event.handler.account.lock.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.governance:org.wso2.carbon.identity.tenant.resource.manager.feature:${carbon.identity.governance.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.event.handler.notification:org.wso2.carbon.event.handler.notification.server.feature:${carbon.identity.event.handler.notification.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.event.handler.notification:org.wso2.carbon.email.mgt.feature:${carbon.identity.event.handler.notification.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.framework:org.wso2.carbon.identity.mgt.server.feature:${carbon.identity.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.framework:org.wso2.carbon.identity.configuration.mgt.server.feature:${carbon.identity.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.framework:org.wso2.carbon.identity.functions.library.mgt.feature:${carbon.identity.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.framework:org.wso2.carbon.identity.event.server.feature:${carbon.identity.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.framework:org.wso2.carbon.identity.template.mgt.feature:${carbon.identity.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.framework:org.wso2.carbon.identity.functions.library.mgt.feature:${carbon.identity.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.apache.axis2.transport:org.apache.axis2.transport.mail.feature:${axis2-transports.wso2.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon:org.wso2.carbon.core.runtime.feature:${carbon.kernel.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.framework:org.wso2.carbon.identity.user.profile.feature:${carbon.identity.version}
                                </featureArtifactDef>

                                <featureArtifactDef>
                                    org.wso2.carbon.analytics-common:org.wso2.carbon.databridge.datapublisher.feature:${carbon.analytics.common.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.apimgt:org.wso2.carbon.apimgt.jms.listener.feature:${carbon.apimgt.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.apimgt:org.wso2.carbon.apimgt.throttle.policy.deployer.feature:${carbon.apimgt.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.apimgt:org.wso2.carbon.apimgt.scxml.feature:${carbon.apimgt.version}
                                </featureArtifactDef>

                                <featureArtifactDef>
                                    org.wso2.carbon.analytics-common:org.wso2.carbon.databridge.datareceiver.feature:${carbon.analytics.common.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.analytics-common:org.wso2.carbon.databridge.streamdefn.filesystem.server.feature:${carbon.analytics.common.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.analytics-common:org.wso2.carbon.event.output.adapter.email.server.feature:${carbon.analytics.common.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.analytics-common:org.wso2.carbon.event.output.adapter.jms.server.feature:${carbon.analytics.common.version}
                                </featureArtifactDef>

                                <featureArtifactDef>
                                    org.wso2.carbon.analytics-common:org.wso2.carbon.event.output.adapter.server.feature:${carbon.analytics.common.version}
                                </featureArtifactDef>

                                <featureArtifactDef>
                                    org.wso2.carbon.commons:org.wso2.carbon.system.statistics.server.feature:${carbon.commons.version}
                                </featureArtifactDef>


                                <featureArtifactDef>
                                    org.wso2.carbon.identity.framework:org.wso2.carbon.security.mgt.feature:${carbon.identity.version}
                                </featureArtifactDef>

                                <featureArtifactDef>
                                    org.wso2.carbon.identity.framework:org.wso2.carbon.security.mgt.server.feature:${carbon.identity.version}
                                </featureArtifactDef>

                                <featureArtifactDef>
                                    org.wso2.carbon.identity.framework:org.wso2.carbon.identity.role.mgt.core.server.feature:${carbon.identity.version}
                                </featureArtifactDef>


                           

                              
                                <featureArtifactDef>
                                    org.wso2.carbon.registry:org.wso2.carbon.registry.core.feature:${carbon.registry.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.registry:org.wso2.carbon.registry.core.server.feature:${carbon.registry.version}
                                </featureArtifactDef>

                                <featureArtifactDef>
                                    org.wso2.carbon.registry:org.wso2.carbon.registry.ui.menu.feature:${carbon.registry.version}
                                </featureArtifactDef>

                                <featureArtifactDef>
                                    org.wso2.carbon.registry:org.wso2.carbon.registry.resource.properties.feature:${carbon.registry.version}
                                </featureArtifactDef>


                                <featureArtifactDef>
                                    org.apache.synapse:org.apache.synapse.wso2.feature:${synapse.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.apache.synapse:org.apache.synapse.transport.nhttp.feature:${synapse.version}
                                </featureArtifactDef>


                                <featureArtifactDef>
                                    org.wso2.carbon.mediation:org.wso2.carbon.task.server.feature:${carbon.mediation.version}
                                </featureArtifactDef>

                                <featureArtifactDef>
                                    org.wso2.carbon.mediation:org.wso2.carbon.mediation.initializer.feature:${carbon.mediation.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.mediation:org.wso2.carbon.integrator.server.feature:${carbon.mediation.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.mediation:org.wso2.carbon.mediation.admin.feature:${carbon.mediation.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.mediation:org.wso2.carbon.inbound.endpoints.server.feature:${carbon.mediation.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.commons:org.wso2.carbon.ndatasource.feature:${carbon.commons.version}
                                </featureArtifactDef>

                                <featureArtifactDef>
                                    org.wso2.carbon.mediation:org.wso2.carbon.mediation.configadmin.server.feature:${carbon.mediation.version}
                                </featureArtifactDef>


                                <featureArtifactDef>
                                    org.wso2.carbon.mediation:org.wso2.carbon.mediators.server.feature:${carbon.mediation.version}
                                </featureArtifactDef>
                   
                                <featureArtifactDef>org.wso2.am:org.wso2.am.styles.feature:${apimserver.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.mediation:org.wso2.carbon.relay.feature:${carbon.mediation.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.commons:org.wso2.carbon.event.server.feature:${carbon.commons.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.commons:org.wso2.carbon.event.common.feature:${carbon.commons.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.registry:org.wso2.carbon.registry.associations.dependencies.feature:${carbon.registry.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.registry:org.wso2.carbon.registry.community.features.feature:${carbon.registry.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.mediation:org.wso2.carbon.application.mgt.synapse.server.feature:${carbon.mediation.version}
                                </featureArtifactDef>

                                <featureArtifactDef>
                                    org.wso2.carbon.mediation:org.wso2.carbon.application.deployer.synapse.feature:${carbon.mediation.version}
                                </featureArtifactDef>
                          	<featureArtifactDef>
                                    org.wso2.carbon.commons:org.wso2.carbon.deployment.synchronizer.feature:${carbon.commons.version}
                                </featureArtifactDef>


                                <!--API Management related feature-->

                                <featureArtifactDef>
                                    org.wso2.carbon.apimgt:org.wso2.carbon.apimgt.feature:${carbon.apimgt.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.apimgt:org.wso2.carbon.apimgt.gateway.feature:${carbon.apimgt.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.apimgt.ui:apim.ui.apps.portals:${carbon.apimgt.ui.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.apimgt:org.wso2.carbon.apimgt.internal.service.feature:${carbon.apimgt.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.am:org.wso2.am.multitenancy.dashboard.ui.feature:${apimserver.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.am:org.wso2.am.security.feature:${apimserver.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.am:org.wso2.carbon.identity.local.auth.api.endpoint.feature:${apimserver.version}
                                </featureArtifactDef>

                                <featureArtifactDef>
                                    org.wso2.carbon.apimgt:org.wso2.carbon.apimgt.cache.invalidation.feature:${carbon.apimgt.version}
                                </featureArtifactDef>
                                <!-- Registry Features -->

                                <featureArtifactDef>
                                    org.wso2.carbon.governance:org.wso2.carbon.registry.extensions.server.feature:${carbon.governance.version}
                                </featureArtifactDef>


                                <featureArtifactDef>
                                    org.wso2.carbon.registry:org.wso2.carbon.registry.handler.configuration.ui.feature:${carbon.registry.version}
                                </featureArtifactDef>

                                <featureArtifactDef>
                                    org.wso2.carbon.registry:org.wso2.carbon.registry.ws.feature:${carbon.registry.version}
                                </featureArtifactDef>

                                <!--Governance Feature-->
                                <featureArtifactDef>
                                    org.wso2.carbon.governance:org.wso2.carbon.governance.metadata.feature:${carbon.governance.version}
                                </featureArtifactDef>

                                <!-- Cloud API Manager related features -->
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.carbon.auth.saml2:org.wso2.carbon.identity.authenticator.saml2.sso.server.feature:${carbon.identity.carbon.auth.saml2.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.carbon.auth.saml2:org.wso2.carbon.identity.authenticator.saml2.sso.ui.feature:${carbon.identity.carbon.auth.saml2.version}
                                </featureArtifactDef>

                                <!--Identity Feature-->
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.framework:org.wso2.carbon.user.mgt.feature:${carbon.identity.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.framework:org.wso2.carbon.identity.core.feature:${carbon.identity.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.inbound.auth.openid:org.wso2.carbon.identity.provider.server.feature:${carbon.identity-inbound-auth-openid.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.framework:org.wso2.carbon.identity.user.registration.server.feature:${carbon.identity.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.inbound.auth.oauth2:org.wso2.carbon.identity.oauth.feature:${carbon.identity-inbound-auth-oauth.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.datapublisher.authentication:org.wso2.carbon.identity.data.publisher.application.authentication.server.feature:${carbon.identity-data-publisher-application-authentication.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.inbound.auth.oauth2:org.wso2.carbon.identity.oauth.ui.feature:${carbon.identity-inbound-auth-oauth.version}
                                </featureArtifactDef>
                              	<featureArtifactDef>
                                    org.wso2.carbon.identity.application.auth.basic:org.wso2.carbon.identity.application.authenticator.basicauth.server.feature:${carbon.identity-local-auth-basicauth.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.outbound.auth.saml2:org.wso2.carbon.identity.application.authenticator.samlsso.server.feature:${carbon.identity-outbound-auth-samlsso.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.framework:org.wso2.carbon.identity.application.authentication.framework.server.feature:${carbon.identity.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.user.ws:org.wso2.carbon.um.ws.service.server.feature:${carbon.identity-user-ws.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.user.ws:org.wso2.carbon.um.ws.service.client.feature:${carbon.identity-user-ws.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.framework:org.wso2.carbon.directory.service.mgr.feature:${carbon.identity.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.metadata.saml2:org.wso2.carbon.identity.idp.metadata.saml2.server.feature:${carbon.identity-metadata-saml2.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.commons:org.wso2.carbon.ntask.core.feature:${carbon.commons.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.deployment:org.wso2.carbon.module.mgt.server.feature:${carbon.deployment.version}
                                </featureArtifactDef>
               	             	<!-- as runtime features-->
                                <featureArtifactDef>
                                    org.wso2.carbon.deployment:org.wso2.carbon.as.runtimes.cxf3.feature:${carbon.deployment.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.deployment:org.wso2.carbon.webapp.mgt.server.feature:${carbon.deployment.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.framework:org.wso2.carbon.identity.mgt.feature:${carbon.identity.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.framework:org.wso2.carbon.claim.mgt.feature:${carbon.identity.version}
                                </featureArtifactDef>                                
                                <featureArtifactDef>
                                    org.wso2.carbon.deployment:org.wso2.carbon.webapp.mgt.server.feature:${carbon.deployment.version}
                                </featureArtifactDef>                            
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.framework:org.wso2.carbon.idp.mgt.feature:${carbon.identity.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.registry:org.wso2.carbon.registry.contentsearch.feature:${carbon.registry.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.data.publisher.oauth:org.wso2.carbon.identity.data.publisher.oauth.server.feature:${carbon.identity-data-publisher-oauth.version}
                                </featureArtifactDef>

                                <!-- Carbon-MultiTenancy-->
                                <featureArtifactDef>
                                    org.wso2.carbon.multitenancy:org.wso2.carbon.tenant.common.feature:${carbon.multitenancy.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.multitenancy:org.wso2.carbon.tenant.usage.agent.feature:${carbon.multitenancy.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.multitenancy:org.wso2.carbon.tenant.throttling.agent.feature:${carbon.multitenancy.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.multitenancy:org.wso2.carbon.tenant.deployment.feature:${carbon.multitenancy.version}
                                </featureArtifactDef>

                                <featureArtifactDef>
                                    org.wso2.carbon:org.wso2.carbon.core.ui.feature:${carbon.kernel.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.framework:org.wso2.carbon.identity.notification.mgt.feature:${carbon.identity.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.framework:org.wso2.carbon.identity.xacml.server.feature:${carbon.identity.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.framework:org.wso2.carbon.identity.thrift.authentication.feature:${carbon.identity.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.framework:org.wso2.carbon.identity.application.mgt.feature:${carbon.identity.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.carbon.auth.saml2:org.wso2.carbon.identity.authenticator.saml2.sso.feature:${carbon.identity.carbon.auth.saml2.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.framework:org.wso2.carbon.identity.provisioning.server.feature:${carbon.identity.version}
                                </featureArtifactDef>

                                <!--Asset Devportal Feature list -->

                                <featureArtifactDef>
                                    org.wso2.carbon.registry:org.wso2.carbon.registry.task.feature:${carbon.registry.version}
                                </featureArtifactDef>


                                <featureArtifactDef>
                                    org.wso2.carbon.apimgt:org.wso2.carbon.apimgt.rest.api.publisher.feature:${carbon.apimgt.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.apimgt:org.wso2.carbon.apimgt.rest.api.service.catalog.feature:${carbon.apimgt.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.apimgt:org.wso2.carbon.apimgt.rest.api.store.feature:${carbon.apimgt.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.apimgt:org.wso2.carbon.apimgt.rest.api.admin.feature:${carbon.apimgt.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.apimgt:org.wso2.carbon.apimgt.rest.api.gateway.feature:${carbon.apimgt.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.apimgt:org.wso2.carbon.apimgt.rest.api.devops.feature:${carbon.apimgt.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.apimgt:org.wso2.carbon.apimgt.rest.api.dcr.feature:${carbon.apimgt.version}
                                </featureArtifactDef>

                                <featureArtifactDef>
                                org.wso2.ciphertool:org.wso2.ciphertool.feature:${cipher.tool.version}
                                </featureArtifactDef>

                                <featureArtifactDef>
                                    org.wso2.carbon.metrics:org.wso2.carbon.metrics.server.feature:${carbon.metrics.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.apimgt:org.wso2.carbon.apimgt.throttling.siddhi.extension.feature:${carbon.apimgt.version}
                                </featureArtifactDef>

                                <!-- MB Features -->
                                <featureArtifactDef>
                                    org.wso2.carbon.messaging:org.wso2.carbon.andes.server.feature:${carbon.messaging.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.metrics:org.wso2.carbon.metrics.feature:${carbon.metrics.version}
                                </featureArtifactDef>

                                <!-- CEP based features -->
                                <featureArtifactDef>
                                    org.wso2.carbon.analytics-common:org.wso2.carbon.event.processor.manager.core.feature:${carbon.analytics.common.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.analytics-common:org.wso2.carbon.event.processor.manager.commons.feature:${carbon.analytics.common.version}
                                </featureArtifactDef>

                                <featureArtifactDef>
                                    org.wso2.carbon.analytics-common:org.wso2.carbon.event.receiver.feature:${carbon.analytics.common.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.analytics-common:org.wso2.carbon.event.publisher.feature:${carbon.analytics.common.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.analytics-common:org.wso2.carbon.event.publisher.aggregate.feature:${carbon.analytics.common.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.event-processing:org.wso2.carbon.event.processor.server.feature:${carbon.event-processing.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.event-processing:org.wso2.carbon.event.flow.feature:${carbon.event-processing.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.analytics-common:org.wso2.carbon.event.statistics.feature:${carbon.analytics.common.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.analytics-common:org.wso2.carbon.event.stream.feature:${carbon.analytics.common.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.analytics-common:org.wso2.carbon.event.application.deployer.feature:${carbon.analytics.common.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.mediation:org.wso2.carbon.websocket.feature:${carbon.mediation.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.mediation:org.wso2.carbon.mediator.cache.server.feature:${carbon.mediation.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.mediation:org.wso2.carbon.identity.xacml.mediator.feature:${carbon.mediation.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.mediation:org.wso2.carbon.mediator.publishevent.server.feature:${carbon.mediation.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.consent.mgt:org.wso2.carbon.consent.mgt.server.feature:${carbon.consent.mgt.version}
                                </featureArtifactDef>
                                <!-- Consent management features -->
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.framework:org.wso2.carbon.identity.consent.mgt.server.feature:${carbon.identity.version}
                                </featureArtifactDef>                                
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.auth.rest:org.wso2.carbon.identity.auth.server.feature:${carbon.identity.auth.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.auth.rest:org.wso2.carbon.identity.authz.server.feature:${carbon.identity.auth.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.auth.rest:org.wso2.carbon.identity.context.rewrite.server.feature:${carbon.identity.auth.version}
                                </featureArtifactDef>
                                <!--CORS-->
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.framework:org.wso2.carbon.identity.cors.mgt.server.feature:${carbon.identity.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.auth.rest:org.wso2.carbon.identity.cors.server.feature:${identity.carbon.auth.rest.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.utils:org.wso2.carbon.database.utils.feature:${carbon.database.utils.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.apimgt:org.wso2.carbon.apimgt.tracing.feature:${carbon.apimgt.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.commons:org.wso2.carbon.logging.remote.config.mgt.feature:${carbon.commons.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.commons:org.wso2.carbon.logging.appender.http.feature:${carbon.commons.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.commons:org.wso2.carbon.logging.viewer.feature:${carbon.commons.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.commons:org.wso2.carbon.logging.updater.feature:${carbon.commons.version}
                                </featureArtifactDef>
                                <!-- Authentication portal feature -->
                                <featureArtifactDef>
                                    org.wso2.identity.apps:org.wso2.identity.apps.authentication.portal.server.feature:${identity.apps.version}
                                </featureArtifactDef>
                                <!-- Recovery portal feature -->
                                <featureArtifactDef>
                                    org.wso2.identity.apps:org.wso2.identity.apps.recovery.portal.server.feature:${identity.apps.version}
                                </featureArtifactDef>
                                <!-- WSO2 IS key manager feature -->
                                <featureArtifactDef>
                                    org.wso2.km.ext.wso2is:wso2is.key.manager.feature:${wso2is.km.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.km.ext.wso2is:wso2is.key.manager.operations.endpoint.feature:${wso2is.km.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.km.ext.wso2is:wso2is.key.manager.notification.feature:${wso2is.km.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.km.ext.wso2is:wso2is.key.manager.tokenpersistence.feature:${wso2is.km.version}
                                </featureArtifactDef>
                                <!-- WSO2 IS 7 key manager feature -->
                                <featureArtifactDef>
                                    org.wso2.km.ext.wso2is:wso2is7.key.manager.feature:${wso2is7.km.version}
                                </featureArtifactDef>
                                <!-- Okta KeyManager Feature -->
                                <featureArtifactDef>
                                    org.wso2.km.ext.okta:okta.key.manager.feature:${okta.keymanager.feature.version}
                                </featureArtifactDef>
                                <!-- Azure KeyManager Feature -->
                                <featureArtifactDef>
                                    org.wso2.km.ext.azure:feature:${azure.keymanager.feature.version}
                                </featureArtifactDef>
                                <!-- KeyCloak KeyManager Feature -->
                                <featureArtifactDef>
                                    org.wso2.km.ext.keycloak:keycloak.key.manager.feature:${keycloak.keymanager.feature.version}
                                </featureArtifactDef>
                                <!-- Auth0 KeyManager Feature -->
                                <featureArtifactDef>
                                    org.wso2.km.ext.auth0:auth0.key.manager.feature:${auth0.keymanager.feature.version}
                                </featureArtifactDef>
                                <!-- PingFederate KeyManager Feature -->
                                <featureArtifactDef>
                                    org.wso2.km.ext.pingfederate:pingfederate.key.manager.feature:${pingfederate.keymanager.feature.version}
                                </featureArtifactDef>
                                <!-- ForgeRock KeyManager Feature -->
                                <featureArtifactDef>
                                    org.wso2.km.ext.forgerock:forgerock.key.manager.feature:${forgerock.keymanager.feature.version}
                                </featureArtifactDef>

                                <featureArtifactDef>
                                    org.wso2.carbon.extension.identity.oauth2.grantType.token.exchange:org.wso2.carbon.extension.identity.oauth2.token.exchange.feature:${carbon.extension.identity.oauth2.grantType.token.exchange}
                                </featureArtifactDef>

                                <featureArtifactDef>
                                    org.wso2.carbon.identity.framework:org.wso2.carbon.identity.user.functionality.mgt.feature:${carbon.identity.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.apimgt:org.wso2.carbon.apimgt.persistence.feature:${carbon.apimgt.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.am.analytics.publisher:org.wso2.am.analytics.publisher.client.feature:${apim.analytics.publisher.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.apimgt:org.wso2.carbon.apimgt.eventing.feature:${carbon.apimgt.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.apimgt:org.wso2.carbon.apimgt.eventing.hub.feature:${carbon.apimgt.version}
                                </featureArtifactDef>

                                <!-- Multi Attribute Login feature -->
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.framework:org.wso2.carbon.identity.multi.attribute.login.mgt.server.feature:${carbon.identity.version}
                                </featureArtifactDef>
                                <!-- Multi Attribute Login (osgi service impl)feature -->
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.governance:org.wso2.carbon.identity.multi.attribute.login.service.server.feature:${carbon.identity.governance.version}
                                </featureArtifactDef>
                                <!-- Transport HTTP-Netty -->
                                <featureArtifactDef>
                                    org.wso2.transport.http:org.wso2.transport.http.netty.feature:${transport.http.netty.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.framework:org.wso2.carbon.identity.central.log.mgt.server.feature:${carbon.identity.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.organization.management:org.wso2.carbon.identity.organization.management.server.feature:${identity.org.mgt.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.organization.management.core:org.wso2.carbon.identity.organization.management.core.server.feature:${identity.org.mgt.core.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.outbound.auth.oidc:org.wso2.carbon.identity.application.authenticator.oidc.server.feature:${identity.outbound.auth.oidc.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                        org.wso2.carbon.identity.framework:org.wso2.carbon.identity.workflow.mgt.server.feature:${carbon.identity.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.framework:org.wso2.carbon.identity.user.store.configuration.server.feature:${carbon.identity.version}
                                </featureArtifactDef>
                                <!-- Identity Branding Preference Management feature -->
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.branding.preference.management:org.wso2.carbon.identity.branding.preference.management.core.server.feature:${identity.branding.preference.management.version}
                                </featureArtifactDef>

                            </featureArtifacts>
                        </configuration>
                    </execution>

                    <execution>
                        <id>publishing product</id>
                        <phase>package</phase>
                        <goals>
                            <goal>publish-product</goal>
                        </goals>
                        <configuration>
                            <productConfigurationFile>${basedir}/carbon.product
                            </productConfigurationFile>
                            <executable>
                                ${basedir}/target/org.eclipse.equinox.executable_3.5.0.v20110530-7P7NFUFFLWUl76mart
                            </executable>
                            <metadataRepository>file:${basedir}/target/p2-repo</metadataRepository>
                            <artifactRepository>file:${basedir}/target/p2-repo</artifactRepository>
                        </configuration>
                    </execution>

                    <execution>
                        <id>creating-gateway-worker-profile</id>
                        <phase>package</phase>
                        <goals>
                            <goal>materialize-product</goal>
                        </goals>
                        <configuration>
                            <productConfigurationFile>${basedir}/carbon.product</productConfigurationFile>
                            <metadataRepository>file:${basedir}/target/p2-repo</metadataRepository>
                            <artifactRepository>file:${basedir}/target/p2-repo</artifactRepository>
                            <targetPath>
                                file:${basedir}/target/wso2carbon-core-${carbon.kernel.version}/repository/components
                            </targetPath>
                            <profile>gateway-worker</profile>
                        </configuration>
                    </execution>

                    <execution>
                        <id>creating-key-manager-profile</id>
                        <phase>package</phase>
                        <goals>
                            <goal>materialize-product</goal>
                        </goals>
                        <configuration>
                            <productConfigurationFile>${basedir}/carbon.product</productConfigurationFile>
                            <metadataRepository>file:${basedir}/target/p2-repo</metadataRepository>
                            <artifactRepository>file:${basedir}/target/p2-repo</artifactRepository>
                            <targetPath>
                                file:${basedir}/target/wso2carbon-core-${carbon.kernel.version}/repository/components
                            </targetPath>
                            <profile>api-key-manager-deprecated</profile>
                        </configuration>
                    </execution>

                    <execution>
                        <id>p2-profile-generation-api-publisher-profile</id>
                        <phase>package</phase>
                        <goals>
                            <goal>materialize-product</goal>
                        </goals>
                        <configuration>
                            <productConfigurationFile>${basedir}/carbon.product</productConfigurationFile>
                            <metadataRepository>file:${basedir}/target/p2-repo</metadataRepository>
                            <artifactRepository>file:${basedir}/target/p2-repo</artifactRepository>
                            <targetPath>
                                file:${basedir}/target/wso2carbon-core-${carbon.kernel.version}/repository/components
                            </targetPath>
                            <profile>api-publisher-deprecated</profile>
                        </configuration>
                    </execution>

                    <execution>
                        <id>p2-profile-generation-api-devportal-profile</id>
                        <phase>package</phase>
                        <goals>
                            <goal>materialize-product</goal>
                        </goals>
                        <configuration>
                            <productConfigurationFile>${basedir}/carbon.product</productConfigurationFile>
                            <metadataRepository>file:${basedir}/target/p2-repo</metadataRepository>
                            <artifactRepository>file:${basedir}/target/p2-repo</artifactRepository>
                            <targetPath>
                                file:${basedir}/target/wso2carbon-core-${carbon.kernel.version}/repository/components
                            </targetPath>
                            <profile>api-devportal-deprecated</profile>
                        </configuration>
                    </execution>

                    <execution>
                        <id>materializing-traffic-manager</id>
                        <phase>package</phase>
                        <goals>
                            <goal>materialize-product</goal>
                        </goals>
                        <configuration>
                            <productConfigurationFile>${basedir}/carbon.product</productConfigurationFile>
                            <metadataRepository>file:${basedir}/target/p2-repo</metadataRepository>
                            <artifactRepository>file:${basedir}/target/p2-repo</artifactRepository>
                            <targetPath>
                                file:${basedir}/target/wso2carbon-core-${carbon.kernel.version}/repository/components
                            </targetPath>
                            <profile>traffic-manager</profile>
                        </configuration>
                    </execution>

                    <execution>
                        <id>creating-control-plane-profile</id>
                        <phase>package</phase>
                        <goals>
                            <goal>materialize-product</goal>
                        </goals>
                        <configuration>
                            <productConfigurationFile>${basedir}/carbon.product</productConfigurationFile>
                            <metadataRepository>file:${basedir}/target/p2-repo</metadataRepository>
                            <artifactRepository>file:${basedir}/target/p2-repo</artifactRepository>
                            <targetPath>
                                file:${basedir}/target/wso2carbon-core-${carbon.kernel.version}/repository/components
                            </targetPath>
                            <profile>control-plane</profile>
                        </configuration>
                    </execution>

                    <!--Start default profile-->
                    <execution>
                        <id>3-p2-profile-generation</id>
                        <phase>package</phase>
                        <goals>
                            <goal>p2-profile-gen</goal>
                        </goals>
                        <configuration>
                            <profile>default</profile>
                            <p2AgentLocation>${basedir}/target/p2-agent</p2AgentLocation>
                            <metadataRepository>file:${basedir}/target/p2-repo</metadataRepository>
                            <artifactRepository>file:${basedir}/target/p2-repo</artifactRepository>
                            <destination>
                                ${basedir}/target/wso2carbon-core-${carbon.kernel.version}/repository/components
                            </destination>
                            <deleteOldProfileFiles>true</deleteOldProfileFiles>
                            <features>


                                <feature>
                                    <id>org.wso2.carbon.core.feature.group</id>
                                    <version>${carbon.kernel.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.tenant.mgt.common.feature.group</id>
                                    <version>${carbon.commons.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.logging.remote.config.mgt.feature.group</id>
                                    <version>${carbon.commons.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.logging.appender.http.feature.group</id>
                                    <version>${carbon.commons.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.logging.view.feature.group</id>
                                    <version>${carbon.commons.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.logging.updater.feature.group</id>
                                    <version>${carbon.commons.version}</version>
                                </feature>
                                <feature>
                                    <id>org.apache.axis2.transport.mail.feature.group</id>
                                    <version>${axis2-transports.wso2.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.notification.mgt.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.password.policy.server.feature.group</id>
                                    <version>${carbon.identity.governance.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.xacml.server.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.thrift.authentication.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                <id>org.wso2.carbon.identity.event.server.feature.group</id>
                                <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.recovery.server.feature.group</id>
                                    <version>${carbon.identity.governance.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.workflow.mgt.server.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.user.server.feature.group</id>
                                    <version>${carbon.identity.governance.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.governance.server.feature.group</id>
                                    <version>${carbon.identity.governance.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.captcha.server.feature.group</id>
                                    <version>${carbon.identity.governance.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.tenant.resource.manager</id>
                                    <version>${carbon.identity.governance.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.event.handler.notification.server.feature.group</id>
                                    <version>${carbon.identity.event.handler.notification.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.email.mgt.feature.group</id>
                                    <version>${carbon.identity.event.handler.notification.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.mgt.server.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.configuration.mgt.server.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.provisioning.server.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.application.mgt.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.organization.management.server.feature.group</id>
                                    <version>${identity.org.mgt.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.organization.management.core.server.feature.group</id>
                                    <version>${identity.org.mgt.core.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.central.log.mgt.server.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.as.runtimes.cxf3.feature.group</id>
                                    <version>${carbon.deployment.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.webapp.mgt.server.feature.group</id>
                                    <version>${carbon.deployment.version}</version>
                                </feature>
                              
                                <feature>
                                    <id>org.wso2.carbon.ntask.core.feature.group</id>
                                    <version>${carbon.commons.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.module.mgt.server.feature.group</id>
                                    <version>${carbon.deployment.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.databridge.datapublisher.feature.group</id>
                                    <version>${carbon.analytics.common.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.databridge.datareceiver.feature.group</id>
                                    <version>${carbon.analytics.common.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.databridge.streamdefn.filesystem.server.feature.group</id>
                                    <version>${carbon.analytics.common.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.event.output.adapter.server.feature.group</id>
                                    <version>${carbon.analytics.common.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.event.output.adapter.email.server.feature.group</id>
                                    <version>${carbon.analytics.common.version}</version>
                                </feature>
                                <feature>
                                    <id>org.apache.synapse.wso2.feature.group</id>
                                    <version>${synapse.version}</version>
                                </feature>
                                <feature>
                                    <id>org.apache.synapse.transport.nhttp.feature.group</id>
                                    <version>${synapse.version}</version>
                                </feature>
                               
                                <feature>
                                    <id>org.wso2.carbon.task.server.feature.group</id>
                                    <version>${carbon.mediation.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.mediation.initializer.feature.group</id>
                                    <version>${carbon.mediation.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.integrator.server.feature.group</id>
                                    <version>${carbon.mediation.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.mediation.admin.feature.group</id>
                                    <version>${carbon.mediation.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.inbound.endpoints.server.feature.group</id>
                                    <version>${carbon.mediation.version}</version>
                                </feature>

                                <feature>
                                    <id>org.wso2.carbon.mediation.configadmin.server.feature.group</id>
                                    <version>${carbon.mediation.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.application.mgt.synapse.server.feature.group</id>
                                    <version>${carbon.mediation.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.application.deployer.synapse.feature.group</id>
                                    <version>${carbon.mediation.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.system.statistics.server.feature.group</id>
                                    <version>${carbon.commons.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.security.mgt.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.security.mgt.server.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.functions.library.mgt.server.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.template.mgt.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.template.mgt.server.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.data.publisher.application.authentication.server.feature.group</id>
                                    <version>${carbon.identity-data-publisher-application-authentication.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.local.auth.api.endpoint.feature.group</id>
                                    <version>${apimserver.version}</version>
                                </feature>

                                <feature>
                                    <id>org.wso2.carbon.registry.core.feature.group</id>
                                    <version>${carbon.registry.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.registry.core.server.feature.group</id>
                                    <version>${carbon.registry.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.registry.ui.menu.feature.group</id>
                                    <version>${carbon.registry.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.registry.resource.properties.feature.group</id>
                                    <version>${carbon.registry.version}</version>
                                </feature>
                              
                                <feature>
                                    <id>org.wso2.carbon.mediators.server.feature.group</id>
                                    <version>${carbon.mediation.version}</version>
                                </feature>
                            
                                <feature>
                                    <id>org.wso2.carbon.relay.server.feature.group</id>
                                    <version>${carbon.mediation.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.am.styles.feature.group</id>
                                    <version>${apimserver.version}</version>
                                </feature>
                                
                                <feature>
                                    <id>org.wso2.am.multitenancy.dashboard.ui.feature.group</id>
                                    <version>${apimserver.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.am.security.feature.group</id>
                                    <version>${apimserver.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.event.server.feature.group</id>
                                    <version>${carbon.commons.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.event.common.feature.group</id>
                                    <version>${carbon.commons.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.registry.associations.dependencies.feature.group</id>
                                    <version>${carbon.registry.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.provider.server.feature.group</id>
                                    <version>${carbon.identity-inbound-auth-openid.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.oauth.feature.group</id>
                                    <version>${carbon.identity-inbound-auth-oauth.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.saml.common.util.feature.group</id>
                                    <version>${saml.common.util.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.application.authenticator.basicauth.server.feature.group</id>
                                    <version>${carbon.identity-local-auth-basicauth.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.application.authenticator.samlsso.server.feature.group</id>
                                    <version>${carbon.identity-outbound-auth-samlsso.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.application.authentication.framework.server.feature.group
                                    </id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.user.registration.server.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.idp.metadata.saml2.server.feature.group</id>
                                    <version>${carbon.identity-metadata-saml2.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.tenant.mgt.common.server.feature.group</id>
                                    <version>${carbon.commons.version}</version>
                                </feature>
                               
                                <feature>
                                    <id>org.wso2.carbon.deployment.synchronizer.feature.group</id>
                                    <version>${carbon.commons.version}</version>
                                </feature>

                                <feature>
                                    <id>org.wso2.carbon.websocket.feature.group</id>
                                    <version>${carbon.mediation.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.mediator.cache.server.feature.group</id>
                                    <version>${carbon.mediation.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.xacml.mediator.feature.group</id>
                                    <version>${carbon.mediation.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.mediator.publishevent.server.feature.group</id>
                                    <version>${carbon.mediation.version}</version>
                                </feature>

                                <feature>
                                    <id>org.wso2.carbon.registry.ws.feature.group</id>
                                    <version>${carbon.registry.version}</version>
                                </feature>
                                <!--API Management related feature-->

                                <feature>
                                    <id>org.wso2.carbon.apimgt.feature.group</id>
                                    <version>${carbon.apimgt.version}</version>
                                </feature>

                                <feature>
                                    <id>org.wso2.carbon.apimgt.gateway.feature.group</id>
                                    <version>${carbon.apimgt.version}</version>
                                </feature>

                                <!--Registry Feature-->
                                <feature>
                                    <id>org.wso2.carbon.registry.extensions.server.feature.group</id>
                                    <version>${carbon.governance.version}</version>
                                </feature>
                                <!-- Transport HTTP-Netty -->
                                <feature>
                                    <id>org.wso2.transport.http.netty.feature.group</id>
                                    <version>${transport.http.netty.version}</version>
                                </feature>

                             
                                <!--Governance Feature-->

                                <feature>
                                    <id>org.wso2.carbon.governance.metadata.feature.group</id>
                                    <version>${carbon.governance.version}</version>
                                </feature>


                                <!--Identity Feature-->
                                <feature>
                                    <id>org.wso2.carbon.user.mgt.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.core.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
				                <feature>
                                    <id>org.wso2.carbon.um.ws.service.server.feature.group</id>
                                    <version>${carbon.identity-user-ws.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.um.ws.service.client.feature.group</id>
                                    <version>${carbon.identity-user-ws.version}</version>
                                </feature>
				                <feature>
                                    <id>org.wso2.carbon.directory.service.mgr.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.claim.mgt.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                
                                <feature>
                                    <id>org.wso2.carbon.identity.authenticator.saml2.sso.server.feature.group</id>
                                    <version>${carbon.identity.carbon.auth.saml2.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.authenticator.saml2.sso.ui.feature.group</id>
                                    <version>${carbon.identity.carbon.auth.saml2.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.webapp.mgt.server.feature.group</id>
                                    <version>${carbon.deployment.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.registry.contentsearch.feature.group</id>
                                    <version>${carbon.registry.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.idp.mgt.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.tenant.common.feature.group</id>
                                    <version>${carbon.multitenancy.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.tenant.usage.agent.feature.group</id>
                                    <version>${carbon.multitenancy.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.tenant.throttling.agent.feature.group</id>
                                    <version>${carbon.multitenancy.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.tenant.deployment.feature.group</id>
                                    <version>${carbon.multitenancy.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.ndatasource.feature.group</id>
                                    <version>${carbon.commons.version}</version>
                                </feature>

                                <feature>
                                    <id>org.wso2.carbon.apimgt.rest.api.publisher.feature.group</id>
                                    <version>${carbon.apimgt.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.apimgt.rest.api.service.catalog.feature.group</id>
                                    <version>${carbon.apimgt.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.apimgt.rest.api.store.feature.group</id>
                                    <version>${carbon.apimgt.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.apimgt.rest.api.gateway.feature.group</id>
                                    <version>${carbon.apimgt.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.apimgt.rest.api.devops.feature.group</id>
                                    <version>${carbon.apimgt.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.apimgt.rest.api.admin.feature.group</id>
                                    <version>${carbon.apimgt.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.apimgt.rest.api.dcr.feature.group</id>
                                    <version>${carbon.apimgt.version}</version>
                                </feature>
				                <feature>
                                    <id>org.wso2.ciphertool.feature.group</id>
                                    <version>${cipher.tool.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.metrics.server.feature.group</id>
                                    <version>${carbon.metrics.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.apimgt.throttling.siddhi.extension.feature.group</id>
                                    <version>${carbon.apimgt.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.apimgt.jms.listener.feature.group</id>
                                    <version>${carbon.apimgt.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.apimgt.cache.invalidation.feature.group</id>
                                    <version>${carbon.apimgt.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.apimgt.throttle.policy.deployer.feature.group</id>
                                    <version>${carbon.apimgt.version}</version>
                                </feature>
				                <feature>
                                    <id>org.wso2.carbon.identity.user.profile.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.data.publisher.oauth.server.feature.group</id>
                                    <version>${carbon.identity-data-publisher-oauth.version}</version>
                                </feature>

                                <!-- Token Exchange grant feature-->
                                <feature>
                                    <id>org.wso2.carbon.extension.identity.oauth2.token.exchange.feature.group</id>
                                    <version>${carbon.extension.identity.oauth2.grantType.token.exchange}</version>
                                </feature>

                                <!-- MB features -->
                                <feature>
                                    <id>org.wso2.carbon.andes.server.feature.group</id>
                                    <version>${carbon.messaging.version}</version>
                                </feature>

                                <!-- CEP features -->
                                <feature>
                                    <id>org.wso2.carbon.event.receiver.feature.group</id>
                                    <version>${carbon.analytics.common.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.event.publisher.feature.group</id>
                                    <version>${carbon.analytics.common.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.event.publisher.aggregate.feature.group</id>
                                    <version>${carbon.analytics.common.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.event.processor.server.feature.group</id>
                                    <version>${carbon.event-processing.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.event.flow.feature.group</id>
                                    <version>${carbon.event-processing.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.event.statistics.feature.group</id>
                                    <version>${carbon.analytics.common.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.event.stream.feature.group</id>
                                    <version>${carbon.analytics.common.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.event.application.deployer.feature.group
                                    </id>
                                    <version>${carbon.analytics.common.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.event.processor.manager.core.feature.group</id>
                                    <version>${carbon.analytics.common.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.event.processor.manager.commons.feature.group</id>
                                    <version>${carbon.analytics.common.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.mgt.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>

                                <!-- Consent Management dependency -->
                                <feature>
                                    <id>org.wso2.carbon.consent.mgt.server.feature.group</id>
                                    <version>${carbon.consent.mgt.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.database.utils.feature.group</id>
                                    <version>${carbon.database.utils.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.consent.mgt.server.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.auth.server.feature.group</id>
                                    <version>${carbon.identity.auth.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.authz.server.feature.group</id>
                                    <version>${carbon.identity.auth.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.context.rewrite.server.feature.group</id>
                                    <version>${carbon.identity.auth.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.cors.mgt.server.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.cors.server.feature.group</id>
                                    <version>${identity.carbon.auth.rest.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.apimgt.tracing.feature.group</id>
                                    <version>${carbon.apimgt.version}</version>
                                </feature>
                                <!-- Identity app features -->
                                <feature>
                                    <id>org.wso2.identity.apps.authentication.portal.server.feature.group</id>
                                    <version>${identity.apps.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.identity.apps.recovery.portal.server.feature.group</id>
                                    <version>${identity.apps.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.apimgt.internal.service.feature.group</id>
                                    <version>${carbon.apimgt.version}</version>
                                </feature>
                                <feature>
                                    <id>wso2is7.key.manager.feature.group</id>
                                    <version>${wso2is7.km.version}</version>
                                </feature>
                                <feature>
                                    <id>wso2is.key.manager.feature.group</id>
                                    <version>${wso2is.km.version}</version>
                                </feature>
                                <feature>
                                    <id>wso2is.key.manager.notification.feature.group</id>
                                    <version>${wso2is.km.version}</version>
                                </feature>
                                <feature>
                                    <id>wso2is.key.manager.operations.endpoint.feature.group</id>
                                    <version>${wso2is.km.version}</version>
                                </feature>
                                <feature>
                                    <id>wso2is.key.manager.tokenpersistence.feature.group</id>
                                    <version>${wso2is.km.version}</version>
                                </feature>
                                <feature>
                                    <id>okta.key.manager.feature.group</id>
                                    <version>${okta.keymanager.feature.version}</version>
                                </feature>
                                <feature>
                                    <id>azure.key.manager.feature.group</id>
                                    <version>${azure.keymanager.feature.version}</version>
                                </feature>
                                <feature>
                                    <id>keycloak.key.manager.feature.group</id>
                                    <version>${keycloak.keymanager.feature.version}</version>
                                </feature>
                                <feature>
                                    <id>auth0.key.manager.feature.group</id>
                                    <version>${auth0.keymanager.feature.version}</version>
                                </feature>
                                <feature>
                                    <id>pingfederate.key.manager.feature.group</id>
                                    <version>${pingfederate.keymanager.feature.version}</version>
                                </feature>
                                <feature>
                                    <id>forgerock.key.manager.feature.group</id>
                                    <version>${forgerock.keymanager.feature.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.role.mgt.core.server.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.am.security.feature.group</id>
                                    <version>${apimserver.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.user.functionality.mgt.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.apimgt.persistence.feature.group</id>
                                    <version>${carbon.apimgt.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.am.analytics.publisher.client.feature.group</id>
                                    <version>${apim.analytics.publisher.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.apimgt.eventing.feature.group</id>
                                    <version>${carbon.apimgt.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.apimgt.eventing.hub.feature.group</id>
                                    <version>${carbon.apimgt.version}</version>
                                </feature>

                                <feature>
                                    <id>
                                        org.wso2.carbon.identity.multi.attribute.login.mgt.server.feature.group
                                    </id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.multi.attribute.login.service.server.feature.group</id>
                                    <version>${carbon.identity.governance.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.user.store.configuration.server.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.branding.preference.management.core.server.feature.group</id>
                                    <version>${identity.branding.preference.management.version}</version>
                                </feature>
                            </features>
                        </configuration>
                    </execution>
                    <!--End of default profile-->

                    <!--Start Control plane profile-->
                    <execution>
                        <id>4-p2-profile-generation</id>
                        <phase>package</phase>
                        <goals>
                            <goal>p2-profile-gen</goal>
                        </goals>
                        <configuration>
                            <profile>control-plane</profile>
                            <p2AgentLocation>${basedir}/target/p2-agent</p2AgentLocation>
                            <metadataRepository>file:${basedir}/target/p2-repo</metadataRepository>
                            <artifactRepository>file:${basedir}/target/p2-repo</artifactRepository>
                            <destination>
                                ${basedir}/target/wso2carbon-core-${carbon.kernel.version}/repository/components
                            </destination>
                            <deleteOldProfileFiles>true</deleteOldProfileFiles>
                            <features>

                                <feature>
                                    <id>org.wso2.carbon.core.feature.group</id>
                                    <version>${carbon.kernel.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.tenant.mgt.common.feature.group</id>
                                    <version>${carbon.commons.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.logging.remote.config.mgt.feature.group</id>
                                    <version>${carbon.commons.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.logging.appender.http.feature.group</id>
                                    <version>${carbon.commons.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.logging.view.feature.group</id>
                                    <version>${carbon.commons.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.logging.updater.feature.group</id>
                                    <version>${carbon.commons.version}</version>
                                </feature>
                                <feature>
                                    <id>org.apache.axis2.transport.mail.feature.group</id>
                                    <version>${axis2-transports.wso2.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.notification.mgt.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.password.policy.server.feature.group</id>
                                    <version>${carbon.identity.governance.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.xacml.server.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.thrift.authentication.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.event.server.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.recovery.server.feature.group</id>
                                    <version>${carbon.identity.governance.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.workflow.mgt.server.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.user.server.feature.group</id>
                                    <version>${carbon.identity.governance.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.governance.server.feature.group</id>
                                    <version>${carbon.identity.governance.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.captcha.server.feature.group</id>
                                    <version>${carbon.identity.governance.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.tenant.resource.manager</id>
                                    <version>${carbon.identity.governance.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.event.handler.notification.server.feature.group</id>
                                    <version>${carbon.identity.event.handler.notification.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.email.mgt.feature.group</id>
                                    <version>${carbon.identity.event.handler.notification.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.mgt.server.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.configuration.mgt.server.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.provisioning.server.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.application.mgt.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.organization.management.server.feature.group</id>
                                    <version>${identity.org.mgt.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.central.log.mgt.server.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.as.runtimes.cxf3.feature.group</id>
                                    <version>${carbon.deployment.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.webapp.mgt.server.feature.group</id>
                                    <version>${carbon.deployment.version}</version>
                                </feature>

                                <feature>
                                    <id>org.wso2.carbon.ntask.core.feature.group</id>
                                    <version>${carbon.commons.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.module.mgt.server.feature.group</id>
                                    <version>${carbon.deployment.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.databridge.datapublisher.feature.group</id>
                                    <version>${carbon.analytics.common.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.databridge.datareceiver.feature.group</id>
                                    <version>${carbon.analytics.common.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.databridge.streamdefn.filesystem.server.feature.group</id>
                                    <version>${carbon.analytics.common.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.event.output.adapter.server.feature.group</id>
                                    <version>${carbon.analytics.common.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.event.output.adapter.email.server.feature.group</id>
                                    <version>${carbon.analytics.common.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.system.statistics.server.feature.group</id>
                                    <version>${carbon.commons.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.security.mgt.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.security.mgt.server.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.functions.library.mgt.server.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.template.mgt.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.template.mgt.server.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.data.publisher.application.authentication.server.feature.group</id>
                                    <version>${carbon.identity-data-publisher-application-authentication.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.local.auth.api.endpoint.feature.group</id>
                                    <version>${apimserver.version}</version>
                                </feature>

                                <feature>
                                    <id>org.wso2.carbon.registry.core.feature.group</id>
                                    <version>${carbon.registry.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.registry.core.server.feature.group</id>
                                    <version>${carbon.registry.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.registry.ui.menu.feature.group</id>
                                    <version>${carbon.registry.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.registry.resource.properties.feature.group</id>
                                    <version>${carbon.registry.version}</version>
                                </feature>


                                <feature>
                                    <id>org.wso2.am.styles.feature.group</id>
                                    <version>${apimserver.version}</version>
                                </feature>

                                <feature>
                                    <id>org.wso2.am.multitenancy.dashboard.ui.feature.group</id>
                                    <version>${apimserver.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.event.server.feature.group</id>
                                    <version>${carbon.commons.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.event.common.feature.group</id>
                                    <version>${carbon.commons.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.registry.associations.dependencies.feature.group</id>
                                    <version>${carbon.registry.version}</version>
                                </feature>

                                <feature>
                                    <id>org.wso2.carbon.identity.provider.server.feature.group</id>
                                    <version>${carbon.identity-inbound-auth-openid.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.oauth.feature.group</id>
                                    <version>${carbon.identity-inbound-auth-oauth.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.saml.common.util.feature.group</id>
                                    <version>${saml.common.util.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.application.authenticator.basicauth.server.feature.group</id>
                                    <version>${carbon.identity-local-auth-basicauth.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.application.authenticator.samlsso.server.feature.group</id>
                                    <version>${carbon.identity-outbound-auth-samlsso.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.application.authentication.framework.server.feature.group
                                    </id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.user.registration.server.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.idp.metadata.saml2.server.feature.group</id>
                                    <version>${carbon.identity-metadata-saml2.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.tenant.mgt.common.server.feature.group</id>
                                    <version>${carbon.commons.version}</version>
                                </feature>

                                <feature>
                                    <id>org.wso2.carbon.deployment.synchronizer.feature.group</id>
                                    <version>${carbon.commons.version}</version>
                                </feature>


                                <feature>
                                    <id>org.wso2.carbon.registry.ws.feature.group</id>
                                    <version>${carbon.registry.version}</version>
                                </feature>
                                <!--API Management related feature-->

                                <feature>
                                    <id>org.wso2.carbon.apimgt.feature.group</id>
                                    <version>${carbon.apimgt.version}</version>
                                </feature>

                                <!--Registry Feature-->
                                <feature>
                                    <id>org.wso2.carbon.registry.extensions.server.feature.group</id>
                                    <version>${carbon.governance.version}</version>
                                </feature>


                                <!--Governance Feature-->

                                <feature>
                                    <id>org.wso2.carbon.governance.metadata.feature.group</id>
                                    <version>${carbon.governance.version}</version>
                                </feature>


                                <!--Identity Feature-->
                                <feature>
                                    <id>org.wso2.carbon.user.mgt.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.core.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.um.ws.service.server.feature.group</id>
                                    <version>${carbon.identity-user-ws.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.um.ws.service.client.feature.group</id>
                                    <version>${carbon.identity-user-ws.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.directory.service.mgr.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.claim.mgt.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>

                                <feature>
                                    <id>org.wso2.carbon.identity.authenticator.saml2.sso.server.feature.group</id>
                                    <version>${carbon.identity.carbon.auth.saml2.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.authenticator.saml2.sso.ui.feature.group</id>
                                    <version>${carbon.identity.carbon.auth.saml2.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.webapp.mgt.server.feature.group</id>
                                    <version>${carbon.deployment.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.registry.contentsearch.feature.group</id>
                                    <version>${carbon.registry.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.idp.mgt.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.tenant.common.feature.group</id>
                                    <version>${carbon.multitenancy.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.tenant.usage.agent.feature.group</id>
                                    <version>${carbon.multitenancy.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.tenant.throttling.agent.feature.group</id>
                                    <version>${carbon.multitenancy.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.tenant.deployment.feature.group</id>
                                    <version>${carbon.multitenancy.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.ndatasource.feature.group</id>
                                    <version>${carbon.commons.version}</version>
                                </feature>

                                <feature>
                                    <id>org.wso2.carbon.apimgt.rest.api.publisher.feature.group</id>
                                    <version>${carbon.apimgt.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.apimgt.rest.api.service.catalog.feature.group</id>
                                    <version>${carbon.apimgt.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.apimgt.rest.api.store.feature.group</id>
                                    <version>${carbon.apimgt.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.apimgt.rest.api.devops.feature.group</id>
                                    <version>${carbon.apimgt.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.apimgt.rest.api.admin.feature.group</id>
                                    <version>${carbon.apimgt.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.apimgt.rest.api.dcr.feature.group</id>
                                    <version>${carbon.apimgt.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.metrics.server.feature.group</id>
                                    <version>${carbon.metrics.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.apimgt.throttling.siddhi.extension.feature.group</id>
                                    <version>${carbon.apimgt.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.apimgt.jms.listener.feature.group</id>
                                    <version>${carbon.apimgt.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.apimgt.cache.invalidation.feature.group</id>
                                    <version>${carbon.apimgt.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.apimgt.throttle.policy.deployer.feature.group</id>
                                    <version>${carbon.apimgt.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.user.profile.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.data.publisher.oauth.server.feature.group</id>
                                    <version>${carbon.identity-data-publisher-oauth.version}</version>
                                </feature>

                                <!-- Token Exchange grant feature-->
                                <feature>
                                    <id>org.wso2.carbon.extension.identity.oauth2.token.exchange.feature.group</id>
                                    <version>${carbon.extension.identity.oauth2.grantType.token.exchange}</version>
                                </feature>

                                <!-- MB features -->
                                <feature>
                                    <id>org.wso2.carbon.andes.server.feature.group</id>
                                    <version>${carbon.messaging.version}</version>
                                </feature>

                                <!-- CEP features -->
                                <feature>
                                    <id>org.wso2.carbon.event.receiver.feature.group</id>
                                    <version>${carbon.analytics.common.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.event.publisher.feature.group</id>
                                    <version>${carbon.analytics.common.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.event.publisher.aggregate.feature.group</id>
                                    <version>${carbon.analytics.common.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.event.processor.server.feature.group</id>
                                    <version>${carbon.event-processing.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.event.flow.feature.group</id>
                                    <version>${carbon.event-processing.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.event.statistics.feature.group</id>
                                    <version>${carbon.analytics.common.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.event.stream.feature.group</id>
                                    <version>${carbon.analytics.common.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.event.application.deployer.feature.group
                                    </id>
                                    <version>${carbon.analytics.common.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.event.processor.manager.core.feature.group</id>
                                    <version>${carbon.analytics.common.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.event.processor.manager.commons.feature.group</id>
                                    <version>${carbon.analytics.common.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.mgt.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>

                                <!-- Consent Management dependency -->
                                <feature>
                                    <id>org.wso2.carbon.consent.mgt.server.feature.group</id>
                                    <version>${carbon.consent.mgt.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.database.utils.feature.group</id>
                                    <version>${carbon.database.utils.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.consent.mgt.server.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.auth.server.feature.group</id>
                                    <version>${carbon.identity.auth.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.authz.server.feature.group</id>
                                    <version>${carbon.identity.auth.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.context.rewrite.server.feature.group</id>
                                    <version>${carbon.identity.auth.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.cors.mgt.server.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.cors.server.feature.group</id>
                                    <version>${identity.carbon.auth.rest.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.apimgt.tracing.feature.group</id>
                                    <version>${carbon.apimgt.version}</version>
                                </feature>
                                <!-- Identity app features -->
                                <feature>
                                    <id>org.wso2.identity.apps.authentication.portal.server.feature.group</id>
                                    <version>${identity.apps.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.identity.apps.recovery.portal.server.feature.group</id>
                                    <version>${identity.apps.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.apimgt.internal.service.feature.group</id>
                                    <version>${carbon.apimgt.version}</version>
                                </feature>
                                <feature>
                                    <id>wso2is7.key.manager.feature.group</id>
                                    <version>${wso2is7.km.version}</version>
                                </feature>
                                <feature>
                                    <id>wso2is.key.manager.feature.group</id>
                                    <version>${wso2is.km.version}</version>
                                </feature>
                                <feature>
                                    <id>wso2is.key.manager.notification.feature.group</id>
                                    <version>${wso2is.km.version}</version>
                                </feature>
                                <feature>
                                    <id>wso2is.key.manager.operations.endpoint.feature.group</id>
                                    <version>${wso2is.km.version}</version>
                                </feature>
                                <feature>
                                    <id>wso2is.key.manager.tokenpersistence.feature.group</id>
                                    <version>${wso2is.km.version}</version>
                                </feature>
                                <feature>
                                    <id>okta.key.manager.feature.group</id>
                                    <version>${okta.keymanager.feature.version}</version>
                                </feature>
                                <feature>
                                    <id>azure.key.manager.feature.group</id>
                                    <version>${azure.keymanager.feature.version}</version>
                                </feature>
                                <feature>
                                    <id>keycloak.key.manager.feature.group</id>
                                    <version>${keycloak.keymanager.feature.version}</version>
                                </feature>
                                <feature>
                                    <id>auth0.key.manager.feature.group</id>
                                    <version>${auth0.keymanager.feature.version}</version>
                                </feature>
                                <feature>
                                    <id>pingfederate.key.manager.feature.group</id>
                                    <version>${pingfederate.keymanager.feature.version}</version>
                                </feature>
                                <feature>
                                    <id>forgerock.key.manager.feature.group</id>
                                    <version>${forgerock.keymanager.feature.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.role.mgt.core.server.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.am.security.feature.group</id>
                                    <version>${apimserver.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.user.functionality.mgt.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.apimgt.persistence.feature.group</id>
                                    <version>${carbon.apimgt.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.am.analytics.publisher.client.feature.group</id>
                                    <version>${apim.analytics.publisher.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.apimgt.eventing.feature.group</id>
                                    <version>${carbon.apimgt.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.apimgt.eventing.hub.feature.group</id>
                                    <version>${carbon.apimgt.version}</version>
                                </feature>

                                <feature>
                                    <id>
                                        org.wso2.carbon.identity.multi.attribute.login.mgt.server.feature.group
                                    </id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.multi.attribute.login.service.server.feature.group</id>
                                    <version>${carbon.identity.governance.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.user.store.configuration.server.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                            </features>
                        </configuration>
                    </execution>
                    <!--End of control plane profile-->

                    <!--Start of gateway worker profile-->
                    <execution>
                        <id>p2-profile-generation-for-gateway-worker-profile</id>
                        <phase>package</phase>
                        <goals>
                            <goal>p2-profile-gen</goal>
                        </goals>
                        <configuration>
                            <profile>gateway-worker</profile>
                            <metadataRepository>file:${basedir}/target/p2-repo</metadataRepository>
                            <artifactRepository>file:${basedir}/target/p2-repo</artifactRepository>
                            <destination>
                                ${basedir}/target/wso2carbon-core-${carbon.kernel.version}/repository/components
                            </destination>
                            <deleteOldProfileFiles>true</deleteOldProfileFiles>
                            <features>
                                <feature>
                                    <id>org.wso2.carbon.tenant.mgt.common.feature.group</id>
                                    <version>${carbon.commons.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.logging.remote.config.mgt.feature.group</id>
                                    <version>${carbon.commons.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.logging.appender.http.feature.group</id>
                                    <version>${carbon.commons.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.logging.view.feature.group</id>
                                    <version>${carbon.commons.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.logging.updater.feature.group</id>
                                    <version>${carbon.commons.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.core.feature.group</id>
                                    <version>${carbon.kernel.version}</version>
                                </feature>
                                <feature>
                                    <id>org.apache.axis2.transport.mail.feature.group</id>
                                    <version>${axis2-transports.wso2.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.andes.server.feature.group</id>
                                    <version>${carbon.messaging.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.notification.mgt.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.xacml.server.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.thrift.authentication.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.core.common.feature.group</id>
                                    <version>${carbon.kernel.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.core.server.feature.group</id>
                                    <version>${carbon.kernel.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.core.runtime.feature.group</id>
                                    <version>${carbon.kernel.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.ntask.core.feature.group</id>
                                    <version>${carbon.commons.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.module.mgt.server.feature.group</id>
                                    <version>${carbon.deployment.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.databridge.datapublisher.feature.group</id>
                                    <version>${carbon.analytics.common.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.event.output.adapter.server.feature.group</id>
                                    <version>${carbon.analytics.common.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.event.output.adapter.email.server.feature.group</id>
                                    <version>${carbon.analytics.common.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.event.output.adapter.wso2event.server.feature.group</id>
                                    <version>${carbon.analytics.common.version}</version>
                                </feature>
                                <feature>
                                        <id>org.wso2.carbon.event.publisher.feature.group</id>
                                        <version>${carbon.analytics.common.version}</version>
                                    </feature>
                                <feature>
                                    <id>org.wso2.carbon.event.publisher.aggregate.feature.group</id>
                                    <version>${carbon.analytics.common.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.system.statistics.server.feature.group</id>
                                    <version>${carbon.commons.version}</version>
                                </feature>
                                <feature>
                                    <id>org.apache.synapse.wso2.feature.group</id>
                                    <version>${synapse.version}</version>
                                </feature>
                                <feature>
                                    <id>org.apache.synapse.transport.nhttp.feature.group</id>
                                    <version>${synapse.version}</version>
                                </feature>
                               
                                <feature>
                                    <id>org.wso2.carbon.task.server.feature.group</id>
                                    <version>${carbon.mediation.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.mediation.initializer.feature.group</id>
                                    <version>${carbon.mediation.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.integrator.server.feature.group</id>
                                    <version>${carbon.mediation.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.mediation.admin.feature.group</id>
                                    <version>${carbon.mediation.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.inbound.endpoints.server.feature.group</id>
                                    <version>${carbon.mediation.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.mediation.configadmin.server.feature.group</id>
                                    <version>${carbon.mediation.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.application.mgt.synapse.server.feature.group</id>
                                    <version>${carbon.mediation.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.application.deployer.synapse.feature.group</id>
                                    <version>${carbon.mediation.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.security.mgt.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>

                                <feature>
                                    <id>org.wso2.carbon.registry.core.feature.group</id>
                                    <version>${carbon.registry.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.registry.core.server.feature.group</id>
                                    <version>${carbon.registry.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.registry.ui.menu.feature.group</id>
                                    <version>${carbon.registry.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.registry.resource.properties.feature.group</id>
                                    <version>${carbon.registry.version}</version>
                                </feature>
                               
                                <feature>
                                    <id>org.wso2.carbon.mediators.server.feature.group</id>
                                    <version>${carbon.mediation.version}</version>
                                </feature>
                               
                                <feature>
                                    <id>org.wso2.carbon.relay.server.feature.group</id>
                                    <version>${carbon.mediation.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.am.styles.feature.group</id>
                                    <version>${apimserver.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.am.multitenancy.dashboard.ui.feature.group</id>
                                    <version>${apimserver.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.event.server.feature.group</id>
                                    <version>${carbon.commons.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.event.common.feature.group</id>
                                    <version>${carbon.commons.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.registry.associations.dependencies.feature.group</id>
                                    <version>${carbon.registry.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.provider.server.feature.group</id>
                                    <version>${carbon.identity-inbound-auth-openid.version}</version>
                                </feature>

                                <feature>
                                    <id>org.wso2.carbon.identity.oauth.feature.group</id>
                                    <version>${carbon.identity-inbound-auth-oauth.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.saml.common.util.feature.group</id>
                                    <version>${saml.common.util.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.application.authenticator.samlsso.server.feature.group</id>
                                    <version>${carbon.identity-outbound-auth-samlsso.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.user.registration.server.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                
                                <feature>
                                    <id>org.wso2.carbon.deployment.synchronizer.feature.group</id>
                                    <version>${carbon.commons.version}</version>
                                </feature>

                                <feature>
                                    <id>org.wso2.carbon.registry.ws.feature.group</id>
                                    <version>${carbon.registry.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.registry.extensions.server.feature.group</id>
                                    <version>${carbon.governance.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.governance.metadata.feature.group</id>
                                    <version>${carbon.governance.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.user.mgt.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.core.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.functions.library.mgt.server.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.template.mgt.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.template.mgt.server.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.um.ws.service.server.feature.group</id>
                                    <version>${carbon.identity-user-ws.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.um.ws.service.client.feature.group</id>
                                    <version>${carbon.identity-user-ws.version}</version>
                                </feature>
				                <feature>
                                    <id>org.wso2.carbon.directory.service.mgr.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                
                                <feature>
                                    <id>org.wso2.carbon.apimgt.gateway.feature.group</id>
                                    <version>${carbon.apimgt.version}</version>
                                </feature>

                                <feature>
                                    <id>org.wso2.carbon.apimgt.eventing.feature.group</id>
                                    <version>${carbon.apimgt.version}</version>
                                </feature>

                                <feature>
                                    <id>org.wso2.carbon.apimgt.eventing.hub.feature.group</id>
                                    <version>${carbon.apimgt.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.apimgt.rest.api.gateway.feature.group</id>
                                    <version>${carbon.apimgt.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.apimgt.core.feature.group</id>
                                    <version>${carbon.apimgt.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.apimgt.keymanager.feature.group</id>
                                    <version>${carbon.apimgt.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.registry.contentsearch.feature.group</id>
                                    <version>${carbon.registry.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.application.authentication.framework.server.feature.group
                                    </id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.tenant.mgt.common.server.feature.group</id>
                                    <version>${carbon.commons.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.tenant.common.feature.group</id>
                                    <version>${carbon.multitenancy.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.tenant.usage.agent.feature.group</id>
                                    <version>${carbon.multitenancy.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.tenant.throttling.agent.feature.group</id>
                                    <version>${carbon.multitenancy.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.tenant.deployment.feature.group</id>
                                    <version>${carbon.multitenancy.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.ndatasource.feature.group</id>
                                    <version>${carbon.commons.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.apimgt.tracing.feature.group</id>
                                    <version>${carbon.apimgt.version}</version>
                                </feature>
				                <feature>
                                    <id>org.wso2.carbon.webapp.mgt.server.feature.group</id>
                                    <version>${carbon.deployment.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.metrics.server.feature.group</id>
                                    <version>${carbon.metrics.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.apimgt.jms.listener.feature.group</id>
                                    <version>${carbon.apimgt.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.apimgt.cache.invalidation.feature.group</id>
                                    <version>${carbon.apimgt.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.user.profile.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>

                                <feature>
                                    <id>org.wso2.carbon.websocket.feature.group</id>
                                    <version>${carbon.mediation.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.mediator.cache.server.feature.group</id>
                                    <version>${carbon.mediation.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.xacml.mediator.feature.group</id>
                                    <version>${carbon.mediation.version}</version>
                                </feature>
                                <!-- Consent Management dependency -->
                                <feature>
                                    <id>org.wso2.carbon.consent.mgt.server.feature.group</id>
                                    <version>${carbon.consent.mgt.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.database.utils.feature.group</id>
                                    <version>${carbon.database.utils.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.auth.server.feature.group</id>
                                    <version>${carbon.identity.auth.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.authz.server.feature.group</id>
                                    <version>${carbon.identity.auth.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.context.rewrite.server.feature.group</id>
                                    <version>${carbon.identity.auth.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.cors.mgt.server.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.cors.server.feature.group</id>
                                    <version>${identity.carbon.auth.rest.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.email.mgt.feature.group</id>
                                    <version>${carbon.identity.event.handler.notification.version}</version>
                                </feature>
                                <feature>
                                    <id>wso2is7.key.manager.feature.group</id>
                                    <version>${wso2is7.km.version}</version>
                                </feature>
                                <feature>
                                    <id>wso2is.key.manager.feature.group</id>
                                    <version>${wso2is.km.version}</version>
                                </feature>
                                <feature>
                                    <id>okta.key.manager.feature.group</id>
                                    <version>${okta.keymanager.feature.version}</version>
                                </feature>
                                <feature>
                                    <id>azure.key.manager.feature.group</id>
                                    <version>${azure.keymanager.feature.version}</version>
                                </feature>
                                <feature>
                                    <id>keycloak.key.manager.feature.group</id>
                                    <version>${keycloak.keymanager.feature.version}</version>
                                </feature>
                                <feature>
                                    <id>auth0.key.manager.feature.group</id>
                                    <version>${auth0.keymanager.feature.version}</version>
                                </feature>
                                <feature>
                                    <id>pingfederate.key.manager.feature.group</id>
                                    <version>${pingfederate.keymanager.feature.version}</version>
                                </feature>
                                <feature>
                                    <id>forgerock.key.manager.feature.group</id>
                                    <version>${forgerock.keymanager.feature.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.role.mgt.core.server.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.am.security.feature.group</id>
                                    <version>${apimserver.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.system.statistics.server.feature.group</id>
                                    <version>${carbon.commons.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.user.functionality.mgt.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.am.analytics.publisher.client.feature.group</id>
                                    <version>${apim.analytics.publisher.version}</version>
                                </feature>
                                <feature>
                                    <id>
                                        org.wso2.carbon.identity.multi.attribute.login.mgt.server.feature.group
                                    </id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.multi.attribute.login.service.server.feature.group</id>
                                    <version>${carbon.identity.governance.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.event.application.deployer.feature.group</id>
                                    <version>${carbon.analytics.common.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.event.stream.server.feature.group</id>
                                    <version>${carbon.analytics.common.version}</version>
                                </feature>
                                <!-- Transport HTTP-Netty -->
                                <feature>
                                    <id>org.wso2.transport.http.netty.feature.group</id>
                                    <version>${transport.http.netty.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.organization.management.server.feature.group</id>
                                    <version>${identity.org.mgt.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.user.store.configuration.server.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                            </features>
                        </configuration>
                    </execution>
                    <!--End of gateway worker profile-->

                    <!--Start of api devportal profile-->
                    <execution>
                        <id>p2-profile-generation-for-api-devportal-profile</id>
                        <phase>package</phase>
                        <goals>
                            <goal>p2-profile-gen</goal>
                        </goals>
                        <configuration>
                            <profile>api-devportal-deprecated</profile>
                            <metadataRepository>file:${basedir}/target/p2-repo</metadataRepository>
                            <artifactRepository>file:${basedir}/target/p2-repo</artifactRepository>
                            <destination>
                                ${basedir}/target/wso2carbon-core-${carbon.kernel.version}/repository/components
                            </destination>
                            <deleteOldProfileFiles>true</deleteOldProfileFiles>
                            <features>
                                <feature>
                                    <id>org.wso2.carbon.tenant.mgt.common.feature.group</id>
                                    <version>${carbon.commons.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.logging.remote.config.mgt.feature.group</id>
                                    <version>${carbon.commons.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.logging.appender.http.feature.group</id>
                                    <version>${carbon.commons.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.logging.view.feature.group</id>
                                    <version>${carbon.commons.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.logging.updater.feature.group</id>
                                    <version>${carbon.commons.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.core.feature.group</id>
                                    <version>${carbon.kernel.version}</version>
                                </feature>
                                <feature>
                                    <id>org.apache.axis2.transport.mail.feature.group</id>
                                    <version>${axis2-transports.wso2.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.notification.mgt.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.password.policy.server.feature.group</id>
                                    <version>${carbon.identity.governance.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.xacml.server.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.thrift.authentication.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.core.common.feature.group</id>
                                    <version>${carbon.kernel.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.user.mgt.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.user.profile.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.recovery.server.feature.group</id>
                                    <version>${carbon.identity.governance.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.workflow.mgt.server.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.user.server.feature.group</id>
                                    <version>${carbon.identity.governance.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.governance.server.feature.group</id>
                                    <version>${carbon.identity.governance.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.captcha.server.feature.group</id>
                                    <version>${carbon.identity.governance.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.event.handler.notification.server.feature.group</id>
                                    <version>${carbon.identity.event.handler.notification.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.email.mgt.feature.group</id>
                                    <version>${carbon.identity.event.handler.notification.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.mgt.server.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.provisioning.server.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.core.server.feature.group</id>
                                    <version>${carbon.kernel.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.core.runtime.feature.group</id>
                                    <version>${carbon.kernel.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.core.feature.group</id>
                                    <version>${carbon.kernel.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.core.ui.feature.group</id>
                                    <version>${carbon.kernel.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.as.runtimes.cxf3.feature.group</id>
                                    <version>${carbon.deployment.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.webapp.mgt.server.feature.group</id>
                                    <version>${carbon.deployment.version}</version>
                                </feature>
                               
                                <feature>
                                    <id>org.wso2.carbon.ntask.core.feature.group</id>
                                    <version>${carbon.commons.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.module.mgt.server.feature.group</id>
                                    <version>${carbon.deployment.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.databridge.datapublisher.feature.group</id>
                                    <version>${carbon.analytics.common.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.databridge.datareceiver.feature.group</id>
                                    <version>${carbon.analytics.common.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.databridge.streamdefn.filesystem.server.feature.group</id>
                                    <version>${carbon.analytics.common.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.event.receiver.feature.group</id>
                                    <version>${carbon.analytics.common.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.event.output.adapter.server.feature.group</id>
                                    <version>${carbon.analytics.common.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.event.output.adapter.email.server.feature.group</id>
                                    <version>${carbon.analytics.common.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.event.output.adapter.jms.server.feature.group</id>
                                    <version>${carbon.analytics.common.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.system.statistics.server.feature.group</id>
                                    <version>${carbon.commons.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.security.mgt.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.security.mgt.server.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>

                                <feature>
                                    <id>org.wso2.carbon.registry.core.feature.group</id>
                                    <version>${carbon.registry.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.registry.core.server.feature.group</id>
                                    <version>${carbon.registry.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.registry.ui.menu.feature.group</id>
                                    <version>${carbon.registry.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.registry.resource.properties.feature.group</id>
                                    <version>${carbon.registry.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.am.styles.feature.group</id>
                                    <version>${apimserver.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.am.multitenancy.dashboard.ui.feature.group</id>
                                    <version>${apimserver.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.event.server.feature.group</id>
                                    <version>${carbon.commons.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.event.common.feature.group</id>
                                    <version>${carbon.commons.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.registry.associations.dependencies.feature.group</id>
                                    <version>${carbon.registry.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.provider.server.feature.group</id>
                                    <version>${carbon.identity-inbound-auth-openid.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.oauth.feature.group</id>
                                    <version>${carbon.identity-inbound-auth-oauth.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.saml.common.util.feature.group</id>
                                    <version>${saml.common.util.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.application.authenticator.basicauth.server.feature.group</id>
                                    <version>${carbon.identity-local-auth-basicauth.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.application.authenticator.samlsso.server.feature.group</id>
                                    <version>${carbon.identity-outbound-auth-samlsso.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.application.authentication.framework.server.feature.group
                                    </id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.tenant.mgt.common.server.feature.group</id>
                                    <version>${carbon.commons.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.user.registration.server.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                
                                <feature>
                                    <id>org.wso2.carbon.deployment.synchronizer.feature.group</id>
                                    <version>${carbon.commons.version}</version>
                                </feature>

                                <feature>
                                    <id>org.wso2.carbon.registry.ws.feature.group</id>
                                    <version>${carbon.registry.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.apimgt.core.feature.group</id>
                                    <version>${carbon.apimgt.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.apimgt.rest.api.store.feature.group</id>
                                    <version>${carbon.apimgt.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.apimgt.ui.devportal.feature.group</id>
                                    <version>${carbon.apimgt.ui.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.apimgt.ui.admin.feature.group</id>
                                    <version>${carbon.apimgt.ui.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.apimgt.tokenmgt.feature.group</id>
                                    <version>${carbon.apimgt.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.apimgt.jms.listener.feature.group</id>
                                    <version>${carbon.apimgt.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.apimgt.cache.invalidation.feature.group</id>
                                    <version>${carbon.apimgt.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.data.publisher.application.authentication.server.feature.group</id>
                                    <version>${carbon.identity-data-publisher-application-authentication.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.registry.extensions.server.feature.group</id>
                                    <version>${carbon.governance.version}</version>
                                </feature>

                                <feature>
                                    <id>org.wso2.carbon.governance.metadata.feature.group</id>
                                    <version>${carbon.governance.version}</version>
                                </feature>

                                <feature>
                                    <id>org.wso2.carbon.identity.tenant.resource.manager</id>
                                    <version>${carbon.identity.governance.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.user.mgt.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.core.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.functions.library.mgt.server.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.configuration.mgt.server.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.template.mgt.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.template.mgt.server.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.um.ws.service.server.feature.group</id>
                                    <version>${carbon.identity-user-ws.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.um.ws.service.client.feature.group</id>
                                    <version>${carbon.identity-user-ws.version}</version>
                                </feature>
				                <feature>
                                    <id>org.wso2.carbon.directory.service.mgr.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>	
                                <feature>
                                    <id>org.wso2.carbon.claim.mgt.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>

                              
                                <feature>
                                    <id>org.wso2.carbon.identity.authenticator.saml2.sso.server.feature.group</id>
                                    <version>${carbon.identity.carbon.auth.saml2.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.authenticator.saml2.sso.ui.feature.group</id>
                                    <version>${carbon.identity.carbon.auth.saml2.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.webapp.mgt.server.feature.group</id>
                                    <version>${carbon.deployment.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.registry.contentsearch.feature.group</id>
                                    <version>${carbon.registry.version}</version>
                                </feature>

                                <feature>
                                    <id>org.wso2.carbon.tenant.common.feature.group</id>
                                    <version>${carbon.multitenancy.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.tenant.usage.agent.feature.group</id>
                                    <version>${carbon.multitenancy.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.tenant.throttling.agent.feature.group</id>
                                    <version>${carbon.multitenancy.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.ndatasource.feature.group</id>
                                    <version>${carbon.commons.version}</version>
                                </feature>

                                <feature>
                                    <id>org.wso2.carbon.metrics.server.feature.group</id>
                                    <version>${carbon.metrics.version}</version>
                                </feature>

                                <feature>
                                    <id>org.wso2.carbon.event.output.adapter.wso2event.server.feature.group</id>
                                    <version>${carbon.analytics.common.version}</version>
                                </feature>

                                <feature>
                                    <id>org.wso2.carbon.identity.mgt.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <!-- Consent Management dependency -->
                                <feature>
                                    <id>org.wso2.carbon.consent.mgt.server.feature.group</id>
                                    <version>${carbon.consent.mgt.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.database.utils.feature.group</id>
                                    <version>${carbon.database.utils.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.consent.mgt.server.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.auth.server.feature.group</id>
                                    <version>${carbon.identity.auth.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.authz.server.feature.group</id>
                                    <version>${carbon.identity.auth.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.context.rewrite.server.feature.group</id>
                                    <version>${carbon.identity.auth.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.cors.mgt.server.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.cors.server.feature.group</id>
                                    <version>${identity.carbon.auth.rest.version}</version>
                                </feature>
                                <!-- Identity app features -->
                                <feature>
                                    <id>org.wso2.identity.apps.authentication.portal.server.feature.group</id>
                                    <version>${identity.apps.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.identity.apps.recovery.portal.server.feature.group</id>
                                    <version>${identity.apps.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.apimgt.internal.service.feature.group</id>
                                    <version>${carbon.apimgt.version}</version>
                                </feature>
                                <feature>
                                    <id>wso2is7.key.manager.feature.group</id>
                                    <version>${wso2is7.km.version}</version>
                                </feature>
                                <feature>
                                    <id>wso2is.key.manager.feature.group</id>
                                    <version>${wso2is.km.version}</version>
                                </feature>
                                <feature>
                                    <id>wso2is.key.manager.notification.feature.group</id>
                                    <version>${wso2is.km.version}</version>
                                </feature>
                                <feature>
                                    <id>wso2is.key.manager.tokenpersistence.feature.group</id>
                                    <version>${wso2is.km.version}</version>
                                </feature>
                                <feature>
                                    <id>okta.key.manager.feature.group</id>
                                    <version>${okta.keymanager.feature.version}</version>
                                </feature>
                                <feature>
                                    <id>azure.key.manager.feature.group</id>
                                    <version>${azure.keymanager.feature.version}</version>
                                </feature>
                                <feature>
                                    <id>keycloak.key.manager.feature.group</id>
                                    <version>${keycloak.keymanager.feature.version}</version>
                                </feature>
                                <feature>
                                    <id>auth0.key.manager.feature.group</id>
                                    <version>${auth0.keymanager.feature.version}</version>
                                </feature>
                                <feature>
                                    <id>pingfederate.key.manager.feature.group</id>
                                    <version>${pingfederate.keymanager.feature.version}</version>
                                </feature>
                                <feature>
                                    <id>forgerock.key.manager.feature.group</id>
                                    <version>${forgerock.keymanager.feature.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.role.mgt.core.server.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.am.security.feature.group</id>
                                    <version>${apimserver.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.user.functionality.mgt.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.apimgt.persistence.feature.group</id>
                                    <version>${carbon.apimgt.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.apimgt.eventing.feature.group</id>
                                    <version>${carbon.apimgt.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.apimgt.eventing.hub.feature.group</id>
                                    <version>${carbon.apimgt.version}</version>
                                </feature>

                                <!-- Token Exchange grant feature-->
                                <feature>
                                    <id>org.wso2.carbon.extension.identity.oauth2.token.exchange.feature.group</id>
                                    <version>${carbon.extension.identity.oauth2.grantType.token.exchange}</version>
                                </feature>

                                <feature>
                                    <id>
                                        org.wso2.carbon.identity.multi.attribute.login.mgt.server.feature.group
                                    </id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.multi.attribute.login.service.server.feature.group</id>
                                    <version>${carbon.identity.governance.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.user.store.configuration.server.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                            </features>
                        </configuration>
                    </execution>
                    <!--End of api devportal profile-->

                    <!--Start of api publisher profile-->
                    <execution>
                        <id>p2-profile-generation-for-api-publisher-profile</id>
                        <phase>package</phase>
                        <goals>
                            <goal>p2-profile-gen</goal>
                        </goals>
                        <configuration>
                            <profile>api-publisher-deprecated</profile>
                            <metadataRepository>file:${basedir}/target/p2-repo</metadataRepository>
                            <artifactRepository>file:${basedir}/target/p2-repo</artifactRepository>
                            <destination>
                                ${basedir}/target/wso2carbon-core-${carbon.kernel.version}/repository/components
                            </destination>
                            <deleteOldProfileFiles>true</deleteOldProfileFiles>
                            <features>
                                <feature>
                                    <id>org.wso2.carbon.event.output.adapter.wso2event.server.feature.group</id>
                                    <version>${carbon.analytics.common.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.tenant.mgt.common.feature.group</id>
                                    <version>${carbon.commons.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.logging.remote.config.mgt.feature.group</id>
                                    <version>${carbon.commons.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.logging.appender.http.feature.group</id>
                                    <version>${carbon.commons.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.logging.view.feature.group</id>
                                    <version>${carbon.commons.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.logging.updater.feature.group</id>
                                    <version>${carbon.commons.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.core.feature.group</id>
                                    <version>${carbon.kernel.version}</version>
                                </feature>
                                <feature>
                                    <id>org.apache.axis2.transport.mail.feature.group</id>
                                    <version>${axis2-transports.wso2.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.notification.mgt.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.password.policy.server.feature.group</id>
                                    <version>${carbon.identity.governance.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.xacml.server.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.thrift.authentication.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.tenant.common.feature.group</id>
                                    <version>${carbon.multitenancy.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.tenant.usage.agent.feature.group</id>
                                    <version>${carbon.multitenancy.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.tenant.throttling.agent.feature.group</id>
                                    <version>${carbon.multitenancy.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.tenant.deployment.feature.group</id>
                                    <version>${carbon.multitenancy.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.core.common.feature.group</id>
                                    <version>${carbon.kernel.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.core.server.feature.group</id>
                                    <version>${carbon.kernel.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.core.runtime.feature.group</id>
                                    <version>${carbon.kernel.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.core.feature.group</id>
                                    <version>${carbon.kernel.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.core.ui.feature.group</id>
                                    <version>${carbon.kernel.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.as.runtimes.cxf3.feature.group</id>
                                    <version>${carbon.deployment.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.webapp.mgt.server.feature.group</id>
                                    <version>${carbon.deployment.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.ntask.core.feature.group</id>
                                    <version>${carbon.commons.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.module.mgt.server.feature.group</id>
                                    <version>${carbon.deployment.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.databridge.datapublisher.feature.group</id>
                                    <version>${carbon.analytics.common.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.databridge.datareceiver.feature.group</id>
                                    <version>${carbon.analytics.common.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.databridge.streamdefn.filesystem.server.feature.group</id>
                                    <version>${carbon.analytics.common.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.event.receiver.feature.group</id>
                                    <version>${carbon.analytics.common.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.system.statistics.server.feature.group</id>
                                    <version>${carbon.commons.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.security.mgt.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.security.mgt.server.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>

                                <feature>
                                    <id>org.wso2.carbon.registry.core.feature.group</id>
                                    <version>${carbon.registry.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.registry.core.server.feature.group</id>
                                    <version>${carbon.registry.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.registry.ui.menu.feature.group</id>
                                    <version>${carbon.registry.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.registry.resource.properties.feature.group</id>
                                    <version>${carbon.registry.version}</version>
                                </feature>
                              
                                <feature>
                                    <id>org.wso2.am.styles.feature.group</id>
                                    <version>${apimserver.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.am.multitenancy.dashboard.ui.feature.group</id>
                                    <version>${apimserver.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.event.server.feature.group</id>
                                    <version>${carbon.commons.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.event.common.feature.group</id>
                                    <version>${carbon.commons.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.registry.associations.dependencies.feature.group</id>
                                    <version>${carbon.registry.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.provider.server.feature.group</id>
                                    <version>${carbon.identity-inbound-auth-openid.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.oauth.feature.group</id>
                                    <version>${carbon.identity-inbound-auth-oauth.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.saml.common.util.feature.group</id>
                                    <version>${saml.common.util.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.application.authenticator.basicauth.server.feature.group</id>
                                    <version>${carbon.identity-local-auth-basicauth.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.application.authenticator.samlsso.server.feature.group</id>
                                    <version>${carbon.identity-outbound-auth-samlsso.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.application.authentication.framework.server.feature.group
                                    </id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.tenant.mgt.common.server.feature.group</id>
                                    <version>${carbon.commons.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.user.registration.server.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
         
                                <feature>
                                    <id>org.wso2.carbon.deployment.synchronizer.feature.group</id>
                                    <version>${carbon.commons.version}</version>
                                </feature>

                                <feature>
                                    <id>org.wso2.carbon.registry.ws.feature.group</id>
                                    <version>${carbon.registry.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.apimgt.tokenmgt.feature.group</id>
                                    <version>${carbon.apimgt.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.apimgt.jms.listener.feature.group</id>
                                    <version>${carbon.apimgt.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.apimgt.cache.invalidation.feature.group</id>
                                    <version>${carbon.apimgt.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.apimgt.rest.api.publisher.feature.group</id>
                                    <version>${carbon.apimgt.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.apimgt.rest.api.service.catalog.feature.group</id>
                                    <version>${carbon.apimgt.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.data.publisher.application.authentication.server.feature.group</id>
                                    <version>${carbon.identity-data-publisher-application-authentication.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.apimgt.core.feature.group</id>
                                    <version>${carbon.apimgt.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.apimgt.ui.publisher.feature.group</id>
                                    <version>${carbon.apimgt.ui.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.registry.extensions.server.feature.group</id>
                                    <version>${carbon.governance.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.governance.metadata.feature.group</id>
                                    <version>${carbon.governance.version}</version>
                                </feature>

                                <feature>
                                    <id>org.wso2.carbon.user.mgt.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.provisioning.server.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.core.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.functions.library.mgt.server.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.template.mgt.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.template.mgt.server.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.email.mgt.feature.group</id>
                                    <version>${carbon.identity.event.handler.notification.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.um.ws.service.server.feature.group</id>
                                    <version>${carbon.identity-user-ws.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.um.ws.service.client.feature.group</id>
                                    <version>${carbon.identity-user-ws.version}</version>
                                </feature>
				                <feature>
                                    <id>org.wso2.carbon.directory.service.mgr.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.claim.mgt.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>

                              
                                <feature>
                                    <id>org.wso2.carbon.identity.authenticator.saml2.sso.server.feature.group</id>
                                    <version>${carbon.identity.carbon.auth.saml2.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.authenticator.saml2.sso.ui.feature.group</id>
                                    <version>${carbon.identity.carbon.auth.saml2.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.webapp.mgt.server.feature.group</id>
                                    <version>${carbon.deployment.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.registry.contentsearch.feature.group</id>
                                    <version>${carbon.registry.version}</version>
                                </feature>
                                <!-- Features related to Asset Devportal -->
                                <feature>
                                    <id>org.wso2.carbon.ndatasource.feature.group</id>
                                    <version>${carbon.commons.version}</version>
                                </feature>
                              
                                <feature>
                                    <id>org.wso2.carbon.metrics.server.feature.group</id>
                                    <version>${carbon.metrics.version}</version>
                                </feature>
				                <feature>
                                    <id>org.wso2.carbon.identity.user.profile.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>


                                <!-- CEP -->
                                <feature>
                                    <id>org.wso2.carbon.event.output.adapter.server.feature.group</id>
                                    <version>${carbon.analytics.common.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.event.output.adapter.email.server.feature.group</id>
                                    <version>${carbon.analytics.common.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.event.output.adapter.jms.server.feature.group</id>
                                    <version>${carbon.analytics.common.version}</version>
                                </feature>

                                <!-- Consent Management dependency -->
                                <feature>
                                    <id>org.wso2.carbon.consent.mgt.server.feature.group</id>
                                    <version>${carbon.consent.mgt.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.database.utils.feature.group</id>
                                    <version>${carbon.database.utils.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.auth.server.feature.group</id>
                                    <version>${carbon.identity.auth.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.authz.server.feature.group</id>
                                    <version>${carbon.identity.auth.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.context.rewrite.server.feature.group</id>
                                    <version>${carbon.identity.auth.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.cors.mgt.server.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.cors.server.feature.group</id>
                                    <version>${identity.carbon.auth.rest.version}</version>
                                </feature>
                                <!-- Identity app features -->
                                <feature>
                                    <id>org.wso2.identity.apps.authentication.portal.server.feature.group</id>
                                    <version>${identity.apps.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.identity.apps.recovery.portal.server.feature.group</id>
                                    <version>${identity.apps.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.apimgt.internal.service.feature.group</id>
                                    <version>${carbon.apimgt.version}</version>
                                </feature>
                                <feature>
                                    <id>wso2is7.key.manager.feature.group</id>
                                    <version>${wso2is7.km.version}</version>
                                </feature>
                                <feature>
                                    <id>wso2is.key.manager.feature.group</id>
                                    <version>${wso2is.km.version}</version>
                                </feature>
                                <feature>
                                    <id>wso2is.key.manager.notification.feature.group</id>
                                    <version>${wso2is.km.version}</version>
                                </feature>
                                <feature>
                                    <id>wso2is.key.manager.operations.endpoint.feature.group</id>
                                    <version>${wso2is.km.version}</version>
                                </feature>
                                <feature>
                                    <id>wso2is.key.manager.tokenpersistence.feature.group</id>
                                    <version>${wso2is.km.version}</version>
                                </feature>
                                <feature>
                                    <id>okta.key.manager.feature.group</id>
                                    <version>${okta.keymanager.feature.version}</version>
                                </feature>
                                <feature>
                                    <id>azure.key.manager.feature.group</id>
                                    <version>${azure.keymanager.feature.version}</version>
                                </feature>
                                <feature>
                                    <id>keycloak.key.manager.feature.group</id>
                                    <version>${keycloak.keymanager.feature.version}</version>
                                </feature>
                                <feature>
                                    <id>auth0.key.manager.feature.group</id>
                                    <version>${auth0.keymanager.feature.version}</version>
                                </feature>
                                <feature>
                                    <id>pingfederate.key.manager.feature.group</id>
                                    <version>${pingfederate.keymanager.feature.version}</version>
                                </feature>
                                <feature>
                                    <id>forgerock.key.manager.feature.group</id>
                                    <version>${forgerock.keymanager.feature.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.role.mgt.core.server.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.am.security.feature.group</id>
                                    <version>${apimserver.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.user.functionality.mgt.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.apimgt.persistence.feature.group</id>
                                    <version>${carbon.apimgt.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.apimgt.eventing.feature.group</id>
                                    <version>${carbon.apimgt.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.apimgt.eventing.hub.feature.group</id>
                                    <version>${carbon.apimgt.version}</version>
                                </feature>

                                <feature>
                                    <id>
                                        org.wso2.carbon.identity.multi.attribute.login.mgt.server.feature.group
                                    </id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.multi.attribute.login.service.server.feature.group</id>
                                    <version>${carbon.identity.governance.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.organization.management.server.feature.group</id>
                                    <version>${identity.org.mgt.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.user.store.configuration.server.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                            </features>
                        </configuration>
                    </execution>
                    <!--End of api publisher profile-->

                    <!--Start of api key manager profile-->
                    <execution>
                        <id>p2-profile-generation-for-api-key-manager-profile</id>
                        <phase>package</phase>
                        <goals>
                            <goal>p2-profile-gen</goal>
                        </goals>
                        <configuration>
                            <profile>api-key-manager-deprecated</profile>
                            <metadataRepository>file:${basedir}/target/p2-repo</metadataRepository>
                            <artifactRepository>file:${basedir}/target/p2-repo</artifactRepository>
                            <destination>
                                ${basedir}/target/wso2carbon-core-${carbon.kernel.version}/repository/components
                            </destination>
                            <deleteOldProfileFiles>true</deleteOldProfileFiles>
                            <features>
                                <feature>
                                    <id>org.wso2.carbon.tenant.mgt.common.feature.group</id>
                                    <version>${carbon.commons.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.logging.remote.config.mgt.feature.group</id>
                                    <version>${carbon.commons.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.logging.appender.http.feature.group</id>
                                    <version>${carbon.commons.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.logging.view.feature.group</id>
                                    <version>${carbon.commons.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.logging.updater.feature.group</id>
                                    <version>${carbon.commons.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.core.feature.group</id>
                                    <version>${carbon.kernel.version}</version>
                                </feature>
                                <feature>
                                    <id>org.apache.axis2.transport.mail.feature.group</id>
                                    <version>${axis2-transports.wso2.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.notification.mgt.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.xacml.server.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.thrift.authentication.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.tenant.resource.manager</id>
                                    <version>${carbon.identity.governance.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.tenant.common.feature.group</id>
                                    <version>${carbon.multitenancy.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.tenant.usage.agent.feature.group</id>
                                    <version>${carbon.multitenancy.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.tenant.throttling.agent.feature.group</id>
                                    <version>${carbon.multitenancy.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.tenant.deployment.feature.group</id>
                                    <version>${carbon.multitenancy.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.application.authentication.framework.server.feature.group
                                    </id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.provisioning.server.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.tenant.mgt.common.server.feature.group</id>
                                    <version>${carbon.commons.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.functions.library.mgt.server.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.configuration.mgt.server.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.template.mgt.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.template.mgt.server.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.application.authenticator.basicauth.server.feature.group</id>
                                    <version>${carbon.identity-local-auth-basicauth.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.data.publisher.application.authentication.server.feature.group</id>
                                    <version>${carbon.identity-data-publisher-application-authentication.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.application.authenticator.samlsso.server.feature.group</id>
                                    <version>${carbon.identity-outbound-auth-samlsso.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.idp.metadata.saml2.server.feature.group</id>
                                    <version>${carbon.identity-metadata-saml2.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.user.server.feature.group</id>
                                    <version>${carbon.identity.governance.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.core.common.feature.group</id>
                                    <version>${carbon.kernel.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.application.mgt.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.organization.management.server.feature.group</id>
                                    <version>${identity.org.mgt.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.central.log.mgt.server.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                               <feature>
                                    <id>org.wso2.carbon.identity.event.server.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.core.server.feature.group</id>
                                    <version>${carbon.kernel.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.core.runtime.feature.group</id>
                                    <version>${carbon.kernel.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.ntask.core.feature.group</id>
                                    <version>${carbon.commons.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.module.mgt.server.feature.group</id>
                                    <version>${carbon.deployment.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.event.output.adapter.wso2event.server.feature.group</id>
                                    <version>${carbon.analytics.common.version}</version>
                                </feature>

                                <feature>
                                    <id>org.wso2.carbon.databridge.datapublisher.feature.group</id>
                                    <version>${carbon.analytics.common.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.event.output.adapter.server.feature.group</id>
                                    <version>${carbon.analytics.common.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.event.output.adapter.email.server.feature.group</id>
                                    <version>${carbon.analytics.common.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.event.output.adapter.jms.server.feature.group</id>
                                    <version>${carbon.analytics.common.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.system.statistics.server.feature.group</id>
                                    <version>${carbon.commons.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.security.mgt.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.security.mgt.server.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>


                                <feature>
                                    <id>org.wso2.carbon.registry.core.feature.group</id>
                                    <version>${carbon.registry.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.registry.core.server.feature.group</id>
                                    <version>${carbon.registry.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.registry.ui.menu.feature.group</id>
                                    <version>${carbon.registry.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.registry.resource.properties.feature.group</id>
                                    <version>${carbon.registry.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.am.styles.feature.group</id>
                                    <version>${apimserver.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.provider.server.feature.group</id>
                                    <version>${carbon.identity-inbound-auth-openid.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.am.multitenancy.dashboard.ui.feature.group</id>
                                    <version>${apimserver.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.event.server.feature.group</id>
                                    <version>${carbon.commons.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.event.common.feature.group</id>
                                    <version>${carbon.commons.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.registry.associations.dependencies.feature.group</id>
                                    <version>${carbon.registry.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.oauth.feature.group</id>
                                    <version>${carbon.identity-inbound-auth-oauth.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.saml.common.util.feature.group</id>
                                    <version>${saml.common.util.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.user.registration.server.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                               
                                <feature>
                                    <id>org.wso2.carbon.deployment.synchronizer.feature.group</id>
                                    <version>${carbon.commons.version}</version>
                                </feature>

                                <feature>
                                    <id>org.wso2.carbon.registry.ws.feature.group</id>
                                    <version>${carbon.registry.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.registry.extensions.server.feature.group</id>
                                    <version>${carbon.governance.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.governance.metadata.feature.group</id>
                                    <version>${carbon.governance.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.user.mgt.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.core.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.data.publisher.oauth.server.feature.group</id>
                                    <version>${carbon.identity-data-publisher-oauth.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.functions.library.mgt.server.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.configuration.mgt.server.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.template.mgt.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.template.mgt.server.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.um.ws.service.server.feature.group</id>
                                    <version>${carbon.identity-user-ws.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.um.ws.service.client.feature.group</id>
                                    <version>${carbon.identity-user-ws.version}</version>
                                </feature>
				                <feature>
                                    <id>org.wso2.carbon.directory.service.mgr.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                               
                                <feature>
                                    <id>org.wso2.carbon.identity.authenticator.saml2.sso.server.feature.group</id>
                                    <version>${carbon.identity.carbon.auth.saml2.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.authenticator.saml2.sso.ui.feature.group</id>
                                    <version>${carbon.identity.carbon.auth.saml2.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.apimgt.core.feature.group</id>
                                    <version>${carbon.apimgt.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.apimgt.tokenmgt.feature.group</id>
                                    <version>${carbon.apimgt.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.registry.extensions.server.feature.group</id>
                                    <version>${carbon.governance.version}</version>
                                </feature>
                                
                                <feature>
                                    <id>org.wso2.carbon.registry.contentsearch.feature.group</id>
                                    <version>${carbon.registry.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.idp.mgt.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>

                                <feature>
                                    <id>org.wso2.carbon.ndatasource.feature.group</id>
                                    <version>${carbon.commons.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.apimgt.tracing.feature.group</id>
                                    <version>${carbon.apimgt.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.apimgt.jms.listener.feature.group</id>
                                    <version>${carbon.apimgt.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.apimgt.cache.invalidation.feature.group</id>
                                    <version>${carbon.apimgt.version}</version>
                                </feature>
				                <feature>
                                    <id>org.wso2.carbon.webapp.mgt.server.feature.group</id>
                                    <version>${carbon.deployment.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.metrics.server.feature.group</id>
                                    <version>${carbon.metrics.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.user.profile.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.claim.mgt.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <!-- Consent Management dependency -->
                                <feature>
                                    <id>org.wso2.carbon.consent.mgt.server.feature.group</id>
                                    <version>${carbon.consent.mgt.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.database.utils.feature.group</id>
                                    <version>${carbon.database.utils.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.consent.mgt.server.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.auth.server.feature.group</id>
                                    <version>${carbon.identity.auth.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.authz.server.feature.group</id>
                                    <version>${carbon.identity.auth.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.context.rewrite.server.feature.group</id>
                                    <version>${carbon.identity.auth.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.cors.mgt.server.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.cors.server.feature.group</id>
                                    <version>${identity.carbon.auth.rest.version}</version>
                                </feature>

                                <feature>
                                    <id>org.wso2.carbon.event.output.adapter.server.feature.group</id>
                                    <version>${carbon.analytics.common.version}</version>
                                </feature>
                                <!-- Identity app features -->
                                <feature>
                                    <id>org.wso2.identity.apps.authentication.portal.server.feature.group</id>
                                    <version>${identity.apps.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.identity.apps.recovery.portal.server.feature.group</id>
                                    <version>${identity.apps.version}</version>
                                </feature>
                                <feature>
                                    <id>wso2is.key.manager.notification.feature.group</id>
                                    <version>${wso2is.km.version}</version>
                                </feature>
                                <feature>
                                    <id>wso2is.key.manager.tokenpersistence.feature.group</id>
                                    <version>${wso2is.km.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.role.mgt.core.server.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.am.security.feature.group</id>
                                    <version>${apimserver.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.user.functionality.mgt.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.apimgt.persistence.feature.group</id>
                                    <version>${carbon.apimgt.version}</version>
                                </feature>

                                <!-- Token Exchange grant feature-->
                                <feature>
                                    <id>org.wso2.carbon.extension.identity.oauth2.token.exchange.feature.group</id>
                                    <version>${carbon.extension.identity.oauth2.grantType.token.exchange}</version>
                                </feature>

                                <feature>
                                    <id>
                                        org.wso2.carbon.identity.multi.attribute.login.mgt.server.feature.group
                                    </id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.multi.attribute.login.service.server.feature.group</id>
                                    <version>${carbon.identity.governance.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.user.store.configuration.server.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                            </features>
                        </configuration>
                    </execution>
                    <!--End of api key manager profile-->

                    <execution>
                        <id>p2-profile-generation-traffic-manager</id>
                        <phase>package</phase>
                        <goals>
                            <goal>p2-profile-gen</goal>
                        </goals>
                        <configuration>
                            <profile>traffic-manager</profile>
                            <p2AgentLocation>${basedir}/target/p2-agent</p2AgentLocation>
                            <metadataRepository>file:${basedir}/target/p2-repo</metadataRepository>
                            <artifactRepository>file:${basedir}/target/p2-repo</artifactRepository>
                            <destination>
                                ${basedir}/target/wso2carbon-core-${carbon.kernel.version}/repository/components
                            </destination>
                            <deleteOldProfileFiles>true</deleteOldProfileFiles>
                            <features>
                                <feature>
                                    <id>org.wso2.carbon.core.feature.group</id>
                                    <version>${carbon.kernel.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.tenant.mgt.common.feature.group</id>
                                    <version>${carbon.commons.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.logging.remote.config.mgt.feature.group</id>
                                    <version>${carbon.commons.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.logging.appender.http.feature.group</id>
                                    <version>${carbon.commons.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.logging.view.feature.group</id>
                                    <version>${carbon.commons.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.logging.updater.feature.group</id>
                                    <version>${carbon.commons.version}</version>
                                </feature>
                                <feature>
                                    <id>org.apache.axis2.transport.mail.feature.group</id>
                                    <version>${axis2-transports.wso2.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.as.runtimes.cxf3.feature.group</id>
                                    <version>${carbon.deployment.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.webapp.mgt.server.feature.group</id>
                                    <version>${carbon.deployment.version}</version>
                                </feature>
                              
                                <feature>
                                    <id>org.wso2.carbon.ntask.core.feature.group</id>
                                    <version>${carbon.commons.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.module.mgt.server.feature.group</id>
                                    <version>${carbon.deployment.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.databridge.datapublisher.feature.group</id>
                                    <version>${carbon.analytics.common.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.event.output.adapter.wso2event.server.feature.group</id>
                                    <version>${carbon.analytics.common.version}</version>
                                </feature>

                                <feature>
                                    <id>org.wso2.carbon.databridge.datareceiver.feature.group</id>
                                    <version>${carbon.analytics.common.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.databridge.streamdefn.filesystem.server.feature.group</id>
                                    <version>${carbon.analytics.common.version}</version>
                                </feature>
                                <!-- dep-sync feature -->
                                <feature>
                                    <id>org.wso2.carbon.deployment.synchronizer.feature.group</id>
                                    <version>${carbon.commons.version}</version>
                                </feature>

                                <!-- Output Adapter -->
                                <feature>
                                    <id>org.wso2.carbon.event.output.adapter.server.feature.group</id>
                                    <version>${carbon.analytics.common.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.event.output.adapter.email.server.feature.group</id>
                                    <version>${carbon.analytics.common.version}</version>
                                </feature>
                                <!-- Output Adapter -->


                                <feature>
                                    <id>org.wso2.carbon.apimgt.scxml.feature.group</id>
                                    <version>${carbon.apimgt.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.security.mgt.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.oauth.feature.group</id>
                                    <version>${carbon.identity-inbound-auth-oauth.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.saml.common.util.feature.group</id>
                                    <version>${saml.common.util.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.security.mgt.server.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.system.statistics.server.feature.group</id>
                                    <version>${carbon.commons.version}</version>
                                </feature>

                                <feature>
                                    <id>org.wso2.carbon.registry.core.feature.group</id>
                                    <version>${carbon.registry.version}</version>
                                </feature>

                                <feature>
                                    <id>org.wso2.carbon.registry.ui.menu.feature.group</id>
                                    <version>${carbon.registry.version}</version>
                                </feature>
                                
                                <feature>
                                    <id>org.wso2.carbon.registry.resource.properties.feature.group</id>
                                    <version>${carbon.registry.version}</version>
                                </feature>
                            

                                <feature>
                                    <id>org.wso2.carbon.event.server.feature.group</id>
                                    <version>${carbon.commons.version}</version>
                                </feature>
                                <!-- Remove -->
                                <feature>
                                    <id>org.wso2.carbon.event.common.feature.group</id>
                                    <version>${carbon.commons.version}</version>
                                </feature>
                                <!-- Remove -->
                                
                                <feature>
                                    <id>org.wso2.carbon.tenant.mgt.common.server.feature.group</id>
                                    <version>${carbon.commons.version}</version>
                                </feature>

                                <!--Identity Feature-->
                                <feature>
                                    <id>org.wso2.carbon.user.mgt.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.core.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.functions.library.mgt.server.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.template.mgt.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.template.mgt.server.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>

                                
                                <feature>
                                    <id>org.wso2.carbon.identity.authenticator.saml2.sso.server.feature.group</id>
                                    <version>${carbon.identity.carbon.auth.saml2.version}</version>
                                </feature>

                                <feature>
                                    <id>org.wso2.carbon.identity.authenticator.saml2.sso.ui.feature.group</id>
                                    <version>${carbon.identity.carbon.auth.saml2.version}</version>
                                </feature>

                                <feature>    
                                    <id>org.wso2.carbon.identity.authenticator.saml2.sso.ui.feature.group</id>
                                    <version>${carbon.identity.carbon.auth.saml2.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.application.authenticator.samlsso.server.feature.group</id>
                                    <version>${carbon.identity-outbound-auth-samlsso.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.webapp.mgt.server.feature.group</id>
                                    <version>${carbon.deployment.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.registry.contentsearch.feature.group</id>
                                    <version>${carbon.registry.version}</version>
                                </feature>
                                
                                <feature>
                                    <id>org.wso2.carbon.tenant.common.feature.group</id>
                                    <version>${carbon.multitenancy.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.ndatasource.feature.group</id>
                                    <version>${carbon.commons.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.metrics.server.feature.group</id>
                                    <version>${carbon.metrics.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.apimgt.throttling.siddhi.extension.feature.group</id>
                                    <version>${carbon.apimgt.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.user.profile.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>

                                <!-- MB features -->
                                <feature>
                                    <id>org.wso2.carbon.andes.server.feature.group</id>
                                    <version>${carbon.messaging.version}</version>
                                </feature>

                                <feature>
                                    <id>org.wso2.am.styles.feature.group</id>
                                    <version>${apimserver.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.event.receiver.feature.group</id>
                                    <version>${carbon.analytics.common.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.event.publisher.feature.group</id>
                                    <version>${carbon.analytics.common.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.event.publisher.aggregate.feature.group</id>
                                    <version>${carbon.analytics.common.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.event.processor.server.feature.group</id>
                                    <version>${carbon.event-processing.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.event.flow.feature.group</id>
                                    <version>${carbon.event-processing.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.event.statistics.feature.group</id>
                                    <version>${carbon.analytics.common.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.event.stream.feature.group</id>
                                    <version>${carbon.analytics.common.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.event.application.deployer.feature.group
                                    </id>
                                    <version>${carbon.analytics.common.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.event.processor.manager.core.feature.group</id>
                                    <version>${carbon.analytics.common.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.event.processor.manager.commons.feature.group</id>
                                    <version>${carbon.analytics.common.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.database.utils.feature.group</id>
                                    <version>${carbon.database.utils.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.auth.server.feature.group</id>
                                    <version>${carbon.identity.auth.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.authz.server.feature.group</id>
                                    <version>${carbon.identity.auth.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.context.rewrite.server.feature.group</id>
                                    <version>${carbon.identity.auth.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.cors.mgt.server.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.cors.server.feature.group</id>
                                    <version>${identity.carbon.auth.rest.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.apimgt.internal.service.feature.group</id>
                                    <version>${carbon.apimgt.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.apimgt.throttle.policy.deployer.feature.group</id>
                                    <version>${carbon.apimgt.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.apimgt.jms.listener.feature.group</id>
                                    <version>${carbon.apimgt.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.apimgt.eventing.feature.group</id>
                                    <version>${carbon.apimgt.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.apimgt.eventing.hub.feature.group</id>
                                    <version>${carbon.apimgt.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.role.mgt.core.server.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.am.security.feature.group</id>
                                    <version>${apimserver.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.user.functionality.mgt.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.organization.management.server.feature.group</id>
                                    <version>${identity.org.mgt.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.user.store.configuration.server.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.xacml.server.feature.group</id>
                                    <version>${carbon.identity.version}</version>
                                </feature>
                            </features>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-antrun-plugin</artifactId>
                <executions>
                    <execution>
                        <phase>package</phase>
                        <configuration>
                            <tasks>
                                <replace token="false" value="true" dir="target/wso2carbon-core-${carbon.kernel.version}/repository/components">
                                    <include name="**/bundles.info" />
                                </replace>
                                <replace file="target/wso2carbon-core-${carbon.kernel.version}/repository/conf/tomcat/context.xml" token="&lt;Context&gt;" value="&lt;Context crossContext=&quot;true&quot;&gt;" />
                            </tasks>
                        </configuration>
                        <goals>
                            <goal>run</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>
</project>
