<?xml version="1.0" encoding="utf-8"?>
<!--
  ~ Copyright (c) 2014, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
  ~
  ~ Licensed under the Apache License, Version 2.0 (the "License");
  ~ you may not use this file except in compliance with the License.
  ~ You may obtain a copy of the License at
  ~
  ~      http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS,
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License.
  -->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">

    <parent>
        <groupId>org.wso2.is</groupId>
        <artifactId>identity-server-parent</artifactId>
        <version>6.0.0-beta</version>
        <relativePath>../../pom.xml</relativePath>
    </parent>

    <modelVersion>4.0.0</modelVersion>
    <artifactId>identity-profile-gen</artifactId>
    <packaging>pom</packaging>
    <name>WSO2 IS - IS Profile Generation</name>
    <url>http://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>
                    <execution>
                        <id>unpack-equinox-executable</id>
                        <phase>test</phase>
                        <goals>
                            <goal>unpack</goal>
                        </goals>
                        <configuration>
                            <artifactItems>
                                <artifactItem>
                                    <groupId>org.eclipse.equinox</groupId>
                                    <artifactId>org.eclipse.equinox.executable</artifactId>
                                    <version>3.5.0.v20110530-7P7NFUFFLWUl76mart</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>
                <version>${carbon.p2.plugin.version}</version>
                <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>
                                <!--Carbon 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.commons:org.wso2.carbon.logging.updater.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.system.statistics.feature:${carbon.commons.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.analytics-common:org.wso2.carbon.databridge.datapublisher.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.identity.framework:org.wso2.carbon.security.mgt.feature:${carbon.identity.framework.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.inbound.auth.sts:org.wso2.carbon.mex.server.feature:${identity.inbound.auth.sts.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.governance:org.wso2.carbon.identity.tenant.resource.manager.feature:${identity.governance.version}
                                </featureArtifactDef>

                                <!-- registry related features -->
                                <featureArtifactDef>
                                    org.wso2.carbon.registry:org.wso2.carbon.registry.core.feature:${carbon.registry.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.registry:org.wso2.carbon.registry.resource.properties.feature:${carbon.registry.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.registry:org.wso2.carbon.registry.profiles.feature:${carbon.registry.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.registry:org.wso2.carbon.registry.contentsearch.feature:${carbon.registry.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.registry:org.wso2.carbon.registry.ui.menu.feature:${carbon.registry.version}
                                </featureArtifactDef>
                                <!-- Directory server related features -->
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.framework:org.wso2.carbon.directory.service.mgr.feature:${carbon.identity.framework.version}
                                </featureArtifactDef>
                                <!-- identity related features -->
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.framework:org.wso2.carbon.identity.core.feature:${carbon.identity.framework.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.inbound.auth.openid:org.wso2.carbon.identity.provider.server.feature:${identity.inbound.auth.openid.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.framework:org.wso2.carbon.idp.mgt.feature:${carbon.identity.framework.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.framework:org.wso2.carbon.identity.event.feature:${carbon.identity.framework.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.framework:org.wso2.carbon.identity.mgt.feature:${carbon.identity.framework.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.framework:org.wso2.carbon.identity.template.mgt.feature:${carbon.identity.framework.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.governance:org.wso2.carbon.identity.governance.feature:${identity.governance.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.event.handler.accountlock:org.wso2.carbon.identity.handler.event.account.lock.feature:${identity.event.handler.account.lock.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.event.handler.notification:org.wso2.carbon.email.mgt.feature:${identity.event.handler.notification.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.event.handler.notification:org.wso2.carbon.event.handler.notification.server.feature:${identity.event.handler.notification.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.framework:org.wso2.carbon.identity.user.registration.feature:${carbon.identity.framework.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.framework:org.wso2.carbon.identity.user.profile.feature:${carbon.identity.framework.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.framework:org.wso2.carbon.identity.xacml.feature:${carbon.identity.framework.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.framework:org.wso2.carbon.claim.mgt.feature:${carbon.identity.framework.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.framework:org.wso2.carbon.identity.user.store.configuration.server.feature:${carbon.identity.framework.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.inbound.auth.saml2:org.wso2.carbon.identity.sso.saml.feature:${identity.inbound.auth.saml.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.metadata.saml2:org.wso2.carbon.identity.idp.metadata.saml2.server.feature:${identity.metadata.saml.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.metadata.saml2:org.wso2.carbon.identity.sp.metadata.saml2.server.feature:${identity.metadata.saml.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.framework:org.wso2.carbon.identity.application.mgt.feature:${carbon.identity.framework.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.framework:org.wso2.carbon.identity.functions.library.mgt.feature:${carbon.identity.framework.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.framework:org.wso2.carbon.identity.user.functionality.mgt.feature:${carbon.identity.framework.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.framework:org.wso2.carbon.identity.application.authentication.framework.server.feature:${carbon.identity.framework.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.application.authz.xacml:org.wso2.carbon.identity.application.authz.xacml.server.feature:${identity.app.authz.xacml.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.extension.identity.oauth.addons:org.wso2.carbon.identity.oauth2.validators.xacml.server.feature:${identity.oauth.addons.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.datapublisher.authentication:org.wso2.carbon.identity.data.publisher.application.authentication.server.feature:${identity.data.publisher.authentication.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.data.publisher.oauth:org.wso2.carbon.identity.data.publisher.oauth.server.feature:${identity.data.publisher.oauth.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.data.publisher.audit:org.wso2.carbon.identity.data.publisher.audit.user.operation.server.feature:${identity.data.publisher.audit.version}
                                </featureArtifactDef>
                                <!-- Authenticators -->
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.local.auth.requestpath.basic:org.wso2.carbon.identity.application.authenticator.requestpath.basicauth.server.feature:${identity.outbound.auth.requestpath.basicauth.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.local.auth.requestpath.oauth:org.wso2.carbon.identity.application.authenticator.requestpath.oauth.server.feature:${identity.outbound.auth.requestpath.oauth.version}
                                </featureArtifactDef>

                                <featureArtifactDef>
                                    org.wso2.carbon.identity.carbon.auth.saml2:org.wso2.carbon.identity.authenticator.saml2.sso.feature:${identity.carbon.auth.saml2.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.framework:org.wso2.carbon.identity.thrift.authentication.feature:${carbon.identity.framework.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.carbon.auth.mutualssl:org.wso2.carbon.identity.authenticator.mutualssl.feature:${identity.carbon.auth.mutual.ssl.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.extension.identity.authenticator.utils:org.wso2.carbon.extension.identity.utils.helper.feature:${identity.extension.utils}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.extension.identity.authenticator.outbound.totp:org.wso2.carbon.extension.identity.authenticator.totp.feature:${authenticator.totp.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.extension.identity.authenticator.outbound.backupcode:org.wso2.carbon.extension.identity.authenticator.backupcode.feature:${authenticator.backupcode.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.extension.identity.authenticator.outbound.emailotp:org.wso2.carbon.identity.authenticator.emailotp.feature:${authenticator.emailotp.version}
                                </featureArtifactDef>

                                <featureArtifactDef>
                                    org.wso2.carbon.identity.user.ws:org.wso2.carbon.um.ws.service.feature:${identity.user.ws.version}
                                </featureArtifactDef>

                                <featureArtifactDef>
                                    org.wso2.is:org.wso2.identity.styles.feature:${project.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.is:org.wso2.identity.utils.feature:${project.version}
                                </featureArtifactDef>

                                <featureArtifactDef>
                                    org.wso2.carbon.identity.inbound.auth.oauth2:org.wso2.carbon.identity.oauth.feature:${identity.inbound.auth.oauth.version}
                                </featureArtifactDef>

                                <featureArtifactDef>
                                    org.wso2.carbon.identity.inbound.auth.sts:org.wso2.carbon.identity.sts.passive.feature:${identity.inbound.auth.sts.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.userstore.remote:org.wso2.carbon.identity.user.store.remote.feature:${identity.userstore.remote.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.inbound.provisioning.scim:org.wso2.carbon.identity.scim.feature:${identity.inbound.provisioning.scim.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.inbound.provisioning.scim2:org.wso2.carbon.identity.scim2.server.feature:${identity.inbound.provisioning.scim2.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.outbound.provisioning.scim2:org.wso2.carbon.identity.provisioning.connector.scim2.server.feature:${provisioning.connector.scim2.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.framework:org.wso2.carbon.identity.role.mgt.core.server.feature:${carbon.identity.framework.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.framework:org.wso2.carbon.identity.secret.mgt.core.server.feature:${carbon.identity.framework.version}
                                </featureArtifactDef>
                                <!-- Features related to Cloud Identity -->
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.framework:org.wso2.carbon.user.mgt.feature:${carbon.identity.framework.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.commons:org.wso2.carbon.tenant.mgt.common.feature:${carbon.commons.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.multitenancy:org.wso2.carbon.tenant.common.feature:${carbon.multitenancy.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.is:org.wso2.identity.ui.feature:${project.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon:org.wso2.carbon.core.feature:${carbon.kernel.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon:org.wso2.carbon.core.runtime.feature:${carbon.kernel.version}
                                </featureArtifactDef>

                                <!-- DepSync feature -->
                                <featureArtifactDef>
                                    org.wso2.carbon.commons:org.wso2.carbon.event.server.feature:${carbon.commons.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.commons:org.wso2.carbon.deployment.synchronizer.feature:${carbon.commons.version}
                                </featureArtifactDef>

                                <!-- Identity Provisioning Feature -->
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.framework:org.wso2.carbon.identity.provisioning.server.feature:${carbon.identity.framework.version}
                                </featureArtifactDef>

                                <!-- SAML Request/Response Validator Toolkit Feature -->
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.tool.validator.sso.saml2:org.wso2.carbon.identity.tools.saml.validator.feature:${identity.tool.samlsso.validator.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.metadata.saml2:org.wso2.carbon.identity.idp.metadata.saml2.server.feature:${identity.metadata.saml.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.metadata.saml2:org.wso2.carbon.identity.sp.metadata.saml2.server.feature:${identity.metadata.saml.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.framework:org.wso2.carbon.identity.notification.mgt.feature:${carbon.identity.framework.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.apache.axis2.transport:org.apache.axis2.transport.mail.feature:${axis2-transports.version}
                                </featureArtifactDef>
                                <!-- User Account Association Feature -->
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.association.account:org.wso2.carbon.identity.user.account.association.feature:${identity.user.account.association.version}
                                </featureArtifactDef>
                                <!-- Cipher tool feature -->
                                <featureArtifactDef>
                                    org.wso2.ciphertool:org.wso2.ciphertool.feature:${cipher-tool.version}
                                </featureArtifactDef>

                                <!-- Workflow mgt Feature -->
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.framework:org.wso2.carbon.identity.workflow.mgt.feature:${carbon.identity.framework.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.workflow.user:org.wso2.carbon.user.mgt.workflow.feature:${identity.user.workflow.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.workflow.impl.bps:org.wso2.carbon.identity.workflow.impl.feature:${identity.workflow.impl.bps.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.workflow.template.multisteps:org.wso2.carbon.identity.workflow.template.server.feature:${identity.workflow.template.multisteps.version}
                                </featureArtifactDef>

                                <!--BPEL and HumanTask features -->
                                <featureArtifactDef>
                                    org.wso2.carbon.business-process:org.wso2.carbon.bpel.server.feature:${carbon.business-process.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.business-process:org.wso2.carbon.humantask.server.feature:${carbon.business-process.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.business-process:org.wso2.carbon.attachment.mgt.feature:${carbon.business-process.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.business-process:org.wso2.carbon.unifiedendpoint.server.feature:${carbon.business-process.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.analytics-common:org.wso2.carbon.databridge.commons.server.feature:${carbon.analytics-common.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.analytics-common:org.wso2.carbon.event.stream.server.feature:${carbon.analytics-common.version}
                                </featureArtifactDef>

                                <!--Auth/Authz for Rest API-->
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.auth.rest:org.wso2.carbon.identity.auth.server.feature:${identity.carbon.auth.rest.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.auth.rest:org.wso2.carbon.identity.authz.server.feature:${identity.carbon.auth.rest.version}
                                </featureArtifactDef>

                                <featureArtifactDef>
                                    org.wso2.carbon.identity.auth.rest:org.wso2.carbon.identity.context.rewrite.server.feature:${identity.carbon.auth.rest.version}
                                </featureArtifactDef>

                                <!--CORS-->
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.auth.rest:org.wso2.carbon.identity.cors.server.feature:${identity.carbon.auth.rest.version}
                                </featureArtifactDef>

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

                                <featureArtifactDef>
                                    org.wso2.carbon.identity.oauth.uma:org.wso2.carbon.identity.oauth.uma.server.feature:${carbon.identity.oauth.uma.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.extension.identity.x509certificate:org.wso2.carbon.extension.identity.x509Certificate.validation.server.feature:${org.wso2.carbon.extension.identity.x509certificate.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.conditional.auth.functions:org.wso2.carbon.identity.conditional.auth.functions.server.feature:${conditional.authentication.functions.version}
                                </featureArtifactDef>
                                <featureArtifactDef>
                                    org.wso2.carbon.healthcheck:org.wso2.carbon.healthcheck.server.feature:${carbon.healthcheck.version}
                                </featureArtifactDef>

                                <!-- Configuration Management feature -->
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.framework:org.wso2.carbon.identity.configuration.mgt.server.feature:${carbon.identity.framework.version}
                                </featureArtifactDef>

                                <!-- CORS feature -->
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.framework:org.wso2.carbon.identity.cors.mgt.server.feature:${carbon.identity.framework.version}
                                </featureArtifactDef>

                                <!-- User portal feature -->
                                <featureArtifactDef>
                                    org.wso2.identity.apps:org.wso2.identity.apps.feature:${identity.apps.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>

                                <!-- FIDO2/WebAuthn feature -->
                                <featureArtifactDef>
                                   org.wso2.carbon.identity.local.auth.fido:org.wso2.carbon.identity.application.authenticator.fido2.server.feature:${identity.local.auth.fido.version}
                                </featureArtifactDef>

                                 <!-- UUID Generator feature -->
                                <featureArtifactDef>
                                    org.wso2.carbon.commons:org.wso2.carbon.uuid.generator.feature:${carbon.commons.version}
                                </featureArtifactDef>
                                <!--  RemoteFetch feature -->
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.fetch.remote:org.wso2.carbon.identity.remotefetch.core.feature:${org.wso2.carbon.identity.remotefetch.version}
                                </featureArtifactDef>
                                <!-- Unique Claim Management feature -->
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.framework:org.wso2.carbon.identity.unique.claim.mgt.server.feature:${carbon.identity.framework.version}
                                </featureArtifactDef>
                                <!-- Multi Attribute Login feature -->
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.framework:org.wso2.carbon.identity.multi.attribute.login.mgt.server.feature:${carbon.identity.framework.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:${identity.governance.version}
                                </featureArtifactDef>
                                <!-- PBKDF2 feature -->
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.hash.provider.pbkdf2:org.wso2.carbon.identity.hash.provider.pbkdf2.server.feature:${hashprovider.pbkdf2.version}
                                </featureArtifactDef>
                                <!-- Central Logger (osgi service impl)feature -->
                                <featureArtifactDef>
                                    org.wso2.carbon.identity.framework:org.wso2.carbon.identity.central.log.mgt.server.feature:${carbon.identity.framework.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>
                                <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.outbound.auth.oauth2:org.wso2.carbon.identity.outbound.auth.oauth2.server.feature:${identity.outbound.auth.oauth2.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.local.auth.magiclink:org.wso2.carbon.identity.local.auth.magiclink.server.feature:${authenticator.magiclink.version}
                                </featureArtifactDef>
                            </featureArtifacts>
                        </configuration>
                    </execution>

                    <!-- Default Profile (IS Front-End + IS Back-End) -->
                    <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.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.logging.updater.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.databridge.datapublisher.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.identity.user.store.remote.feature.group</id>
                                    <version>${identity.userstore.remote.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.system.statistics.feature.group</id>
                                    <version>${carbon.commons.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.security.mgt.feature.group</id>
                                    <version>${carbon.identity.framework.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.resource.properties.feature.group</id>
                                    <version>${carbon.registry.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.registry.profiles.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.identity.core.feature.group</id>
                                    <version>${carbon.identity.framework.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.provider.server.feature.group</id>
                                    <version>${identity.inbound.auth.openid.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.idp.mgt.feature.group</id>
                                    <version>${carbon.identity.framework.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.event.feature.group</id>
                                    <version>${carbon.identity.framework.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.governance.feature.group</id>
                                    <version>${identity.governance.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.handler.event.account.lock.feature.group</id>
                                    <version>${identity.event.handler.account.lock.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.mgt.feature.group</id>
                                    <version>${carbon.identity.framework.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.email.mgt.feature.group</id>
                                    <version>${identity.event.handler.notification.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.event.handler.notification.server.feature.group</id>
                                    <version>${identity.event.handler.notification.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.user.registration.feature.group</id>
                                    <version>${carbon.identity.framework.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.user.profile.feature.group</id>
                                    <version>${carbon.identity.framework.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.xacml.feature.group</id>
                                    <version>${carbon.identity.framework.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.sso.saml.feature.group</id>
                                    <version>${identity.inbound.auth.saml.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.idp.metadata.saml2.server.feature.group</id>
                                    <version>${identity.metadata.saml.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.sp.metadata.saml2.server.feature.group</id>
                                    <version>${identity.metadata.saml.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.mgt.feature.group</id>
                                    <version>${carbon.identity.framework.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.functions.library.mgt.feature.group</id>
                                    <version>${carbon.identity.framework.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.user.functionality.mgt.feature.group</id>
                                    <version>${carbon.identity.framework.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.claim.mgt.feature.group</id>
                                    <version>${carbon.identity.framework.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.user.store.configuration.server.feature.group</id>
                                    <version>${carbon.identity.framework.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.authenticator.saml2.sso.feature.group</id>
                                    <version>${identity.carbon.auth.saml2.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.authenticator.mutualssl.feature.group</id>
                                    <version>${identity.carbon.auth.mutual.ssl.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.um.ws.service.feature.group</id>
                                    <version>${identity.user.ws.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.directory.service.mgr.feature.group</id>
                                    <version>${carbon.identity.framework.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.identity.styles.feature.group</id>
                                    <version>${project.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.sts.passive.feature.group</id>
                                    <version>${identity.inbound.auth.sts.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.identity.utils.feature.group</id>
                                    <version>${project.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.oauth.feature.group</id>
                                    <version>${identity.inbound.auth.oauth.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.scim.feature.group</id>
                                    <version>${identity.inbound.provisioning.scim.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.scim2.server.feature.group</id>
                                    <version>${identity.inbound.provisioning.scim2.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.mex.server.feature.group</id>
                                    <version>${identity.inbound.auth.sts.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.tenant.resource.manager</id>
                                    <version>${identity.governance.version}</version>
                                </feature>

                                <!-- Features required for Cloud Identity -->
                                <feature>
                                    <id>org.wso2.carbon.tenant.mgt.common.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.identity.ui.feature.group</id>
                                    <version>${project.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.registry.contentsearch.feature.group</id>
                                    <version>${carbon.registry.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.user.mgt.feature.group</id>
                                    <version>${carbon.identity.framework.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.role.mgt.core.server.feature.group</id>
                                    <version>${carbon.identity.framework.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.secret.mgt.core.server.feature.group</id>
                                    <version>${carbon.identity.framework.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.event.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.identity.application.authentication.framework.server.feature.group
                                    </id>
                                    <version>${carbon.identity.framework.version}</version>
                                </feature>
                                <feature>
                                    <id>
                                        org.wso2.carbon.identity.configuration.mgt.server.feature.group
                                    </id>
                                    <version>${carbon.identity.framework.version}</version>
                                </feature>
                                <feature>
                                    <id>
                                        org.wso2.carbon.identity.cors.mgt.server.feature.group
                                    </id>
                                    <version>${carbon.identity.framework.version}</version>
                                </feature>
                                <feature>
                                    <id>
                                        org.wso2.carbon.identity.unique.claim.mgt.server.feature.group
                                    </id>
                                    <version>${carbon.identity.framework.version}</version>
                                </feature>
                                <feature>
                                    <id>
                                        org.wso2.carbon.identity.multi.attribute.login.mgt.server.feature.group
                                    </id>
                                    <version>${carbon.identity.framework.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.multi.attribute.login.service.server.feature.group</id>
                                    <version>${identity.governance.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.central.log.mgt.server.feature.group</id>
                                    <version>${carbon.identity.framework.version}</version>
                                </feature>
                                <feature>
                                    <id>
                                        org.wso2.identity.apps.feature.group
                                    </id>
                                    <version>${identity.apps.version}</version>
                                </feature>

                                <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.identity.application.authz.xacml.server.feature.group
                                    </id>
                                    <version>${identity.app.authz.xacml.version}</version>
                                </feature>
                                <feature>
                                    <id>
                                        org.wso2.carbon.identity.oauth2.validators.xacml.server.feature.group
                                    </id>
                                    <version>${identity.oauth.addons.version}</version>
                                </feature>
                                <feature>
                                    <id>
                                        org.wso2.carbon.identity.data.publisher.application.authentication.server.feature.group
                                    </id>
                                    <version>${identity.data.publisher.authentication.version}</version>
                                </feature>
                                <feature>
                                    <id>
                                        org.wso2.carbon.identity.data.publisher.oauth.server.feature.group
                                    </id>
                                    <version>${identity.data.publisher.oauth.version}</version>
                                </feature>
                                <feature>
                                    <id>
                                        org.wso2.carbon.identity.data.publisher.audit.user.operation.server.feature.group
                                    </id>
                                    <version>${identity.data.publisher.audit.version}</version>
                                </feature>
                                <feature>
                                    <id>
                                        org.wso2.carbon.identity.application.authenticator.requestpath.basicauth.server.feature.group
                                    </id>
                                    <version>${identity.outbound.auth.requestpath.basicauth.version}</version>
                                </feature>
                                <feature>
                                    <id>
                                        org.wso2.carbon.identity.application.authenticator.requestpath.oauth.server.feature.group
                                    </id>
                                    <version>${identity.outbound.auth.requestpath.oauth.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.provisioning.server.feature.group</id>
                                    <version>${carbon.identity.framework.version}</version>
                                </feature>

                                <feature>
                                    <id>org.wso2.carbon.identity.tools.saml.validator.feature.group</id>
                                    <version>${identity.tool.samlsso.validator.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.thrift.authentication.feature.group</id>
                                    <version>${carbon.identity.framework.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.notification.mgt.feature.group</id>
                                    <version>${carbon.identity.framework.version}</version>
                                </feature>
                                <feature>
                                    <id>org.apache.axis2.transport.mail.feature.group</id>
                                    <version>${axis2-transports.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.user.account.association.feature.group</id>
                                    <version>${identity.user.account.association.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.workflow.mgt.feature.group</id>
                                    <version>${carbon.identity.framework.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.workflow.impl.feature.group</id>
                                    <version>${identity.workflow.impl.bps.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.workflow.template.server.feature.group</id>
                                    <version>${identity.workflow.template.multisteps.version}</version>
                                </feature>

                                <feature>
                                    <id>org.wso2.carbon.user.mgt.workflow.feature.group</id>
                                    <version>${identity.user.workflow.version}</version>
                                </feature>

                                <!--BPEL and HumanTask features -->
                                <feature>
                                    <id>org.wso2.carbon.bpel.server.feature.group</id>
                                    <version>${carbon.business-process.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.humantask.server.feature.group</id>
                                    <version>${carbon.business-process.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.attachment.mgt.feature.group</id>
                                    <version>${carbon.business-process.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.unifiedendpoint.server.feature.group</id>
                                    <version>${carbon.business-process.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.stream.server.feature.group</id>
                                    <version>${carbon.analytics-common.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.databridge.commons.server.feature.group</id>
                                    <version>${carbon.analytics-common.version}</version>
                                </feature>

                                <!-- Auth/Authz for Rest API  -->
                                <feature>
                                    <id>org.wso2.carbon.identity.auth.server.feature.group</id>
                                    <version>${identity.carbon.auth.rest.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.authz.server.feature.group</id>
                                    <version>${identity.carbon.auth.rest.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.context.rewrite.server.feature.group</id>
                                    <version>${identity.carbon.auth.rest.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.consent.mgt.server.feature.group</id>
                                    <version>${carbon.consent.mgt.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.consent.mgt.server.feature.group</id>
                                    <version>${carbon.identity.framework.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.oauth.uma.server.feature.group</id>
                                    <version>${carbon.identity.oauth.uma.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.extension.identity.x509Certificate.validation.server.feature.group</id>
                                    <version>${org.wso2.carbon.extension.identity.x509certificate.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.conditional.auth.functions.server.feature.group</id>
                                    <version>${conditional.authentication.functions.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.healthcheck.server.feature.group</id>
                                    <version>${carbon.healthcheck.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.template.mgt.feature.group</id>
                                    <version>${carbon.identity.framework.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.template.mgt.server.feature.group</id>
                                    <version>${carbon.identity.framework.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.application.authenticator.fido2.server.feature.group</id>
                                    <version>${identity.local.auth.fido.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.uuid.generator.feature.group</id>
                                    <version>${carbon.commons.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.remotefetch.core.feature.group</id>
                                    <version>${org.wso2.carbon.identity.remotefetch.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.hash.provider.pbkdf2.server.feature.group</id>
                                    <version>${hashprovider.pbkdf2.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>

                                <feature>
                                    <id>org.wso2.carbon.extension.identity.helper.feature.group</id>
                                    <version>${identity.extension.utils}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.extension.identity.authenticator.totp.connector.feature.group</id>
                                    <version>${authenticator.totp.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.extension.identity.authenticator.backupcode.connector.feature.group</id>
                                    <version>${authenticator.backupcode.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.authenticator.emailotp.feature.group</id>
                                    <version>${authenticator.emailotp.version}</version>
                                </feature>

                                <feature>
                                    <id>org.wso2.carbon.identity.application.authenticator.oidc.server.feature.group</id>
                                    <version>${identity.outbound.auth.oidc.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.outbound.auth.oauth2.server.feature.group</id>
                                    <version>${identity.outbound.auth.oauth2.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.local.auth.magiclink.server.feature.group</id>
                                    <version>${authenticator.magiclink.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.provisioning.connector.scim2.server.feature.group</id>
                                    <version>${provisioning.connector.scim2.version}</version>
                                </feature>
                            </features>
                        </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>


                    <!-- Only IS Profile (IS Front-End + IS Back-End) -->
                    <execution>
                        <id>creating-is-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>is</profile>
                        </configuration>
                    </execution>
                    <execution>
                        <id>p2-profile-generation-for-is</id>
                        <phase>package</phase>
                        <goals>
                            <goal>p2-profile-gen</goal>
                        </goals>
                        <configuration>
                            <profile>is</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.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.logging.updater.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.databridge.datapublisher.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.stream.server.feature.group</id>
                                    <version>${carbon.analytics-common.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.databridge.commons.server.feature.group</id>
                                    <version>${carbon.analytics-common.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.user.store.remote.feature.group</id>
                                    <version>${identity.userstore.remote.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.system.statistics.feature.group</id>
                                    <version>${carbon.commons.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.security.mgt.feature.group</id>
                                    <version>${carbon.identity.framework.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.resource.properties.feature.group</id>
                                    <version>${carbon.registry.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.registry.profiles.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.identity.core.feature.group</id>
                                    <version>${carbon.identity.framework.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.provider.server.feature.group</id>
                                    <version>${identity.inbound.auth.openid.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.idp.mgt.feature.group</id>
                                    <version>${carbon.identity.framework.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.event.feature.group</id>
                                    <version>${carbon.identity.framework.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.mgt.feature.group</id>
                                    <version>${carbon.identity.framework.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.governance.feature.group</id>
                                    <version>${identity.governance.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.handler.event.account.lock.feature.group</id>
                                    <version>${identity.event.handler.account.lock.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.email.mgt.feature.group</id>
                                    <version>${identity.event.handler.notification.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.event.handler.notification.server.feature.group</id>
                                    <version>${identity.event.handler.notification.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.user.registration.feature.group</id>
                                    <version>${carbon.identity.framework.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.user.profile.feature.group</id>
                                    <version>${carbon.identity.framework.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.xacml.feature.group</id>
                                    <version>${carbon.identity.framework.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.sso.saml.feature.group</id>
                                    <version>${identity.inbound.auth.saml.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.idp.metadata.saml2.server.feature.group</id>
                                    <version>${identity.metadata.saml.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.sp.metadata.saml2.server.feature.group</id>
                                    <version>${identity.metadata.saml.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.mgt.feature.group</id>
                                    <version>${carbon.identity.framework.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.claim.mgt.feature.group</id>
                                    <version>${carbon.identity.framework.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.user.store.configuration.server.feature.group</id>
                                    <version>${carbon.identity.framework.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.authenticator.saml2.sso.feature.group</id>
                                    <version>${identity.carbon.auth.saml2.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.authenticator.mutualssl.feature.group</id>
                                    <version>${identity.carbon.auth.mutual.ssl.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.um.ws.service.feature.group</id>
                                    <version>${identity.user.ws.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.directory.service.mgr.feature.group</id>
                                    <version>${carbon.identity.framework.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.identity.styles.feature.group</id>
                                    <version>${project.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.sts.passive.feature.group</id>
                                    <version>${identity.inbound.auth.sts.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.identity.utils.feature.group</id>
                                    <version>${project.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.oauth.feature.group</id>
                                    <version>${identity.inbound.auth.oauth.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.scim.feature.group</id>
                                    <version>${identity.inbound.provisioning.scim.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.scim2.server.feature.group</id>
                                    <version>${identity.inbound.provisioning.scim2.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.mex.server.feature.group</id>
                                    <version>${identity.inbound.auth.sts.version}</version>
                                </feature>

                                <!-- Features required for Cloud Identity -->
                                <feature>
                                    <id>org.wso2.carbon.tenant.mgt.common.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.identity.ui.feature.group</id>
                                    <version>${project.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.registry.contentsearch.feature.group</id>
                                    <version>${carbon.registry.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.user.mgt.feature.group</id>
                                    <version>${carbon.identity.framework.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.event.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.identity.application.authentication.framework.server.feature.group
                                    </id>
                                    <version>${carbon.identity.framework.version}</version>
                                </feature>
                                <feature>
                                    <id>
                                        org.wso2.carbon.identity.configuration.mgt.server.feature.group
                                    </id>
                                    <version>${carbon.identity.framework.version}</version>
                                </feature>
                                <feature>
                                    <id>
                                        org.wso2.carbon.identity.cors.mgt.server.feature.group
                                    </id>
                                    <version>${carbon.identity.framework.version}</version>
                                </feature>
                                <feature>
                                    <id>
                                        org.wso2.carbon.identity.unique.claim.mgt.server.feature.group
                                    </id>
                                    <version>${carbon.identity.framework.version}</version>
                                </feature>
                                <feature>
                                    <id>
                                        org.wso2.carbon.identity.multi.attribute.login.mgt.server.feature.group
                                    </id>
                                    <version>${carbon.identity.framework.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.multi.attribute.login.service.server.feature.group</id>
                                    <version>${identity.governance.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.central.log.mgt.server.feature.group</id>
                                    <version>${carbon.identity.framework.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.identity.apps.common.server.feature.group</id>
                                    <version>${identity.apps.version}</version>
                                </feature>

                                <feature>
                                    <id>org.wso2.identity.apps.myaccount.server.feature.group</id>
                                    <version>${identity.apps.version}</version>
                                </feature>

                                <feature>
                                    <id>org.wso2.identity.apps.console.server.feature.group</id>
                                    <version>${identity.apps.version}</version>
                                </feature>

                                <feature>
                                    <id>org.wso2.identity.apps.feature.group</id>
                                    <version>${identity.apps.version}</version>
                                </feature>

                                <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.identity.application.authz.xacml.server.feature.group
                                    </id>
                                    <version>${identity.app.authz.xacml.version}</version>
                                </feature>
                                <feature>
                                    <id>
                                        org.wso2.carbon.identity.oauth2.validators.xacml.server.feature.group
                                    </id>
                                    <version>${identity.oauth.addons.version}</version>
                                </feature>
                                <feature>
                                    <id>
                                        org.wso2.carbon.identity.data.publisher.application.authentication.server.feature.group
                                    </id>
                                    <version>${identity.data.publisher.authentication.version}</version>
                                </feature>
                                <feature>
                                    <id>
                                        org.wso2.carbon.identity.data.publisher.oauth.server.feature.group
                                    </id>
                                    <version>${identity.data.publisher.oauth.version}</version>
                                </feature>
                                <feature>
                                    <id>
                                        org.wso2.carbon.identity.data.publisher.audit.user.operation.server.feature.group
                                    </id>
                                    <version>${identity.data.publisher.audit.version}</version>
                                </feature>
                                <feature>
                                    <id>
                                        org.wso2.carbon.identity.application.authenticator.requestpath.basicauth.server.feature.group
                                    </id>
                                    <version>${identity.outbound.auth.requestpath.basicauth.version}</version>
                                </feature>
                                <feature>
                                    <id>
                                        org.wso2.carbon.identity.application.authenticator.requestpath.oauth.server.feature.group
                                    </id>
                                    <version>${identity.outbound.auth.requestpath.oauth.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.provisioning.server.feature.group</id>
                                    <version>${carbon.identity.framework.version}</version>
                                </feature>

                                <feature>
                                    <id>org.wso2.carbon.identity.tools.saml.validator.feature.group</id>
                                    <version>${identity.tool.samlsso.validator.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.thrift.authentication.feature.group</id>
                                    <version>${carbon.identity.framework.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.notification.mgt.feature.group</id>
                                    <version>${carbon.identity.framework.version}</version>
                                </feature>
                                <feature>
                                    <id>org.apache.axis2.transport.mail.feature.group</id>
                                    <version>${axis2-transports.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.user.account.association.feature.group</id>
                                    <version>${identity.user.account.association.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.workflow.mgt.feature.group</id>
                                    <version>${carbon.identity.framework.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.workflow.impl.feature.group</id>
                                    <version>${identity.workflow.impl.bps.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.workflow.template.server.feature.group</id>
                                    <version>${identity.workflow.template.multisteps.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.ciphertool.feature.group</id>
                                    <version>${cipher-tool.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.user.mgt.workflow.feature.group</id>
                                    <version>${identity.user.workflow.version}</version>
                                </feature>

                                <!-- Auth/Authz for Rest API  -->
                                <feature>
                                    <id>org.wso2.carbon.identity.auth.server.feature.group</id>
                                    <version>${identity.carbon.auth.rest.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.authz.server.feature.group</id>
                                    <version>${identity.carbon.auth.rest.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.context.rewrite.server.feature.group</id>
                                    <version>${identity.carbon.auth.rest.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.consent.mgt.server.feature.group</id>
                                    <version>${carbon.consent.mgt.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.consent.mgt.server.feature.group</id>
                                    <version>${carbon.identity.framework.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.oauth.uma.server.feature.group</id>
                                    <version>${carbon.identity.oauth.uma.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.extension.identity.x509Certificate.validation.server.feature.group</id>
                                    <version>${org.wso2.carbon.extension.identity.x509certificate.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.conditional.auth.functions.server.feature.group</id>
                                    <version>${conditional.authentication.functions.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.healthcheck.server.feature.group</id>
                                    <version>${carbon.healthcheck.version}</version>
                                </feature>
                                <!--FIDO2/Webauthn feature-->
                                <feature>
                                    <id>org.wso2.carbon.identity.application.authenticator.fido2.server.feature.group</id>
                                    <version>${identity.local.auth.fido.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.template.mgt.feature.group</id>
                                    <version>${carbon.identity.framework.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.uuid.generator.feature.group</id>
                                    <version>${carbon.commons.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.remotefetch.core.feature.group</id>
                                    <version>${org.wso2.carbon.identity.remotefetch.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.hash.provider.pbkdf2.server.feature.group</id>
                                    <version>${hashprovider.pbkdf2.version}</version>
                                </feature>

                                <!-- Connectors -->
                                <feature>
                                    <id>org.wso2.carbon.extension.identity.helper.feature.group</id>
                                    <version>${identity.extension.utils}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.extension.identity.authenticator.totp.connector.feature.group</id>
                                    <version>${authenticator.totp.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.extension.identity.authenticator.backupcode.connector.feature.group</id>
                                    <version>${authenticator.backupcode.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.authenticator.emailotp.feature.group</id>
                                    <version>${authenticator.emailotp.version}</version>
                                </feature>
                            </features>
                        </configuration>
                    </execution>


                    <!-- Worker Profile (IS Back-End) -->
                    <execution>
                        <id>creating-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>worker</profile>
                        </configuration>
                    </execution>
                    <execution>
                        <id>p2-profile-generation-for-worker</id>
                        <phase>package</phase>
                        <goals>
                            <goal>p2-profile-gen</goal>
                        </goals>
                        <configuration>
                            <profile>worker</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.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.logging.updater.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.databridge.datapublisher.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.stream.server.feature.group</id>
                                    <version>${carbon.analytics-common.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.databridge.commons.server.feature.group</id>
                                    <version>${carbon.analytics-common.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.user.store.remote.feature.group</id>
                                    <version>${identity.userstore.remote.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.server.feature.group</id>
                                    <version>${carbon.identity.framework.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.resource.properties.server.feature.group</id>
                                    <version>${carbon.registry.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.registry.profiles.server.feature.group</id>
                                    <version>${carbon.registry.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.core.server.feature.group</id>
                                    <version>${carbon.identity.framework.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.provider.server.feature.group</id>
                                    <version>${identity.inbound.auth.openid.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.idp.mgt.server.feature.group</id>
                                    <version>${carbon.identity.framework.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.event.server.feature.group</id>
                                    <version>${carbon.identity.framework.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.mgt.server.feature.group</id>
                                    <version>${carbon.identity.framework.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.governance.server.feature.group</id>
                                    <version>${identity.governance.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.handler.event.account.lock.feature.group</id>
                                    <version>${identity.event.handler.account.lock.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.user.registration.server.feature.group</id>
                                    <version>${carbon.identity.framework.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.user.profile.server.feature.group</id>
                                    <version>${carbon.identity.framework.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.xacml.server.feature.group</id>
                                    <version>${carbon.identity.framework.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.sso.saml.server.feature.group</id>
                                    <version>${identity.inbound.auth.saml.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.idp.metadata.saml2.server.feature.group</id>
                                    <version>${identity.metadata.saml.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.sp.metadata.saml2.server.feature.group</id>
                                    <version>${identity.metadata.saml.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.mgt.server.feature.group</id>
                                    <version>${carbon.identity.framework.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.claim.mgt.server.feature.group</id>
                                    <version>${carbon.identity.framework.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.authenticator.saml2.sso.server.feature.group</id>
                                    <version>${identity.carbon.auth.saml2.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.authenticator.mutualssl.feature.group</id>
                                    <version>${identity.carbon.auth.mutual.ssl.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.um.ws.service.server.feature.group</id>
                                    <version>${identity.user.ws.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.directory.service.mgr.server.feature.group</id>
                                    <version>${carbon.identity.framework.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.sts.passive.server.feature.group</id>
                                    <version>${identity.inbound.auth.sts.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.identity.utils.feature.group</id>
                                    <version>${project.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.oauth.server.feature.group</id>
                                    <version>${identity.inbound.auth.oauth.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.scim.feature.group</id>
                                    <version>${identity.inbound.provisioning.scim.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.scim2.server.feature.group</id>
                                    <version>${identity.inbound.provisioning.scim2.version}</version>
                                </feature>

                                <!-- Features required for Cloud Identity -->
                                <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.server.feature.group</id>
                                    <version>${carbon.multitenancy.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.registry.contentsearch.server.feature.group</id>
                                    <version>${carbon.registry.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.user.mgt.server.feature.group</id>
                                    <version>${carbon.identity.framework.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.event.server.feature.group</id>
                                    <version>${carbon.commons.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.deployment.synchronizer.server.feature.group</id>
                                    <version>${carbon.commons.version}</version>
                                </feature>

                                <feature>
                                    <id>
                                        org.wso2.carbon.identity.application.authentication.framework.server.feature.group
                                    </id>
                                    <version>${carbon.identity.framework.version}</version>
                                </feature>
                                <feature>
                                    <id>
                                        org.wso2.carbon.identity.configuration.mgt.server.feature.group
                                    </id>
                                    <version>${carbon.identity.framework.version}</version>
                                </feature>
                                <feature>
                                    <id>
                                        org.wso2.carbon.identity.cors.mgt.server.feature.group
                                    </id>
                                    <version>${carbon.identity.framework.version}</version>
                                </feature>
                                <feature>
                                    <id>
                                        org.wso2.carbon.identity.unique.claim.mgt.server.feature.group
                                    </id>
                                    <version>${carbon.identity.framework.version}</version>
                                </feature>
                                <feature>
                                    <id>
                                        org.wso2.carbon.identity.multi.attribute.login.mgt.server.feature.group
                                    </id>
                                    <version>${carbon.identity.framework.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.multi.attribute.login.service.server.feature.group</id>
                                    <version>${identity.governance.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.central.log.mgt.server.feature.group</id>
                                    <version>${carbon.identity.framework.version}</version>
                                </feature>
                                <feature>
                                    <id>
                                        org.wso2.identity.apps.feature.group
                                    </id>
                                    <version>${identity.apps.version}</version>
                                </feature>

                                <feature>
                                    <id>
                                        org.wso2.carbon.identity.application.authz.xacml.server.feature.group
                                    </id>
                                    <version>${identity.app.authz.xacml.version}</version>
                                </feature>
                                <feature>
                                    <id>
                                        org.wso2.carbon.identity.oauth2.validators.xacml.server.feature.group
                                    </id>
                                    <version>${identity.oauth.addons.version}</version>
                                </feature>
                                <feature>
                                    <id>
                                        org.wso2.carbon.identity.data.publisher.application.authentication.server.feature.group
                                    </id>
                                    <version>${identity.data.publisher.authentication.version}</version>
                                </feature>
                                <feature>
                                    <id>
                                        org.wso2.carbon.identity.data.publisher.oauth.server.feature.group
                                    </id>
                                    <version>${identity.data.publisher.oauth.version}</version>
                                </feature>
                                <feature>
                                    <id>
                                        org.wso2.carbon.identity.data.publisher.audit.user.operation.server.feature.group
                                    </id>
                                    <version>${identity.data.publisher.audit.version}</version>
                                </feature>
                                <feature>
                                    <id>
                                        org.wso2.carbon.identity.application.authenticator.requestpath.basicauth.server.feature.group
                                    </id>
                                    <version>${identity.outbound.auth.requestpath.basicauth.version}</version>
                                </feature>
                                <feature>
                                    <id>
                                        org.wso2.carbon.identity.application.authenticator.requestpath.oauth.server.feature.group
                                    </id>
                                    <version>${identity.outbound.auth.requestpath.oauth.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.provisioning.server.feature.group</id>
                                    <version>${carbon.identity.framework.version}</version>
                                </feature>

                                <feature>
                                    <id>org.wso2.carbon.identity.tools.saml.validator.server.feature.group</id>
                                    <version>${identity.tool.samlsso.validator.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.thrift.authentication.feature.group</id>
                                    <version>${carbon.identity.framework.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.notification.mgt.server.feature.group</id>
                                    <version>${carbon.identity.framework.version}</version>
                                </feature>
                                <feature>
                                    <id>org.apache.axis2.transport.mail.feature.group</id>
                                    <version>${axis2-transports.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.user.account.association.server.feature.group</id>
                                    <version>${identity.user.account.association.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.workflow.mgt.server.feature.group</id>
                                    <version>${carbon.identity.framework.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.workflow.impl.feature.group</id>
                                    <version>${identity.workflow.impl.bps.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.workflow.template.server.feature.group</id>
                                    <version>${identity.workflow.template.multisteps.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.user.mgt.workflow.server.feature.group</id>
                                    <version>${identity.user.workflow.version}</version>
                                </feature>

                                <!-- Auth/Authz for Rest API  -->
                                <feature>
                                    <id>org.wso2.carbon.identity.auth.server.feature.group</id>
                                    <version>${identity.carbon.auth.rest.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.authz.server.feature.group</id>
                                    <version>${identity.carbon.auth.rest.version}</version>
                                </feature>

                                <feature>
                                    <id>org.wso2.carbon.identity.context.rewrite.server.feature.group</id>
                                    <version>${identity.carbon.auth.rest.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.cors.server.feature.group</id>
                                    <version>${identity.carbon.auth.rest.version}</version>
                                </feature>

                                <!-- captcha for tomcat filter  -->
                                <feature>
                                    <id>org.wso2.carbon.identity.captcha.server.feature.group</id>
                                    <version>${identity.governance.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.consent.mgt.server.feature.group</id>
                                    <version>${carbon.consent.mgt.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.consent.mgt.server.feature.group</id>
                                    <version>${carbon.identity.framework.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.oauth.uma.server.feature.group</id>
                                    <version>${carbon.identity.oauth.uma.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.extension.identity.x509Certificate.validation.server.feature.group</id>
                                    <version>${org.wso2.carbon.extension.identity.x509certificate.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.conditional.auth.functions.server.feature.group</id>
                                    <version>${conditional.authentication.functions.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.healthcheck.server.feature.group</id>
                                    <version>${carbon.healthcheck.version}</version>
                                </feature>
                                <!--FIDO2/Webauthn feature-->
                                <feature>
                                    <id>org.wso2.carbon.identity.application.authenticator.fido2.server.feature.group</id>
                                    <version>${identity.local.auth.fido.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.template.mgt.feature.group</id>
                                    <version>${carbon.identity.framework.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.uuid.generator.server.feature.group</id>
                                    <version>${carbon.commons.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.remotefetch.core.feature.group</id>
                                    <version>${org.wso2.carbon.identity.remotefetch.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.hash.provider.pbkdf2.server.feature.group</id>
                                    <version>${hashprovider.pbkdf2.version}</version>
                                </feature>

                                <!-- Connectors -->
                                <feature>
                                    <id>org.wso2.carbon.extension.identity.helper.feature.group</id>
                                    <version>${identity.extension.utils}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.extension.identity.authenticator.totp.connector.feature.group</id>
                                    <version>${authenticator.totp.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.extension.identity.authenticator.backupcode.connector.feature.group</id>
                                    <version>${authenticator.backupcode.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.authenticator.emailotp.feature.group</id>
                                    <version>${authenticator.emailotp.version}</version>
                                </feature>
                            </features>
                        </configuration>
                    </execution>


                    <!-- Workflow Profile (BPS Back-End) -->
                    <execution>
                        <id>creating-workflow-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>workflow</profile>
                        </configuration>
                    </execution>
                    <execution>
                        <id>p2-profile-generation-for-workflow</id>
                        <phase>package</phase>
                        <goals>
                            <goal>p2-profile-gen</goal>
                        </goals>
                        <configuration>
                            <profile>workflow</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>

                                <!-- 1 Carbon Kernel -->
                                <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>

                                <!--2 Carbon Business Process -->
                                <feature>
                                    <id>org.wso2.carbon.bpel.server.feature.group</id>
                                    <version>${carbon.business-process.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.humantask.server.feature.group</id>
                                    <version>${carbon.business-process.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.attachment.mgt.feature.group</id>
                                    <version>${carbon.business-process.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.unifiedendpoint.server.feature.group</id>
                                    <version>${carbon.business-process.version}</version>
                                </feature>


                                <!-- 3 Carbon Deployment -->
                                <feature>
                                    <id>org.wso2.carbon.webapp.mgt.server.feature.group</id>
                                    <version>${carbon.deployment.version}</version>
                                </feature>

                                <!-- 4 Carbon Registry -->
                                <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.core.ui.feature.group</id>
                                    <version>${carbon.registry.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.registry.core.common.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>


                                <!--6  Carbon Commons-->

                                <feature>
                                    <id>org.wso2.carbon.tenant.mgt.common.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.logging.view.feature.group</id>
                                    <version>${carbon.commons.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.deployment.synchronizer.feature.group</id>
                                    <version>${carbon.commons.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.event.server.feature.group</id>
                                    <version>${carbon.commons.version}</version>
                                </feature>


                                <!-- 7 Carbon Multitenancy -->
                                <feature>
                                    <id>org.wso2.carbon.tenant.common.feature.group</id>
                                    <version>${carbon.multitenancy.version}</version>
                                </feature>

                                <!-- 8 Carbon Identity -->
                                <feature>
                                    <id>org.wso2.carbon.security.mgt.server.feature.group</id>
                                    <version>${carbon.identity.framework.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.user.mgt.server.feature.group</id>
                                    <version>${carbon.identity.framework.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.user.store.remote.feature.group</id>
                                    <version>${identity.userstore.remote.version}</version>
                                </feature>


                                <!-- 6 Carbon Analytics Common -->
                                <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.sms.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.databridge.datapublisher.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.databridge.commons.thrift.server.feature.group</id>
                                    <version>${carbon.analytics-common.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.databridge.commons.server.feature.group</id>
                                    <version>${carbon.analytics-common.version}</version>
                                </feature>

                                <feature>
                                    <id>org.wso2.carbon.registry.contentsearch.feature.group</id>
                                    <version>${carbon.registry.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.event.stream.server.feature.group</id>
                                    <version>${carbon.analytics-common.version}</version>
                                </feature>

                                <feature>
                                    <id>org.wso2.carbon.extension.identity.x509Certificate.validation.server.feature.group</id>
                                    <version>${org.wso2.carbon.extension.identity.x509certificate.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.conditional.auth.functions.server.feature.group</id>
                                    <version>${conditional.authentication.functions.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.healthcheck.server.feature.group</id>
                                    <version>${carbon.healthcheck.version}</version>
                                </feature>
                                <!--FIDO2/Webauthn feature-->
                                <feature>
                                    <id>org.wso2.carbon.identity.application.authenticator.fido2.server.feature.group</id>
                                    <version>${identity.local.auth.fido.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.template.mgt.feature.group</id>
                                    <version>${carbon.identity.framework.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.uuid.generator.server.feature.group</id>
                                    <version>${carbon.commons.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.uuid.generator.feature.group</id>
                                    <version>${carbon.commons.version}</version>
                                </feature>
                                <feature>
                                    <id>org.wso2.carbon.identity.remotefetch.core.feature.group</id>
                                    <version>${org.wso2.carbon.identity.remotefetch.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>
