<?xml version="1.0" encoding="UTF-8"?>
<!--
 ~ Copyright (c) 2017-2022, WSO2 LLC (http://wso2.com) All Rights Reserved.
 ~
 ~ WSO2 LLC licenses this file to you 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.
 -->
<assembly>
    <id>bin</id>
    <formats>
        <format>zip</format>
    </formats>
    <includeBaseDirectory>false</includeBaseDirectory>
    <fileSets>
        <fileSet>
            <directory>target/wso2carbon-core-${carbon.kernel.version}</directory>
            <outputDirectory>wso2am-${pom.version}</outputDirectory>
            <excludes>
                <exclude>**/bin/wso2server.sh</exclude>
                <exclude>**/bin/carbondump.sh</exclude>
                <exclude>**/bin/wso2server.bat</exclude>
                <exclude>**/conf/axis2/*.j2</exclude>
                <exclude>**/conf/axis2/axis2.xml</exclude>
                <exclude>**/conf/axis2/axis2.xml_NHTTP</exclude>
                <exclude>**/conf/axis2/axis2.xml_PT</exclude>
                <exclude>**/conf/axis2/tenant-axis2.xml</exclude>
                <exclude>**/conf/synapse.xml</exclude>
                <exclude>**/conf/security/Owasp.CsrfGuard.Carbon.properties</exclude>
                <exclude>**/conf/security/authenticators.xml</exclude>
                <exclude>**/conf/tomcat/carbon/WEB-INF/web.xml</exclude>
                <exclude>**/conf/tomcat/web.xml</exclude>
                <exclude>**/conf/tomcat/catalina-server.xml</exclude>
                <exclude>**/conf/tomcat/catalina-server.xml.j2</exclude>
                <exclude>**/conf/tomcat/carbon/WEB-INF/web.xml.j2</exclude>
                <exclude>**/log4j2.properties</exclude>
                <exclude>**/pax-logging.properties</exclude>
                <exclude>**/services/sample01.aar</exclude>
                <exclude>**/repository/services/version/**</exclude>
                <exclude>**/version.txt</exclude>
                <exclude>**/README.txt</exclude>
                <exclude>**/LICENSE.txt</exclude>
                <exclude>**/INSTALL.txt</exclude>
                <exclude>**/release-notes.html</exclude>
                <exclude>**/carbon.xml</exclude>
                <exclude>**/carbon.xml.j2</exclude>
                <exclude>**/registry.xml</exclude>
                <exclude>**/registry.xml.j2</exclude>
                <exclude>**/identity.xml</exclude>
                <exclude>**/user-mgt.xml</exclude>
                <exclude>**/metrics.xml</exclude>
                <exclude>**/master-datasources.xml</exclude>
                <exclude>**/master-datasources.xml.j2</exclude>
                <exclude>**/repository/components/plugins/woden_${woden.version}.jar</exclude>
                <exclude>**/secret-conf.properties</exclude>
                <exclude>**/repository/components/plugins/saxon*.jar</exclude>

                <!-- Remove multiple versions of same jar for 1.10.x-->
                <exclude>**/repository/components/plugins/js_1.6.0.R7-wso2v1.jar</exclude>
                <exclude>**/repository/components/plugins/com.fasterxml.jackson.core.jackson-annotations_2.9.1.jar
                </exclude>
                <exclude>**/repository/components/plugins/com.fasterxml.jackson.core.jackson-databind_2.9.1.jar
                </exclude>
                <exclude>**/repository/components/plugins/com.fasterxml.jackson.core.jackson-core_2.9.1.jar</exclude>
                <exclude>**/repository/components/plugins/json_1.0.0.wso2v1.jar</exclude>
                <exclude>**/repository/components/plugins/wss4j_1.5.11.wso2v9.jar</exclude>
                <exclude>**/repository/components/plugins/nimbus-jose-jwt_2.26.1.wso2v2.jar</exclude>
                <exclude>**/repository/components/plugins/net.minidev.json-smart_1.2.0.jar</exclude>
                <!--<exclude>**/repository/components/plugins/wss4j_1.5.11.wso2v10.jar</exclude>-->
                <exclude>**/repository/components/plugins/commons-io_2.0.0.wso2v2.jar</exclude>
                <exclude>**/repository/components/plugins/com.google.gson_2.1.0.jar</exclude>
                <exclude>**/repository/components/plugins/com.google.gson_2.2.4.jar</exclude>
                <exclude>**/repository/components/plugins/com.google.gson_2.5.0.jar</exclude>
                <exclude>**/repository/components/plugins/com.google.gson_2.3.1.jar</exclude>
                <exclude>**/repository/components/plugins/com.google.gson_2.9.0.jar</exclude>
                <!--<exclude>**/repository/components/plugins/org.wso2.carbon.captcha.mgt_4.2.0.jar</exclude>-->
                <exclude>**/repository/components/plugins/guava_12.0.0.wso2v1.jar</exclude>
                <exclude>**/repository/components/plugins/wadl-core_1.1.3.wso2v2.jar</exclude>
                <exclude>**/repository/components/plugins/org.wso2.carbon.hostobjects.sso_4.3.2.jar</exclude>
                <exclude>**/repository/components/plugins/com.google.guava_15.0.0.jar</exclude>
                <exclude>**/repository/components/plugins/httpclient_4.3.2.wso2v1.jar</exclude>
                <exclude>**/repository/components/plugins/httpclient_4.3.1.wso2v2.jar</exclude>
                <exclude>**/repository/components/plugins/org.wso2.carbon.identity.oauth.stub_5.0.8.jar</exclude>
                <exclude>**/repository/components/plugins/org.wso2.carbon.ui.menu.stratos_2.2.0.jar</exclude>
                <!--This has excluded because commons-scxml_0.9.0.wso2v1 exports the same version-->
                <exclude>**/repository/components/plugins/commons-digester_1.8.1.wso2v1.jar</exclude>
                <!--<exclude>**/repository/components/plugins/waffle_1.4.0.wso2v1.jar</exclude>-->
                <!--<exclude>**/repository/components/plugins/compass_2.0.1.wso2v2.jar</exclude>-->
                <!--<exclude>**/repository/components/plugins/poi_3.9.0.wso2v1.jar</exclude>-->
                <exclude>**/repository/components/plugins/net.minidev.json-smart_2.3.0.jar</exclude>

                <!-- Remove jars which are not needed-->
                <exclude>**/repository/components/plugins/org.wso2.carbon.feature.mgt.stub_${carbon.kernel.version}.jar</exclude>
                <exclude>**/repository/components/plugins/org.wso2.carbon.feature.mgt.services_${carbon.kernel.version}.jar</exclude>
                <exclude>**/repository/components/plugins/hadoop-client_2.7.2.wso2v1.jar</exclude>
                <exclude>**/repository/components/plugins/org.apache.servicemix.bundles.jaxb-api-2.0_4.0.0.m1.jar
                </exclude>
                <exclude>**/repository/deployment/client/modules/*.jar</exclude>

                <exclude>**/repository/components/plugins/cassandra-thrift_1.2.13.wso2v4.jar</exclude>
                <exclude>**/repository/components/plugins/org.wso2.carbon.event.output.adapter.cassandra_*.jar</exclude>
                <exclude>**/repository/components/plugins/org.wso2.carbon.identity.sso.agent_*.jar</exclude>

                <exclude>**/repository/components/plugins/netty-all_4.0.23.wso2v1.jar</exclude>
                <exclude>**/repository/components/plugins/org.wso2.carbon.apimgt.rest.api.util_*.jar</exclude>
                <exclude>
                    **/repository/components/plugins/org.wso2.carbon.event.output.adapter.sms_${carbon.analytics.common.version}.jar
                </exclude>
                <exclude>**/repository/components/plugins/org.wso2.carbon.event.output.adapter.sms_5.1.51.SNAPSHOT.jar
                </exclude><!-- TODO remove this . added this for snapshot only-->
                <exclude>**/repository/components/plugins/siddhi-extension-event-table_${siddhi.version}.jar</exclude>
                <exclude>**/repository/components/plugins/com.jayway.jsonpath.json-path_0.9.1.jar</exclude>
                <exclude>**/repository/components/plugins/org.apache.velocity_1.7.0.jar</exclude>
                <!-- this is needed for andes in traffic-manager profile -->
                <!--exclude>**/repository/components/plugins/libthrift_0.9.2.wso2v1.jar</exclude-->
                <exclude>**/repository/components/plugins/org.yaml.snakeyaml_1.11.0.jar</exclude>
                <exclude>**/repository/components/plugins/wsdl4j_1.6.2.wso2v4.jar</exclude>
                <exclude>**/repository/components/plugins/org.antlr.antlr4-runtime-osgi_4.5.0.jar</exclude>
                <exclude>**/repository/components/plugins/org.objectweb.asm_5.2.0.jar</exclude>
                <exclude>**/repository/components/plugins/httpcore_4.4.14.wso2v1.jar</exclude>
                <!--This jar is not used in apim-->
                <exclude>**/repository/components/plugins/swagger-parser_2.0.20.wso2v1.jar</exclude>
                <exclude>**/repository/components/plugins/libthrift_0.9.2.wso2v1.jar</exclude>
                <!--<exclude>**/repository/components/plugins/org.wso2.carbon.tenant.redirector.servlet*.jar</exclude>-->
                <exclude>**/lib/endorsed/xalan*.jar</exclude>
                <exclude>**/conf/thrift-authentication.xml</exclude>
                <exclude>**/conf/email/email-admin-config.xml</exclude>
                <exclude>
                    **/repository/components/features/org.wso2.carbon.apimgt.store_${carbon.apimgt.version}/devportal/**
                </exclude>
                <exclude>
                    **/repository/components/features/org.wso2.carbon.apimgt.admin_${carbon.apimgt.version}/admin/**
                </exclude>
                <exclude>
                    **/repository/components/features/org.wso2.carbon.apimgt.store_${carbon.apimgt.version}/admin-old/**
                </exclude>
                <exclude>
                    **/repository/components/features/org.wso2.carbon.apimgt.publisher_${carbon.apimgt.version}/publisher/**
                </exclude>
                <exclude>
                    **/repository/components/features/org.wso2.carbon.apimgt.core_${carbon.apimgt.version}/libs/**
                </exclude>

                <exclude>**/repository/deployment/server/webapps/api#identity#entitlement.war</exclude>
                <exclude>**/repository/deployment/server/webapps/api#identity#oauth2#dcr#v1.0.war</exclude>
                <exclude>**/repository/deployment/server/webapps/outputwebsocket.war</exclude>
                <exclude>**/repository/deployment/server/webapps/inputwebsocket.war</exclude>
                <exclude>**/repository/resources/conf/default.json</exclude>
                <exclude>**/repository/resources/conf/infer.json</exclude>
                <exclude>**/repository/resources/conf/validator.json</exclude>
                <exclude>**/repository/resources/conf/key-mappings.json</exclude>
                <exclude>**/repository/resources/conf/unit-resolve.json</exclude>
                <exclude>**/cipher-text.properties.j2</exclude>
                <exclude>**/repository/conf/deployment.toml</exclude>
                <exclude>**/repository/resources/conf/templates/repository/conf/etc/tasks-config.xml.j2</exclude>
                <exclude>**/repository/components/plugins/org.apache.aries.blueprint*.jar</exclude>
                <exclude>**/repository/components/plugins/org.apache.aries.proxy*.jar</exclude>
                <exclude>**/repository/components/plugins/org.apache.aries.util*.jar</exclude>
                <exclude>**/repository/components/plugins/slf4j*.jar</exclude>
                <exclude>**/repository/components/plugins/commons-io_2.4.0.wso2v1.jar</exclude>
                <exclude>**/repository/components/plugins/opensaml_3.3.1.wso2v1.jar</exclude>
                <exclude>**/repository/components/plugins/opensaml_3.3.1.wso2v2.jar</exclude>
                <exclude>**/repository/components/plugins/opensaml_3.3.1.wso2v4.jar</exclude>
                <exclude>**/lib/xalan*.jar</exclude>
            </excludes>
        </fileSet>
        <fileSet>
            <directory>target/diagnostics-tool</directory>
            <outputDirectory>wso2am-${pom.version}/diagnostics-tool</outputDirectory>
            <excludes>
                <exclude>bin/diagnostics</exclude>
                <exclude>lib/**</exclude>
            </excludes>
        </fileSet>
        <fileSet>
            <directory>target/diagnostics-tool/lib</directory>
            <outputDirectory>wso2am-${pom.version}/lib</outputDirectory>
            <excludes>
                <exclude>antlr-runtime-*.jar</exclude>
                <exclude>gson*.jar</exclude>
                <exclude>commons-lang3-*.jar</exclude>
                <exclude>log4j-api-*.jar</exclude>
                <exclude>log4j-core-*.jar</exclude>
                <exclude>cava-toml-*.jar</exclude>
            </excludes>
        </fileSet>
        <fileSet>
            <directory>target/wso2carbon-core-${carbon.kernel.version}</directory>
            <outputDirectory>wso2am-${pom.version}</outputDirectory>
            <includes>
                <include>**/*.sh</include>
            </includes>
            <excludes>
                <exclude>**/wso2server.sh</exclude>
                <exclude>**/xalan*.jar</exclude>
            </excludes>
            <fileMode>755</fileMode>
        </fileSet>
        <fileSet>
            <directory>
                ../../p2-profile/product/target/wso2carbon-core-${carbon.kernel.version}/repository/components/lib
            </directory>
            <outputDirectory>wso2am-${pom.version}/repository/components/lib</outputDirectory>
            <includes>
                <include>**/httpmime-4.3.6.jar</include>
                <include>**/encoder-1.1.jar</include>
            </includes>
        </fileSet>
        <fileSet>
            <directory>../../p2-profile/product/target/wso2carbon-core-${carbon.kernel.version}/lib/endorsed</directory>
            <outputDirectory>wso2am-${pom.version}/lib/endorsed</outputDirectory>
            <includes>
                <include>**/Saxon-HE-9.5.1-8.jar</include>
            </includes>
        </fileSet>
        <fileSet>
            <directory>../../p2-profile/product/target/wso2carbon-core-${carbon.kernel.version}/repository/conf
            </directory>
            <outputDirectory>wso2am-${pom.version}/repository/conf</outputDirectory>
            <includes>
                <include>**/api-manager.xml</include>
            </includes>
        </fileSet>
        <!-- Add component level conf templates       -->
        <fileSet>
            <directory>
                ../../p2-profile/product/target/wso2carbon-core-${carbon.kernel.version}/repository/resources/conf
            </directory>
            <outputDirectory>wso2am-${pom.version}/repository/resources/conf/</outputDirectory>
            <excludes>
                <exclude>**/*.json</exclude>
                <exclude>**/registry.xml.j2</exclude>
                <exclude>**/authenticators.xml.j2</exclude>
                <exclude>**/cipher-text.properties.j2</exclude>
                <exclude>**/conf/axis2/*.j2</exclude>
                <exclude>**/catalina-server.xml.j2</exclude>
                <exclude>**/conf/tomcat/carbon/WEB-INF/web.xml.j2</exclude>
                <exclude>**/webapps/authenticationendpoint/WEB-INF/web.xml.j2</exclude>
            </excludes>
        </fileSet>
        <fileSet>
            <directory>../../p2-profile/product/target/wso2carbon-core-${carbon.kernel.version}/repository/database
            </directory>
            <outputDirectory>wso2am-${pom.version}/repository/database</outputDirectory>
            <includes>
                <include>**/*.mv.db</include>
            </includes>
        </fileSet>
        <!-- Add templates-->
        <fileSet>
            <directory>src/main/resources/conf/templates</directory>
            <outputDirectory>wso2am-${pom.version}/repository/resources/conf/templates</outputDirectory>
        </fileSet>
        <fileSet>
            <directory>src/main/resources/conf/deployment-templates</directory>
            <outputDirectory>wso2am-${pom.version}/repository/resources/conf/deployment-templates</outputDirectory>
        </fileSet>
        <fileSet>
            <directory>./src/main/lib</directory>
            <outputDirectory>wso2am-${pom.version}/lib</outputDirectory>
        </fileSet>
        <fileSet>
            <directory>src/main/conf/synapse-configs</directory>
            <outputDirectory>wso2am-${pom.version}/repository/deployment/server/synapse-configs</outputDirectory>
        </fileSet>
        <fileSet>
            <directory>src/main/conf/synapse-configs/default</directory>
            <outputDirectory>wso2am-${pom.version}/repository/resources/apim-synapse-config/</outputDirectory>
            <includes>
                <include>**/registry.xml</include>
            </includes>
        </fileSet>
        <fileSet>
            <directory>src/main/conf/synapse-configs/default/sequences</directory>
            <outputDirectory>wso2am-${pom.version}/repository/resources/apim-synapse-config/</outputDirectory>
        </fileSet>
        <fileSet>
            <directory>src/main/conf/synapse-configs/default/inbound-endpoints</directory>
            <outputDirectory>wso2am-${pom.version}/repository/resources/apim-synapse-config/</outputDirectory>
        </fileSet>
        <fileSet>
            <directory>
                ../../p2-profile/product/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/advanced/
            </directory>
            <outputDirectory>wso2am-${pom.version}/repository/conf/advanced</outputDirectory>
            <includes>
                <include>**/qpid-config.xml</include>
                <include>**/qpid-jmxremote.access</include>
                <include>**/qpid-virtualhosts.xml</include>
            </includes>
        </fileSet>
        <fileSet>
            <directory>
                ../../p2-profile/product/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/identity/
            </directory>
            <outputDirectory>wso2am-${pom.version}/repository/conf/identity</outputDirectory>
        </fileSet>

        <!-- Start API Manager related -->
        <!--fileSet>
            <directory>
                ../../p2-profile/product/target/wso2carbon-core-${carbon.kernel.version}/dbscripts/identity/
            </directory>
            <outputDirectory>wso2am-${pom.version}/dbscripts/identity</outputDirectory>
            <includes>
                <include>**/**.sql</include>
            </includes>
        </fileSet-->
        <fileSet>
            <directory>
                ../../p2-profile/product/target/wso2carbon-core-${carbon.kernel.version}/dbscripts/apimgt/
            </directory>
            <outputDirectory>wso2am-${pom.version}/dbscripts/apimgt</outputDirectory>
            <includes>
                <include>**/**.sql</include>
            </includes>
        </fileSet>
        <fileSet>
            <directory>
                ../../p2-profile/product/target/wso2carbon-core-${carbon.kernel.version}/dbscripts/multi-dc/
            </directory>
            <outputDirectory>wso2am-${pom.version}/dbscripts/multi-dc</outputDirectory>
            <includes>
                <include>**/**.sql</include>
                <include>**/**.txt</include>
            </includes>
        </fileSet>
        <!--  copying modules xml -->
        <fileSet>
            <directory>
                ../../p2-profile/product/target/wso2carbon-core-${carbon.kernel.version}/repository/deployment/server/webapps
            </directory>
            <outputDirectory>${pom.artifactId}-${pom.version}/repository/deployment/server/webapps</outputDirectory>
            <includes>
                <include>devportal/</include>
                <include>admin/</include>
                <include>publisher/</include>
            </includes>
        </fileSet>
        <fileSet>
            <directory>../../p2-profile/product/target/wso2carbon-core-${carbon.kernel.version}/repository/modules
            </directory>
            <outputDirectory>${pom.artifactId}-${pom.version}/modules/</outputDirectory>
            <includes>
                <include>*/**</include>
            </includes>
        </fileSet>
        <!-- Copying styles for tenants -->
        <fileSet>
            <directory>../../../modules/styles/service/src/main/resources/web/styles/images</directory>
            <outputDirectory>wso2am-${pom.version}/resources/allthemes/Default/images</outputDirectory>
        </fileSet>
        <fileSet>
            <directory>../../../modules/styles/service/src/main/resources/web/styles/css</directory>
            <outputDirectory>wso2am-${pom.version}/resources/allthemes/Default/admin</outputDirectory>
        </fileSet>
        <fileSet>
            <directory>../../p2-profile/product/target/wso2carbon-core-${carbon.kernel.version}/repository/rxts
            </directory>
            <outputDirectory>${pom.artifactId}-${pom.version}/repository/resources/rxts</outputDirectory>
            <includes>
                <include>*.rxt</include>
            </includes>
        </fileSet>
        <!-- Adding common XMLSchema.xsd file -->
        <fileSet>
            <directory>../resources/xsds</directory>
            <outputDirectory>wso2am-${pom.version}/repository/resources/xsds</outputDirectory>
            <includes>
                <include>**/*.xsd</include>
            </includes>
        </fileSet>
        <!-- API Templates -->
        <fileSet>
            <directory>../resources/api_templates</directory>
            <outputDirectory>wso2am-${pom.version}/repository/resources/api_templates</outputDirectory>
            <includes>
                <include>**/**.xml</include>
                <include>**/**.j2</include>
            </includes>
        </fileSet>
        <!-- Gateway policy templates -->
        <fileSet>
            <directory>../resources/templates</directory>
            <outputDirectory>wso2am-${pom.version}/repository/resources/templates</outputDirectory>
            <includes>
                <include>**/**.xml</include>
                <include>**/**.j2</include>
            </includes>
        </fileSet>
        <!-- Operation policy specifications -->
        <fileSet>
            <directory>../resources/operation_policies/specifications</directory>
            <outputDirectory>wso2am-${pom.version}/repository/resources/operation_policies/specifications</outputDirectory>
            <includes>
                <include>**/**.json</include>
            </includes>
        </fileSet>
        <!-- Operation policy definitions -->
        <fileSet>
            <directory>../resources/operation_policies/definitions</directory>
            <outputDirectory>wso2am-${pom.version}/repository/resources/operation_policies/definitions</outputDirectory>
            <includes>
                <include>**/**.gotmpl</include>
                <include>**/**.j2</include>
            </includes>
        </fileSet>
        <!-- Throttling policy related templates -->
        <fileSet>
            <directory>
                ../../p2-profile/product/target/wso2carbon-core-${carbon.kernel.version}/repository/resources/policy_templates
            </directory>
            <outputDirectory>wso2am-${pom.version}/repository/resources/policy_templates</outputDirectory>
            <includes>
                <include>**/**.xml</include>
            </includes>
        </fileSet>
        <fileSet>
            <directory>src/main/conf/governance</directory>
            <outputDirectory>wso2am-${pom.version}/repository/resources</outputDirectory>
            <includes>
                <include>**/**</include>
            </includes>
        </fileSet>
        <fileSet>
            <directory>../../samples</directory>
            <outputDirectory>wso2am-${pom.version}/samples</outputDirectory>
            <includes>
                <include>**/*.*</include>
            </includes>
            <excludes>
                <exclude>**/TwitterSearch/**</exclude>
                <exclude>**/YahooPlaceFinder/**</exclude>
                <exclude>**/YoutubeFeeds/**</exclude>
            </excludes>
        </fileSet>


        <fileSet>
            <directory>src/main/statistics/target</directory>
            <outputDirectory>wso2am-${pom.version}/statistics</outputDirectory>
            <includes>
                <include>**/*.*</include>
            </includes>
        </fileSet>

        <fileSet>
            <directory>../../local-authenticators/target/localauthenticatorCopied/jar</directory>
            <outputDirectory>wso2am-${pom.version}/repository/components/dropins</outputDirectory>
        </fileSet>

        <!--copy web app for OAuth feature-->
        <fileSet>
            <directory>
                ../../p2-profile/product/target/wso2carbon-core-${carbon.kernel.version}/repository/deployment/server/webapps
            </directory>
            <outputDirectory>${pom.artifactId}-${pom.version}/repository/deployment/server/webapps</outputDirectory>
            <includes>
                <include>oauth2.war</include>
            </includes>
        </fileSet>

        <fileSet>
            <directory>
                ../../p2-profile/product/target/wso2carbon-core-${carbon.kernel.version}/repository/resources/rxts/forum
            </directory>
            <outputDirectory>${pom.artifactId}-${pom.version}/repository/resources/rxts/forum</outputDirectory>
            <includes>
                <include>*.rxt</include>
            </includes>
        </fileSet>

        <fileSet>
            <directory>
                ../../p2-profile/product/target/wso2carbon-core-${carbon.kernel.version}/repository/deployment/server/webapps
            </directory>
            <outputDirectory>${pom.artifactId}-${pom.version}/repository/deployment/server/webapps
            </outputDirectory>
            <includes>
                <include>authenticationendpoint/</include>
            </includes>
            <excludes>
                <!--Need to remove after GA-->
                <exclude>authenticationendpoint/basicauth.jsp</exclude>
                <exclude>authenticationendpoint/EndpointConfig.properties</exclude>
                <exclude>authenticationendpoint/identifierauth.jsp</exclude>
                <exclude>authenticationendpoint/includes/cookie-policy-content.jsp</exclude>
                <exclude>authenticationendpoint/includes/header.jsp</exclude>
                <exclude>authenticationendpoint/includes/title.jsp</exclude>
                <exclude>authenticationendpoint/includes/product-footer.jsp</exclude>
                <exclude>authenticationendpoint/includes/product-title.jsp</exclude>
                <exclude>authenticationendpoint/includes/privacy-policy-content.jsp</exclude>
                <exclude>authenticationendpoint/login.jsp</exclude>
                <exclude>authenticationendpoint/mobile.jsp</exclude>
                <exclude>authenticationendpoint/smsOtp.jsp</exclude>
                <exclude>authenticationendpoint/smsOtpError.jsp</exclude>
                <exclude>authenticationendpoint/totp.jsp</exclude>
            </excludes>
        </fileSet>

        <fileSet>
            <directory>
                src/main/extensions
            </directory>
            <outputDirectory>${pom.artifactId}-${pom.version}/repository/deployment/server/webapps/authenticationendpoint/includes
            </outputDirectory>
            <includes>
                <include>title.jsp</include>
                <include>header.jsp</include>
                <include>product-footer.jsp</include>
                <include>product-title.jsp</include>
                <include>cookie-policy-content.jsp</include>
                <include>privacy-policy-content.jsp</include>
            </includes>
        </fileSet>

        <!--Need to remove after GA-->
        <fileSet>
            <directory>
                src/main/extensions/
            </directory>
            <outputDirectory>${pom.artifactId}-${pom.version}/repository/deployment/server/webapps/authenticationendpoint/
            </outputDirectory>
            <includes>
                <include>basicauth.jsp</include>
                <include>login.jsp</include>
                <include>identifierauth.jsp</include>
            </includes>
        </fileSet>

        <fileSet>
            <directory>
                ../../p2-profile/product/target/wso2carbon-core-${carbon.kernel.version}/repository/deployment/server/webapps
            </directory>
            <outputDirectory>${pom.artifactId}-${pom.version}/repository/deployment/server/webapps
            </outputDirectory>
            <includes>
                <include>accountrecoveryendpoint/</include>
            </includes>
            <!--Need to remove after GA-->
            <excludes>
                <exclude>accountrecoveryendpoint/RecoveryEndpointConfig.properties</exclude>
                <exclude>accountrecoveryendpoint/self-registration-complete.jsp</exclude>
                <exclude>accountrecoveryendpoint/password-recovery.jsp</exclude>
                <exclude>accountrecoveryendpoint/includes/header.jsp</exclude>
                <exclude>accountrecoveryendpoint/includes/title.jsp</exclude>
                <exclude>accountrecoveryendpoint/includes/product-footer.jsp</exclude>
                <exclude>accountrecoveryendpoint/includes/product-title.jsp</exclude>
                <exclude>accountrecoveryendpoint/self-registration-username-request.jsp</exclude>
                <exclude>accountrecoveryendpoint/self-registration-with-verification.jsp</exclude>
                <exclude>accountrecoveryendpoint/error.jsp</exclude>
            </excludes>
        </fileSet>

        <fileSet>
            <directory>
                src/main/extensions
            </directory>
            <outputDirectory>${pom.artifactId}-${pom.version}/repository/deployment/server/webapps/accountrecoveryendpoint/includes
            </outputDirectory>
            <includes>
                <include>title.jsp</include>
                <include>header.jsp</include>
                <include>product-footer.jsp</include>
                <include>product-title.jsp</include>
            </includes>
        </fileSet>

        <!--Need to remove after GA-->
        <fileSet>
            <directory>
                src/main/extensions/
            </directory>
            <outputDirectory>${pom.artifactId}-${pom.version}/repository/deployment/server/webapps/accountrecoveryendpoint/
            </outputDirectory>
            <includes>
                <include>self-registration-complete.jsp</include>
                <include>password-recovery.jsp</include>
                <include>self-registration-username-request.jsp</include>
                <include>self-registration-with-verification.jsp</include>
                <include>error.jsp</include>
            </includes>
        </fileSet>

        <fileSet>
            <directory>
                ../../p2-profile/product/target/wso2carbon-core-${carbon.kernel.version}/repository/deployment/server/webapps
            </directory>
            <outputDirectory>${pom.artifactId}-${pom.version}/repository/deployment/server/webapps
            </outputDirectory>
            <includes>
                <include>api#identity#user#v1.0.war</include>
            </includes>
        </fileSet>

        <fileSet>
            <directory>
                ../../p2-profile/product/target/wso2carbon-core-${carbon.kernel.version}/repository/deployment/server/webapps
            </directory>
            <outputDirectory>${pom.artifactId}-${pom.version}/repository/deployment/server/webapps
            </outputDirectory>
            <includes>
                <include>api#identity#recovery#v0.9.war</include>
                <!-- Copy api#identity#oauth2#v1.0 for scope management feature-->
                <include>api#identity#oauth2#v1.0.war</include>
            </includes>
        </fileSet>

        <fileSet>
            <directory>
                ../../p2-profile/product/target/wso2carbon-core-${carbon.kernel.version}/repository/deployment/server/webapps
            </directory>
            <outputDirectory>${pom.artifactId}-${pom.version}/repository/deployment/server/webapps
            </outputDirectory>
            <includes>
                <include>api#am#devportal.war</include>
            </includes>
        </fileSet>
        <!--copy jaxrs web app for consent management feature-->
        <fileSet>
            <directory>
                ../../p2-profile/product/target/wso2carbon-core-${carbon.kernel.version}/repository/deployment/server/webapps
            </directory>
            <outputDirectory>${pom.artifactId}-${pom.version}/repository/deployment/server/webapps</outputDirectory>
            <includes>
                <include>api#identity#consent-mgt#v1.0.war</include>
            </includes>
        </fileSet>
        <fileSet>
            <directory>
                ../../p2-profile/product/target/wso2carbon-core-${carbon.kernel.version}/repository/deployment/server/webapps
            </directory>
            <outputDirectory>${pom.artifactId}-${pom.version}/repository/deployment/server/webapps</outputDirectory>
            <includes>
                <include>api#identity#oauth2#dcr#v1.1.war</include>
            </includes>
        </fileSet>
        <fileSet>
            <directory>
                ../../p2-profile/product/target/wso2carbon-core-${carbon.kernel.version}/repository/deployment/server/webapps
            </directory>
            <outputDirectory>${pom.artifactId}-${pom.version}/repository/deployment/server/webapps
            </outputDirectory>
            <includes>
                <include>api#am#publisher.war</include>
            </includes>
        </fileSet>
        <fileSet>
            <directory>
                ../../p2-profile/product/target/wso2carbon-core-${carbon.kernel.version}/repository/deployment/server/webapps
            </directory>
            <outputDirectory>${pom.artifactId}-${pom.version}/repository/deployment/server/webapps
            </outputDirectory>
            <includes>
                <include>api#am#service-catalog#v1.war</include>
            </includes>
        </fileSet>
        <fileSet>
            <directory>
                ../../p2-profile/product/target/wso2carbon-core-${carbon.kernel.version}/repository/deployment/server/webapps
            </directory>
            <outputDirectory>${pom.artifactId}-${pom.version}/repository/deployment/server/webapps
            </outputDirectory>
            <includes>
                <include>api#am#admin.war</include>
            </includes>
        </fileSet>
        <fileSet>
            <directory>
                ../../p2-profile/product/target/wso2carbon-core-${carbon.kernel.version}/repository/deployment/server/webapps
            </directory>
            <outputDirectory>${pom.artifactId}-${pom.version}/repository/deployment/server/webapps
            </outputDirectory>
            <includes>
                <include>api#am#gateway#v2.war</include>
            </includes>
        </fileSet>
        <fileSet>
            <directory>
                ../../p2-profile/product/target/wso2carbon-core-${carbon.kernel.version}/repository/deployment/server/webapps
            </directory>
            <outputDirectory>${pom.artifactId}-${pom.version}/repository/deployment/server/webapps
            </outputDirectory>
            <includes>
                <include>api#am#devops#v0.war</include>
            </includes>
        </fileSet>
        <fileSet>
            <directory>
                ../../p2-profile/product/target/wso2carbon-core-${carbon.kernel.version}/repository/deployment/server/webapps
            </directory>
            <outputDirectory>${pom.artifactId}-${pom.version}/repository/deployment/server/webapps
            </outputDirectory>
            <includes>
                <include>internal#data#v1.war</include>
            </includes>
        </fileSet>
        <fileSet>
            <directory>
                ../../p2-profile/product/target/wso2carbon-core-${carbon.kernel.version}/repository/deployment/server/webapps
            </directory>
            <outputDirectory>${pom.artifactId}-${pom.version}/repository/deployment/server/webapps
            </outputDirectory>
            <includes>
                <include>keymanager-operations.war</include>
            </includes>
        </fileSet>
        <fileSet>
            <directory>
                ../../p2-profile/product/target/wso2carbon-core-${carbon.kernel.version}/repository/deployment/server/webapps
            </directory>
            <outputDirectory>${pom.artifactId}-${pom.version}/repository/deployment/server/webapps
            </outputDirectory>
            <includes>
                <include>client-registration#v0.17.war</include>
            </includes>
        </fileSet>
        <fileSet>
            <directory>
                ../../p2-profile/product/target/wso2carbon-core-${carbon.kernel.version}/repository/deployment/server/webapps
            </directory>
            <outputDirectory>${pom.artifactId}-${pom.version}/repository/deployment/server/webapps
            </outputDirectory>
            <includes>
                <include>api#identity#auth#v1.1.war</include>
            </includes>
        </fileSet>


        <!-- Copy sample calculator api webapp-->
        <fileSet>
            <directory>
                ../../p2-profile/product/target/wso2carbon-core-${carbon.kernel.version}/repository/deployment/server/webapps
            </directory>
            <outputDirectory>${pom.artifactId}-${pom.version}/repository/deployment/server/webapps</outputDirectory>
            <includes>
                <include>am#sample#calculator#v1.war</include>
            </includes>
        </fileSet>

        <!-- Copy sample pizzashack api webapp-->
        <fileSet>
            <directory>
                ../../p2-profile/product/target/wso2carbon-core-${carbon.kernel.version}/repository/deployment/server/webapps
            </directory>
            <outputDirectory>${pom.artifactId}-${pom.version}/repository/deployment/server/webapps</outputDirectory>
            <includes>
                <include>am#sample#pizzashack#v1.war</include>
            </includes>
        </fileSet>


        <!--Multitenancy related file -->
        <fileSet>
            <directory>
                ../../p2-profile/product/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/multitenancy
            </directory>
            <outputDirectory>wso2am-${pom.version}/repository/conf/multitenancy</outputDirectory>
            <includes>
                <include>**/stratos.xml</include>
                <include>**/multitenancy-packages.xml</include>
                <include>**/usage-throttling-agent-config.xml</include>
            </includes>
        </fileSet>

        <fileSet>
            <directory>
                ../../p2-profile/product/target/wso2carbon-core-${carbon.kernel.version}/repository/resources/tenant
            </directory>
            <outputDirectory>wso2am-${pom.version}/repository/resources</outputDirectory>
            <includes>
                <include>**/tenant-conf.json</include>
            </includes>
        </fileSet>
        <fileSet>
            <directory>
                ../../p2-profile/product/target/wso2carbon-core-${carbon.kernel.version}/repository/resources/workflowextensions
            </directory>
            <outputDirectory>wso2am-${pom.version}/repository/resources</outputDirectory>
            <includes>
                <include>**/default-workflow-extensions.xml</include>
            </includes>
        </fileSet>

        <!--copying runtimes-->
        <fileSet>
            <directory>../../p2-profile/product/target/wso2carbon-core-${carbon.kernel.version}/lib/runtimes</directory>
            <outputDirectory>${pom.artifactId}-${pom.version}/lib/runtimes/</outputDirectory>
            <includes>
                <include>*/**</include>
            </includes>
            <excludes>
                <exclude>**/cxf3/spring-asm-3.1.4.RELEASE.jar</exclude>
                <exclude>**/cxf3/snakeyaml-1.28.jar</exclude>
                <exclude>**/cxf3/spring-*.jar</exclude>
            </excludes>
        </fileSet>



        <fileSet>
            <directory>
                ../../p2-profile/product/target/wso2carbon-core-${carbon.kernel.version}/dbscripts/service-provider/
            </directory>
            <outputDirectory>${pom.artifactId}-${pom.version}/dbscripts/service-provider</outputDirectory>
            <includes>
                <include>**/**.sql</include>
            </includes>
        </fileSet>

        <!--End of  API Manager related -->

        <!--Multitenancy related file -->
        <fileSet>
            <directory>../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/multitenancy/
            </directory>
            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/multitenancy</outputDirectory>
            <includes>
                <include>**/stratos.xml</include>
                <include>**/multitenancy-packages.xml</include>
                <include>**/usage-throttling-agent-config.xml</include>
                <include>**/cloud-services-desc.xml</include>
            </includes>
        </fileSet>

        <!-- Metrics related fileset -->
        <fileSet>
            <directory>
                ../../p2-profile/product/target/wso2carbon-core-${carbon.kernel.version}/dbscripts/metrics/
            </directory>
            <outputDirectory>wso2am-${pom.version}/dbscripts/metrics</outputDirectory>
            <includes>
                <include>**/*.sql</include>
            </includes>
        </fileSet>

        <fileSet>
            <directory>../../p2-profile/product/target/wso2carbon-core-${carbon.kernel.version}/dbscripts/mb-store
            </directory>
            <outputDirectory>${pom.artifactId}-${pom.version}/dbscripts/mb-store</outputDirectory>
            <includes>
                <include>**/*.*</include>
            </includes>
            <fileMode>644</fileMode>
        </fileSet>

        <!--QPID related configurations-->
        <fileSet>
            <directory>
                ../../p2-profile/product/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/advanced/
            </directory>
            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/advanced</outputDirectory>
            <includes>
                <include>**/qpid-config.xml</include>
                <include>**/qpid-virtualhosts.xml</include>
                <include>**/qpid-jmxremote.access</include>
            </includes>
            <fileMode>644</fileMode>
        </fileSet>
        <!-- messaging related configs -->
        <fileSet>
            <directory>
                ../../p2-profile/product/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/
            </directory>
            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf
            </outputDirectory>
            <includes>
                <include>**/broker.xml</include>
            </includes>
            <fileMode>644</fileMode>
        </fileSet>
        <fileSet>
            <directory>
                ../../p2-profile/product/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/eventreceivers/
            </directory>
            <outputDirectory>wso2am-${pom.version}/repository/deployment/server/eventreceivers</outputDirectory>
            <includes>
                <include>**/*.xml</include>
            </includes>
        </fileSet>

        <fileSet>
            <directory>
                ../../p2-profile/product/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/eventstreams/
            </directory>
            <outputDirectory>wso2am-${pom.version}/repository/deployment/server/eventstreams</outputDirectory>
            <includes>
                <include>**/*.*</include>
            </includes>
        </fileSet>

        <fileSet>
            <directory>
                ../../p2-profile/product/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/eventpublishers/
            </directory>
            <outputDirectory>wso2am-${pom.version}/repository/deployment/server/eventpublishers</outputDirectory>
            <includes>
                <include>**/*.xml</include>
            </includes>
        </fileSet>

        <fileSet>
            <directory>
                ../../p2-profile/product/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/executionplans/
            </directory>
            <outputDirectory>wso2am-${pom.version}/repository/deployment/server/executionplans</outputDirectory>
            <includes>
                <include>**/*.*</include>
            </includes>
        </fileSet>

        <!-- Tomcat carbon web.xml -->
        <fileSet>
            <directory>
                ../../p2-profile/product/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/tomcat/carbon/WEB-INF/
            </directory>
            <outputDirectory>wso2am-${pom.version}/repository/conf/tomcat/carbon/WEB-INF/</outputDirectory>
            <includes>
                <include>**/web.xml</include>
            </includes>
        </fileSet>

        <!--copy the oauth2 grant type extensions -->
        <fileSet>
            <directory>../../oauth2-grant-types/target/oauth2GrantCopied/jar</directory>
            <outputDirectory>wso2am-${pom.version}/repository/components/dropins</outputDirectory>
            <includes>
                <include>**/*.jar</include>
            </includes>
        </fileSet>


        <!-- copy cxf filter extensions -->
        <fileSet>
            <directory>../../oauth2-client-authentication-filter/target/cxfFilters/jar</directory>
            <outputDirectory>wso2am-${pom.version}/lib/runtimes/cxf3</outputDirectory>
            <includes>
                <include>**/*.jar</include>
            </includes>
        </fileSet>

        <!--Copying the relevant XSD for API RXT with micro-gateway labels-->
        <fileSet>
            <directory>../../p2-profile/product/target/wso2carbon-core-${carbon.kernel.version}/repository/resources/
            </directory>
            <outputDirectory>wso2am-${pom.version}/repository/resources/</outputDirectory>
            <includes>
                <include>**/rxt.xsd</include>
            </includes>
        </fileSet>
    </fileSets>

    <dependencySets>
        <!-- use the new tool to create a bundles -->
        <dependencySet>
            <outputDirectory>wso2am-${pom.version}/lib/core/WEB-INF/lib</outputDirectory>
            <includes>
                <include>org.wso2.carbon:org.wso2.carbon.mediator.bridge:jar</include>
            </includes>
        </dependencySet>

        <dependencySet>
            <outputDirectory>wso2am-${pom.version}/lib/core/WEB-INF/lib/</outputDirectory>
            <includes>
                <include>org.apache.qpid.wso2:qpid-client:jar</include>
            </includes>
        </dependencySet>
        <!--dependencySet>
            <outputDirectory>wso2am-${pom.version}/repository/axis2/client/lib</outputDirectory>
            <excludes>
 		<exclude>bouncycastle:bcprov-jdk15:jar</exclude>
		<exclude>org.apache.axis2.wso2:axis2:jar</exclude>
		<exclude>org.igniterealtime.smack.wso2:smack:jar</exclude>
	        <exclude>org.apache.tomcat:tomcat-api:jar</exclude>
                <exclude>org.apache.tomcat:tomcat-util:jar</exclude>
		<exclude>org.apache.tomcat:tomcat-tribes:jar</exclude>
                <exclude>org.apache.tomcat:jdbc-pool:jar</exclude>
            </excludes>
            <outputFileNameMapping>${artifact.artifactId}.${artifact.extension}</outputFileNameMapping>
        </dependencySet-->
<!--        <dependencySet>-->
<!--            <outputDirectory>wso2am-${pom.version}/repository/deployment/client/modules</outputDirectory>-->
<!--        </dependencySet>-->
        <dependencySet>
            <outputDirectory>wso2am-${pom.version}/repository/components/lib</outputDirectory>
            <includes>
                <!--<include>commons-digester.wso2:commons-digester:jar</include>-->
                <include>org.wso2.securevault:org.wso2.securevault:jar</include>
                <include>org.wso2.andes.wso2:andes-client:jar</include>
                <include>javax.jms:javax.jms-api:jar</include>
            </includes>
        </dependencySet>
        <dependencySet>
            <outputDirectory>wso2am-${pom.version}/lib</outputDirectory>
            <includes>
                <include>javax.jms:javax.jms-api:jar</include>
            </includes>
        </dependencySet>
        <dependencySet>
            <outputDirectory>wso2am-${pom.version}/lib</outputDirectory>
            <includes>
                <include>org.wso2.orbit.com.lmax:disruptor:jar</include>
            </includes>
        </dependencySet>

    </dependencySets>
    <files>
        <!--start of claim management feature-->
        <file>
            <source>
                ../../p2-profile/product/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/claim-config.xml
            </source>
            <outputDirectory>wso2am-${pom.version}/repository/conf</outputDirectory>
        </file>
        <!--End of claim management feature-->


        <!-- using the event-broker config file from carbon mediation>
            <source>../../p2-profile/product/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/event-broker.xml</source>
            <outputDirectory>wso2am-${pom.version}/repository/conf</outputDirectory>
        </file-->
        <file>
            <source>src/main/conf/sslprofiles.xml</source>
            <outputDirectory>wso2am-${pom.version}/repository/resources/security</outputDirectory>
            <destName>sslprofiles.xml</destName>
        </file>
        <file>
            <source>src/main/conf/listenerprofiles.xml</source>
            <outputDirectory>wso2am-${pom.version}/repository/resources/security</outputDirectory>
            <destName>listenerprofiles.xml</destName>
        </file>
        <file>
            <source>src/main/conf/axis2.xml</source>
            <outputDirectory>wso2am-${pom.version}/repository/conf/axis2</outputDirectory>
            <destName>axis2.xml</destName>
        </file>
        <file>
            <source>src/main/conf/axis2_TM.xml</source>
            <outputDirectory>wso2am-${pom.version}/repository/conf/axis2</outputDirectory>
            <destName>axis2_TM.xml</destName>
        </file>
        <file>
            <source>src/main/conf/axis2_KM.xml</source>
            <outputDirectory>wso2am-${pom.version}/repository/conf/axis2</outputDirectory>
            <destName>axis2_KM.xml</destName>
        </file>
        <file>
            <source>src/main/conf/axis2.xml</source>
            <outputDirectory>wso2am-${pom.version}/repository/conf/axis2</outputDirectory>
            <destName>axis2.xml</destName>
        </file>
        <file>
            <source>src/main/conf/axis2_blocking_client.xml</source>
            <outputDirectory>wso2am-${pom.version}/repository/conf/axis2</outputDirectory>
            <destName>axis2_blocking_client.xml</destName>
        </file>
        <!--file>
                <source>src/main/conf/axis2.xml_NHTTP</source>
                <outputDirectory>wso2am-${pom.version}/repository/conf/axis2</outputDirectory>
                <destName>axis2.xml_NHTTP</destName>
            </file>
        <file>
                <source>src/main/conf/axis2.xml_PT</source>
                <outputDirectory>wso2am-${pom.version}/repository/conf/axis2</outputDirectory>
                <destName>axis2.xml_PT</destName>
            </file-->
        <file>
            <source>src/main/conf/tenant-axis2.xml</source>
            <outputDirectory>wso2am-${pom.version}/repository/conf/axis2</outputDirectory>
            <destName>tenant-axis2.xml</destName>
        </file>
        <file>
            <source>src/main/conf/tenant-axis2_KM.xml</source>
            <outputDirectory>wso2am-${pom.version}/repository/conf/axis2</outputDirectory>
            <destName>tenant-axis2_KM.xml</destName>
        </file>
        <file>
            <source>src/main/conf/master-datasources.xml</source>
            <outputDirectory>wso2am-${pom.version}/repository/conf/datasources</outputDirectory>
            <destName>master-datasources.xml</destName>
        </file>
        <file>
            <source>src/main/conf/registry.xml</source>
            <outputDirectory>wso2am-${pom.version}/repository/conf</outputDirectory>
            <destName>registry.xml</destName>
            <filtered>true</filtered>
            <fileMode>644</fileMode>
        </file>
        <file>
            <source>src/main/conf/registry_TM.xml</source>
            <outputDirectory>wso2am-${pom.version}/repository/conf</outputDirectory>
            <destName>registry_TM.xml</destName>
            <filtered>true</filtered>
            <fileMode>644</fileMode>
        </file>
        <file>
            <source>src/main/conf/catalina-server.xml</source>
            <outputDirectory>wso2am-${pom.version}/repository/conf/tomcat</outputDirectory>
            <destName>catalina-server.xml</destName>
            <filtered>true</filtered>
            <fileMode>644</fileMode>
        </file>
        <file>
            <source>src/main/conf/thrift-authentication.xml</source>
            <outputDirectory>wso2am-${pom.version}/repository/conf</outputDirectory>
            <destName>thrift-authentication.xml</destName>
        </file>
        <file>
            <source>src/main/conf/email-admin-config.xml
            </source>
            <outputDirectory>wso2am-${pom.version}/repository/conf/email</outputDirectory>
            <destName>email-admin-config.xml</destName>
        </file>
        <file>
            <source>../../p2-profile/product/target/wso2carbon-core-${carbon.kernel.version}/repository/deployment/server/eventpublishers/EmailPublisher.xml</source>
            <outputDirectory>wso2am-${pom.version}/repository/deployment/server/eventpublishers</outputDirectory>
            <destName>EmailPublisher.xml</destName>
        </file>
        <file>
            <source>../../p2-profile/product/target/wso2carbon-core-${carbon.kernel.version}/repository/deployment/server/eventstreams/id_gov_notify_stream_1.0.0.json</source>
            <outputDirectory>wso2am-${pom.version}/repository/deployment/server/eventstreams</outputDirectory>
            <destName>id_gov_notify_stream_1.0.0.json</destName>
        </file>
        <file>
            <source>src/main/conf/log4j2.properties</source>
            <outputDirectory>wso2am-${pom.version}/repository/conf</outputDirectory>
            <destName>log4j2.properties</destName>
            <filtered>true</filtered>
        </file>
        <file>
            <source>src/main/conf/etc/pax-logging.properties</source>
            <outputDirectory>wso2am-${pom.version}/repository/conf/etc</outputDirectory>
            <destName>pax-logging.properties</destName>
            <filtered>true</filtered>
        </file>

        <file>
            <source>src/main/conf/synapse.properties</source>
            <outputDirectory>wso2am-${pom.version}/repository/conf</outputDirectory>
            <destName>synapse.properties</destName>
            <filtered>true</filtered>
        </file>
        <file>
            <source>src/main/conf/synapse-handlers.xml</source>
            <outputDirectory>wso2am-${pom.version}/repository/conf</outputDirectory>
            <destName>synapse-handlers.xml</destName>
            <filtered>true</filtered>
            <fileMode>644</fileMode>
        </file>
        <file>
            <source>src/main/conf/datasources.properties</source>
            <outputDirectory>wso2am-${pom.version}/repository/conf</outputDirectory>
            <destName>datasources.properties</destName>
            <filtered>true</filtered>
        </file>
        <file>
            <source>src/main/conf/nhttp.properties</source>
            <outputDirectory>wso2am-${pom.version}/repository/conf</outputDirectory>
            <destName>nhttp.properties</destName>
            <filtered>true</filtered>
        </file>
        <file>
            <source>src/main/conf/multitenant-msg-context.properties</source>
            <outputDirectory>wso2am-${pom.version}/repository/conf</outputDirectory>
            <destName>multitenant-msg-context.properties</destName>
        </file>
        <file>
            <source>src/main/conf/sec.policy</source>
            <outputDirectory>wso2am-${pom.version}/repository/conf</outputDirectory>
            <destName>sec.policy</destName>
        </file>
        <file>
            <source>src/main/conf/passthru-http.properties</source>
            <outputDirectory>wso2am-${pom.version}/repository/conf</outputDirectory>
            <destName>passthru-http.properties</destName>
            <filtered>true</filtered>
        </file>
        <file>
            <source>src/main/conf/jndi.properties</source>
            <outputDirectory>wso2am-${pom.version}/repository/conf</outputDirectory>
            <destName>jndi.properties</destName>
            <filtered>true</filtered>
        </file>
        <file>
            <source>src/main/conf/carbon.properties</source>
            <outputDirectory>wso2am-${pom.version}/repository/conf</outputDirectory>
            <destName>carbon.properties</destName>
            <filtered>true</filtered>
        </file>
        <file>
            <source>src/main/conf/metrics.xml</source>
            <outputDirectory>wso2am-${pom.version}/repository/conf</outputDirectory>
            <destName>metrics.xml</destName>
            <filtered>true</filtered>
        </file>
        <file>
            <source>src/main/conf/deployment.toml</source>
            <outputDirectory>wso2am-${pom.version}/repository/conf</outputDirectory>
            <destName>deployment.toml</destName>
            <filtered>true</filtered>
        </file>
        <file>
            <source>../../../LICENSE.txt</source>
            <outputDirectory>wso2am-${pom.version}</outputDirectory>
            <filtered>true</filtered>
            <fileMode>644</fileMode>
        </file>
        <file>
            <source>../../../README.txt</source>
            <outputDirectory>wso2am-${pom.version}</outputDirectory>
            <filtered>true</filtered>
            <fileMode>644</fileMode>
        </file>
        <file>
            <source>../../../INSTALL.txt</source>
            <outputDirectory>wso2am-${pom.version}</outputDirectory>
            <filtered>true</filtered>
            <fileMode>644</fileMode>
        </file>
        <file>
            <source>src/main/conf/XMLInputFactory.properties</source>
            <outputDirectory>wso2am-${pom.version}</outputDirectory>
            <filtered>true</filtered>
            <fileMode>644</fileMode>
        </file>
        <file>
            <source>../../../docs/xdoc/release-notes.xml</source>
            <outputDirectory>wso2am-${pom.version}</outputDirectory>
            <destName>release-notes.html</destName>
            <fileMode>644</fileMode>
        </file>
        <file>
            <source>target/wso2carbon-core-${carbon.kernel.version}/bin/README.txt</source>
            <outputDirectory>wso2am-${pom.version}/bin/</outputDirectory>
            <filtered>true</filtered>
            <fileMode>644</fileMode>
        </file>
        <file>
            <source>target/wso2carbon-core-${carbon.kernel.version}/bin/version.txt</source>
            <outputDirectory>wso2am-${pom.version}/bin/</outputDirectory>
            <filtered>true</filtered>
            <fileMode>644</fileMode>
        </file>

        <file>
            <source>src/main/startup-scripts/fips.sh</source>
            <outputDirectory>wso2am-${pom.version}/bin/</outputDirectory>
            <filtered>true</filtered>
            <fileMode>755</fileMode>
        </file>

        <file>
            <source>src/main/startup-scripts/fips.bat</source>
            <outputDirectory>wso2am-${pom.version}/bin/</outputDirectory>
            <filtered>true</filtered>
            <fileMode>755</fileMode>
        </file>

        <file>
            <source>src/main/startup-scripts/profileSetup.sh</source>
            <outputDirectory>wso2am-${pom.version}/bin/</outputDirectory>
            <filtered>true</filtered>
            <fileMode>755</fileMode>
        </file>

        <file>
            <source>src/main/startup-scripts/profileSetup.bat</source>
            <outputDirectory>wso2am-${pom.version}/bin/</outputDirectory>
            <filtered>true</filtered>
            <fileMode>755</fileMode>
        </file>

        <file>
            <source>src/main/startup-scripts/api-manager.sh</source>
            <outputDirectory>wso2am-${pom.version}/bin/</outputDirectory>
            <filtered>true</filtered>
            <fileMode>755</fileMode>
        </file>

        <file>
            <source>src/main/startup-scripts/api-manager.bat</source>
            <outputDirectory>wso2am-${pom.version}/bin/</outputDirectory>
            <filtered>true</filtered>
            <fileMode>755</fileMode>
        </file>

        <file>
            <source>src/main/startup-scripts/diagnostics.sh</source>
            <outputDirectory>wso2am-${pom.version}/diagnostics-tool/bin/</outputDirectory>
            <filtered>true</filtered>
            <fileMode>755</fileMode>
        </file>

        <file>
            <source>src/main/resources/conf/templates/diagnostics-tool/conf/config.toml.j2</source>
            <outputDirectory>wso2am-${pom.version}/repository/resources/conf/templates/diagnostics-tool/conf</outputDirectory>
            <destName>config.toml.j2</destName>
            <filtered>true</filtered>
            <fileMode>644</fileMode>
        </file>

        <file>
            <source>../../../config/bam.xml</source>
            <outputDirectory>wso2am-${pom.version}/repository/conf/etc</outputDirectory>
            <filtered>true</filtered>
            <fileMode>755</fileMode>
        </file>
        <file>
            <source>target/wso2carbon-core-${carbon.kernel.version}/repository/conf/carbon.xml</source>
            <outputDirectory>wso2am-${pom.version}/repository/conf/</outputDirectory>
            <filtered>true</filtered>
            <fileMode>644</fileMode>
        </file>
        <file>
            <source>target/wso2carbon-core-${carbon.kernel.version}/repository/resources/conf/templates/repository/conf/carbon.xml.j2</source>
            <outputDirectory>wso2am-${pom.version}/repository/resources/conf/templates/repository/conf/</outputDirectory>
            <filtered>true</filtered>
            <fileMode>644</fileMode>
        </file>
        <file>
            <source>../resources/updates/product.txt</source>
            <outputDirectory>wso2am-${pom.version}/updates/</outputDirectory>
            <filtered>true</filtered>
            <fileMode>644</fileMode>
        </file>
        <file>
            <source>src/main/conf/cloud-services-desc.xml</source>
            <outputDirectory>wso2am-${pom.version}/repository/conf/multitenancy</outputDirectory>
            <filtered>true</filtered>
        </file>
        <file>
            <source>
                ../../p2-profile/product/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/tomcat/webapp-classloading.xml
            </source>
            <outputDirectory>wso2am-${pom.version}/repository/conf/tomcat</outputDirectory>
            <filtered>true</filtered>
            <fileMode>644</fileMode>
        </file>
        <file>
            <source>
                ../../p2-profile/product/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/tomcat/webapp-classloading-environments.xml
            </source>
            <outputDirectory>wso2am-${pom.version}/repository/conf/tomcat</outputDirectory>
            <filtered>true</filtered>
            <fileMode>644</fileMode>
        </file>
        <file>
            <source>
                ../../p2-profile/product/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/identity/application-authentication.xml
            </source>
            <outputDirectory>wso2am-${pom.version}/repository/conf/identity</outputDirectory>
            <fileMode>644</fileMode>
        </file>
        <file>
            <source>
                ../../p2-profile/product/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/sms/sms-templates-admin-config.xml
            </source>
            <outputDirectory>wso2am-${pom.version}/repository/conf/sms</outputDirectory>
            <fileMode>644</fileMode>
        </file>
        <file>
            <source>
                ../../p2-profile/product/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/user-mgt.xml
            </source>
            <outputDirectory>wso2am-${pom.version}/repository/conf</outputDirectory>
            <fileMode>644</fileMode>
        </file>
        <file>
            <source>
                ../../p2-profile/product/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/tomcat/web.xml
            </source>
            <outputDirectory>wso2am-${pom.version}/repository/conf/tomcat/</outputDirectory>
            <fileMode>644</fileMode>
        </file>
        <file>
            <source>
                ../../p2-profile/product/target/wso2carbon-core-${carbon.kernel.version}/repository/resources/conf/default.json
            </source>
            <outputDirectory>wso2am-${pom.version}/repository/resources/conf/</outputDirectory>
            <fileMode>644</fileMode>
        </file>
        <file>
            <source>
                ../../p2-profile/product/target/wso2carbon-core-${carbon.kernel.version}/repository/resources/conf/infer.json
            </source>
            <outputDirectory>wso2am-${pom.version}/repository/resources/conf/</outputDirectory>
            <fileMode>644</fileMode>
        </file>
        <file>
            <source>
                ../../p2-profile/product/target/wso2carbon-core-${carbon.kernel.version}/repository/resources/conf/validator.json
            </source>
            <outputDirectory>wso2am-${pom.version}/repository/resources/conf/</outputDirectory>
            <fileMode>644</fileMode>
        </file>
        <file>
            <source>
                ../../p2-profile/product/target/wso2carbon-core-${carbon.kernel.version}/repository/resources/conf/key-mappings.json
            </source>
            <outputDirectory>wso2am-${pom.version}/repository/resources/conf/</outputDirectory>
            <fileMode>644</fileMode>
        </file>
        <file>
            <source>
                ../../p2-profile/product/target/wso2carbon-core-${carbon.kernel.version}/repository/resources/conf/unit-resolve.json
            </source>
            <outputDirectory>wso2am-${pom.version}/repository/resources/conf/</outputDirectory>
            <fileMode>644</fileMode>
        </file>
        <file>
            <source>
                ../../p2-profile/product/target/wso2carbon-core-${carbon.kernel.version}/repository/resources/lifecycles/APILifeCycle.xml
            </source>
            <outputDirectory>wso2am-${pom.version}/repository/resources/lifecycles</outputDirectory>
            <filtered>true</filtered>
        </file>
        <file>
            <source>
                ../../p2-profile/product/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/multitenancy/tenant-mgt.xml
            </source>
            <outputDirectory>wso2am-${pom.version}/repository/conf</outputDirectory>
            <fileMode>644</fileMode>
        </file>
        <file>
            <source>
                ../../p2-profile/product/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/data-bridge/data-agent-config.xml
            </source>
            <outputDirectory>wso2am-${pom.version}/repository/conf/data-bridge/</outputDirectory>
            <fileMode>644</fileMode>
        </file>
        <file>
            <source>
                ../../p2-profile/product/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/data-bridge/data-bridge-config.xml
            </source>
            <outputDirectory>wso2am-${pom.version}/repository/conf/data-bridge/</outputDirectory>
            <fileMode>644</fileMode>
        </file>
        <file>
            <source>
                ../../p2-profile/product/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/tomcat/context.xml
            </source>
            <outputDirectory>wso2am-${pom.version}/repository/conf/tomcat</outputDirectory>
            <filtered>true</filtered>
            <fileMode>644</fileMode>
        </file>
        <file>
            <source>
                ../../p2-profile/product/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/governance.xml
            </source>
            <outputDirectory>wso2am-${pom.version}/repository/conf</outputDirectory>
            <filtered>true</filtered>
            <fileMode>644</fileMode>
        </file>

        <!-- Cipher Tool Files -->
        <file>
            <source>../../p2-profile/product/target/wso2carbon-core-${carbon.kernel.version}/bin/ciphertool.sh</source>
            <outputDirectory>wso2am-${pom.version}/bin</outputDirectory>
            <fileMode>755</fileMode>
        </file>
        <file>
            <source>../../p2-profile/product/target/wso2carbon-core-${carbon.kernel.version}/bin/ciphertool.bat</source>
            <outputDirectory>wso2am-${pom.version}/bin</outputDirectory>
        </file>
        <file>
            <source>
                ../../p2-profile/product/target/wso2carbon-core-${carbon.kernel.version}/lib/org.wso2.ciphertool-${cipher.tool.version}.jar
            </source>
            <outputDirectory>wso2am-${pom.version}/lib</outputDirectory>
        </file>
        <file>
            <source>src/main/conf/cipher-text.properties</source>
            <outputDirectory>wso2am-${pom.version}/repository/conf/security</outputDirectory>
        </file>
        <file>
            <source>src/main/conf/cipher-tool.properties</source>
            <outputDirectory>wso2am-${pom.version}/repository/conf/security</outputDirectory>
        </file>
        <file>
            <source>src/main/conf/security/Owasp.CsrfGuard.Carbon.properties</source>
            <outputDirectory>wso2am-${pom.version}/repository/conf/security</outputDirectory>
        </file>
        <file>
            <source>src/main/conf/security/balana-config.xml</source>
            <outputDirectory>wso2am-${pom.version}/repository/conf/security</outputDirectory>
        </file>
        <!--file>
            <source>
                ../../p2-profile/product/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/msg-mgt.properties
            </source>
            <outputDirectory>wso2am-${pom.version}/repository/conf/</outputDirectory>
            <fileMode>644</fileMode>
        </file-->
        <!--file>
                <source>../../p2-profile/product/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/etc/message-tracer-config.xml</source>
                <outputDirectory>wso2am-${pom.version}/repository/conf/etc</outputDirectory>
                <destName>message-tracer-config.xml</destName>
                <filtered>true</filtered>
            <fileMode>644</fileMode>
            </file-->

        <!-- Metrics related files -->
        <file>
            <source>
                ../../p2-profile/product/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/metrics.xml
            </source>
            <outputDirectory>${project.artifactId}-${project.version}/repository/conf/</outputDirectory>
            <filtered>false</filtered>
        </file>
        <file>
            <source>
                ../../p2-profile/product/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/stream-interceptors.xml
            </source>
            <outputDirectory>${project.artifactId}-${project.version}/repository/conf/</outputDirectory>
            <filtered>false</filtered>
            <fileMode>644</fileMode>
        </file>
        <file>
            <source>
                ../../p2-profile/product/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/metrics.properties
            </source>
            <outputDirectory>${project.artifactId}-${project.version}/repository/conf/</outputDirectory>
            <filtered>false</filtered>
        </file>
        <file>
            <source>
                ../../p2-profile/product/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/datasources/metrics-datasources.xml
            </source>
            <outputDirectory>${project.artifactId}-${project.version}/repository/conf/datasources/</outputDirectory>
            <fileMode>644</fileMode>
        </file>
        <file>
            <source>
                ../../p2-profile/product/target/wso2carbon-core-${carbon.kernel.version}/repository/database/WSO2METRICS_DB.mv.db
            </source>
            <outputDirectory>${project.artifactId}-${project.version}/repository/database/</outputDirectory>
            <fileMode>644</fileMode>
        </file>
        <file>
            <source>
                ../../p2-profile/product/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/event-broker.xml
            </source>
            <outputDirectory>wso2am-${pom.version}/repository/conf/</outputDirectory>
            <destName>event-broker.xml</destName>
        </file>
        <file>
            <source>
                ../../p2-profile/product/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/registry-event-broker.xml
            </source>
            <outputDirectory>wso2am-${pom.version}/repository/conf/</outputDirectory>
            <destName>registry-event-broker.xml</destName>
        </file>
        <file>
            <source>
                ../../p2-profile/product/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/output-event-adapters.xml
            </source>
            <outputDirectory>${project.artifactId}-${project.version}/repository/conf/</outputDirectory>
            <filtered>false</filtered>
        </file>
        <file>
            <source>
                ../../p2-profile/product/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/messaging-event-broker.xml
            </source>
            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf</outputDirectory>
            <filtered>true</filtered>
            <fileMode>644</fileMode>
        </file>
        <file>
            <source>
                ../../p2-profile/product/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/event-processor.xml
            </source>
            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf</outputDirectory>
            <filtered>true</filtered>
        </file>
        <file>
            <source>
                ../../p2-profile/product/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/input-event-adapters.xml
            </source>
            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf</outputDirectory>
            <filtered>true</filtered>
            <fileMode>644</fileMode>
        </file>


        <file>
            <source>../resources/authenticators/authenticators.xml</source>
            <outputDirectory>wso2am-${pom.version}/repository/conf/security</outputDirectory>
            <filtered>true</filtered>
            <fileMode>644</fileMode>
        </file>
        <file>
            <source>
                ../../p2-profile/product/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/consent-mgt-config.xml
            </source>
            <outputDirectory>wso2am-${pom.version}/repository/conf</outputDirectory>
            <fileMode>644</fileMode>
        </file>

        <!--Add trust store-->
        <file>
            <source>src/main/resources/client-truststore.jks</source>
            <outputDirectory>wso2am-${pom.version}/repository/resources/security/</outputDirectory>
        </file>
        <!-- Coping lerna related files -->
        <file>
            <source>src/main/conf/lerna/lerna.json</source>
            <outputDirectory>wso2am-${pom.version}/repository/deployment/server/webapps</outputDirectory>
            <destName>lerna.json</destName>
        </file>
        <file>
            <source>src/main/conf/lerna/package.json</source>
            <outputDirectory>wso2am-${pom.version}/repository/deployment/server/webapps</outputDirectory>
            <destName>package.json</destName>
        </file>
        <file>
            <source>
                ../../p2-profile/product/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/sms/sms-providers-api-body-templates.xml
            </source>
            <outputDirectory>wso2am-${pom.version}/repository/conf/sms</outputDirectory>
            <fileMode>644</fileMode>
        </file>
        <file>
            <source>
                ../../p2-profile/product/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/attributes/userstore/unique-id-active-directory.xml
            </source>
            <outputDirectory>wso2am-${pom.version}/repository/conf/attributes/userstore</outputDirectory>
        </file>
        <file>
            <source>
                ../../p2-profile/product/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/attributes/userstore/unique-id-jdbc.xml
            </source>
            <outputDirectory>wso2am-${pom.version}/repository/conf/attributes/userstore</outputDirectory>
        </file>
        <file>
            <source>
                ../../p2-profile/product/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/attributes/userstore/unique-id-read-only-ldap.xml
            </source>
            <outputDirectory>wso2am-${pom.version}/repository/conf/attributes/userstore</outputDirectory>
        </file>
        <file>
            <source>
                ../../p2-profile/product/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/attributes/userstore/unique-id-read-write-ldap.xml
            </source>
            <outputDirectory>wso2am-${pom.version}/repository/conf/attributes/userstore</outputDirectory>
        </file>
        <file>
            <source>target/apim-is-plugin-resources/dropins/org.wso2.charon3.core-${charon3.version}.jar</source>
            <outputDirectory>wso2am-${pom.version}/repository/components/dropins</outputDirectory>
        </file>
    </files>

</assembly>
