<?xml version="1.0" encoding="UTF-8"?>
<!--
 ~ Copyright (c) 2005-2010, WSO2 Inc. (http://wso2.com) All Rights Reserved.
 ~
 ~ WSO2 Inc. 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/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>**/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/rampart-trust_1.6.1.wso2v14.jar</exclude>
                <exclude>**/repository/components/plugins/rampart-policy_1.6.1.wso2v14.jar</exclude>
                <exclude>**/repository/components/plugins/rampart-core_1.6.1.wso2v14.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/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>-->

                <!-- Remove jars which are not needed-->
                <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/components/plugins/cassandra-thrift_1.2.13.wso2v4.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>
                <!-- 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/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.store_${carbon.apimgt.version}/admin/**
                </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/api#identity#oauth2#v1.0.war</exclude>
                <exclude>**/repository/deployment/server/webapps/outputwebsocket.war</exclude>
                <exclude>**/repository/deployment/server/webapps/inputwebsocket.war</exclude>
                <exclude>**/repository/deployment/server/jaggeryapps/portal/</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>
            </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>
            </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>

            </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/sequences</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>
                ../resources/migration-1.0.0_to_1.2.0/
            </directory>
            <outputDirectory>wso2am-${pom.version}/dbscripts/migration-1.0.0_to_1.2.0</outputDirectory>
        </fileSet>
        <fileSet>
            <directory>
                ../resources/migration-1.2.0_to_1.3.0/
            </directory>
            <outputDirectory>wso2am-${pom.version}/dbscripts/migration-1.2.0_to_1.3.0</outputDirectory>
        </fileSet>
        <fileSet>
            <directory>
                ../resources/migration-1.3.0_to_1.4.0/
            </directory>
            <outputDirectory>wso2am-${pom.version}/dbscripts/migration-1.3.0_to_1.4.0</outputDirectory>
        </fileSet>

        <fileSet>
            <directory>
                ../resources/migration-1.4.0_to_1.5.0/
            </directory>
            <outputDirectory>wso2am-${pom.version}/dbscripts/migration-1.4.0_to_1.5.0</outputDirectory>
        </fileSet>

        <fileSet>
            <directory>
                ../resources/migration-1.5.0_to_1.6.0/
            </directory>
            <outputDirectory>wso2am-${pom.version}/dbscripts/migration-1.5.0_to_1.6.0</outputDirectory>
        </fileSet>

        <fileSet>
            <directory>
                ../resources/migration-1.6.0_to_1.7.0/
            </directory>
            <outputDirectory>wso2am-${pom.version}/dbscripts/migration-1.6.0_to_1.7.0</outputDirectory>
        </fileSet>

        <fileSet>
            <directory>
                ../resources/migration-1.7.0_to_1.8.0/
            </directory>
            <outputDirectory>wso2am-${pom.version}/dbscripts/migration-1.7.0_to_1.8.0</outputDirectory>
        </fileSet>

        <fileSet>
            <directory>
                ../resources/migration-1.8.0_to_1.9.0/readme/
            </directory>
            <outputDirectory>wso2am-${pom.version}/dbscripts/migration-1.8.0_to_1.9.0</outputDirectory>
        </fileSet>

        <fileSet>
            <directory>
                ../statistics/target/
            </directory>
            <outputDirectory>wso2am-${pom.version}/dbscripts/stat/migration-1.9.0_to_1.10.0</outputDirectory>
        </fileSet>

        <fileSet>
            <directory>
                ../../p2-profile/product/target/wso2carbon-core-${carbon.kernel.version}/repository/deployment/server/jaggeryapps/admin/
            </directory>
            <outputDirectory>wso2am-${pom.version}/repository/deployment/server/jaggeryapps/admin</outputDirectory>
        </fileSet>

        <fileSet>
            <directory>
                ../../p2-profile/product/target/wso2carbon-core-${carbon.kernel.version}/repository/deployment/server/jaggeryapps/publisher/
            </directory>
            <outputDirectory>wso2am-${pom.version}/repository/deployment/server/jaggeryapps/publisher
            </outputDirectory>
        </fileSet>
        <fileSet>
            <directory>
                ../../p2-profile/product/target/wso2carbon-core-${carbon.kernel.version}/repository/deployment/server/jaggeryapps/devportal/
            </directory>
            <outputDirectory>wso2am-${pom.version}/repository/deployment/server/jaggeryapps/devportal</outputDirectory>
        </fileSet>
        <!--  copying modules xml -->
        <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>
        <fileSet>
            <directory>../../jaggery</directory>
            <outputDirectory>wso2am-${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>
        <!-- Jmeter Intergration Tests -->
        <fileSet>
            <directory>../../integration/tests/src/test/resources/artifacts/AM/scripts</directory>
            <outputDirectory>wso2am-${pom.version}/repository/resources/scripts</outputDirectory>
            <includes>
                <include>**/**.jmx</include>
            </includes>
        </fileSet>
        <!-- Sample Jmeter scripts for Tenant Creation -->
        <fileSet>
            <directory>../resources/scripts/tenant_Creation</directory>
            <outputDirectory>wso2am-${pom.version}/repository/resources/scripts/tenantCreation</outputDirectory>
            <includes>
                <include>**/**.jmx</include>
            </includes>
        </fileSet>
        <!-- API Templates -->
        <fileSet>
            <directory>../resources/api_templates</directory>
            <outputDirectory>wso2am-${pom.version}/repository/resources/api_templates</outputDirectory>
            <includes>
                <include>**/**.xml</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/business-processes</directory>
            <outputDirectory>wso2am-${pom.version}/business-processes</outputDirectory>
            <includes>
                <include>**/*.*</include>
            </includes>
        </fileSet>

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

        <!-- API Custom Sequences -->
        <fileSet>
            <directory>../resources/customsequences</directory>
            <outputDirectory>wso2am-${pom.version}/repository/resources/customsequences</outputDirectory>
            <includes>
                <include>**/**.xml</include>
            </includes>
        </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/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>
            </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>
            </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/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>
            </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>
            </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>
            </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#store#v0.16.war</include>
                <include>api#am#store.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#v0.16.war</include>
                <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#admin#v0.16.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>throttle#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>client-registration#v0.16.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>

        <!--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>
            </excludes>
        </fileSet>

        <!--Copying modules coming from jaggery feature-->
        <fileSet>
            <directory>../../p2-profile/product/target/wso2carbon-core-${carbon.kernel.version}/modules</directory>
            <outputDirectory>${pom.artifactId}-${pom.version}/modules/</outputDirectory>
            <!--excludes>
                <exclude>**/carbon/**</exclude>
                <exclude>**/process/**</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>

        <!-- Default Tiers -->
        <fileSet>
            <directory>../resources/default-tiers</directory>
            <outputDirectory>wso2am-${pom.version}/repository/resources/default-tiers</outputDirectory>
            <includes>
                <include>**/**.xml</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 the outbound authenticator jars such as OIDC.-->
        <fileSet>
            <directory>../../authenticators/target/authenticatoroutboundCopied/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 forget me tool -->
        <fileSet>
            <directory>target/forget-me/identity-anonymization-tool-${forgetme.tool.version}</directory>
            <outputDirectory>wso2am-${pom.version}/repository/components/tools/forget-me</outputDirectory>
            <excludes>
                <exclude>**/forgetme.sh</exclude>
                <exclude>**/forgetme.bat</exclude>
                <exclude>**/conf/sql/identity/idn-oauth-consumer-apps.sql</exclude>
                <exclude>**/conf/sql/identity/sp-app.sql</exclude>
                <exclude>**/conf/sql/identity/um-system-user.sql</exclude>
                <exclude>**/conf/sql/identity/um-system-user.sql.properties</exclude>
            </excludes>
            <includes>
                <include>**/lib/**</include>
                <include>**/conf/log-config/apim-patterns.xml</include>
                <include>**/conf/sql/apim/**</include>
                <include>**/conf/sql/identity/**</include>
                <include>**/conf/datasources/sample-apim-datasources.xml</include>
                <include>**/conf/datasources/sample-um-datasources.xml</include>
            </includes>
            <fileMode>644</fileMode>
        </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>

        <!-- Copying the in-place update tools-->
        <fileSet>
            <directory>target/update/</directory>
            <outputDirectory>wso2am-${pom.version}/bin</outputDirectory>
            <fileMode>744</fileMode>
        </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}/samples/axis2Client/client_repo/modules</outputDirectory>
            <includes>
                <include>org.apache.axis2:addressing:mar</include>
                <include>org.apache.rampart:rampart:mar</include>
                <include>org.apache.sandesha2:sandesha2:mar</include>
            </includes>
            <outputFileNameMapping>${artifact.artifactId}.${artifact.extension}</outputFileNameMapping>
        </dependencySet>
        <dependencySet>
            <outputDirectory>wso2am-${pom.version}/samples/axis2Server/repository/modules</outputDirectory>
            <includes>
                <include>org.apache.axis2:addressing:mar</include>
                <include>org.apache.rampart:rampart:mar</include>
                <include>org.apache.sandesha2:sandesha2:mar</include>
            </includes>
            <outputFileNameMapping>${artifact.artifactId}.${artifact.extension}</outputFileNameMapping>
        </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>
            <includes>
                <include>org.apache.rampart:rampart:mar</include>
            </includes>
        </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>
                <include>io.swagger:swagger-inflector:jar</include>
            </includes>
        </dependencySet>
        <dependencySet>
            <outputDirectory>wso2am-${pom.version}/lib</outputDirectory>
            <includes>
                <include>javax.jms:javax.jms-api: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/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/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/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/wso2server.sh</source>
            <outputDirectory>wso2am-${pom.version}/bin/</outputDirectory>
            <filtered>true</filtered>
            <fileMode>755</fileMode>
        </file>

        <file>
            <source>src/main/startup-scripts/wso2server.bat</source>
            <outputDirectory>wso2am-${pom.version}/bin/</outputDirectory>
            <filtered>true</filtered>
            <fileMode>755</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/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>

        <!--Message Tracer config file-->
        <file>
            <source>
                ../../p2-profile/product/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/etc/message-tracer-config.xml
            </source>
            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/etc</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>

        <!-- Copying files related to forget me tool -->
        <file>
            <source>src/main/bin/forgetme/forgetme.sh</source>
            <outputDirectory>wso2am-${pom.version}/bin/</outputDirectory>
            <fileMode>744</fileMode>
        </file>
        <file>
            <source>src/main/bin/forgetme/forgetme.bat</source>
            <outputDirectory>wso2am-${pom.version}/bin/</outputDirectory>
            <fileMode>744</fileMode>
        </file>
        <file>
            <source>target/forget-me/identity-anonymization-tool-${forgetme.tool.version}/bin/forgetme.sh</source>
            <outputDirectory>wso2am-${pom.version}/repository/components/tools/forget-me/bin/</outputDirectory>
            <fileMode>744</fileMode>
        </file>

        <file>
            <source>target/forget-me/identity-anonymization-tool-${forgetme.tool.version}/bin/forgetme.bat</source>
            <outputDirectory>wso2am-${pom.version}/repository/components/tools/forget-me/bin/</outputDirectory>
            <fileMode>744</fileMode>
        </file>
        <file>
            <source>
                target/forget-me/identity-anonymization-tool-${forgetme.tool.version}/conf/sql/identity/um-system-user.sql
            </source>
            <outputDirectory>wso2am-${pom.version}/repository/components/tools/forget-me/conf/sql/um/</outputDirectory>
            <fileMode>644</fileMode>
        </file>
        <file>
            <source>
                target/forget-me/identity-anonymization-tool-${forgetme.tool.version}/conf/sql/identity/um-system-user.sql.properties
            </source>
            <outputDirectory>wso2am-${pom.version}/repository/components/tools/forget-me/conf/sql/um/</outputDirectory>
            <fileMode>644</fileMode>
        </file>
        <file>
            <source>
                target/forget-me/identity-anonymization-tool-${forgetme.tool.version}/conf/product-config/config-apim.json
            </source>
            <outputDirectory>wso2am-${pom.version}/repository/components/tools/forget-me/conf/</outputDirectory>
            <destName>config.json</destName>
            <fileMode>744</fileMode>
        </file>
        <!--Add trust store-->
        <file>
            <source>src/main/resources/client-truststore.jks</source>
            <outputDirectory>wso2am-${pom.version}/repository/resources/security/</outputDirectory>
        </file>
    </files>

</assembly>
