<?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/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>**/log4j.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>**/registry.xml</exclude>
                <exclude>**/identity.xml</exclude>
                <exclude>**/user-mgt.xml</exclude>
                <exclude>**/master-datasources.xml</exclude>
        	    <exclude>**/repository/components/plugins/woden_${woden.version}.jar</exclude>
                <exclude>**/lib/org.wso2.ciphertool-1.0.0-wso2v2.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/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/org.wso2.carbon.identity.oauth.stub_5.0.8.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>**/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}/store/**</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>
            </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.2.5.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.4.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>
        <fileSet>
            <directory>../../p2-profile/product/target/wso2carbon-core-${carbon.kernel.version}/repository/database</directory>
            <outputDirectory>wso2am-${pom.version}/repository/database</outputDirectory>
            <includes>
                <include>**/*.h2.db</include>
            </includes>
        </fileSet>
        <!--fileSet>
            <directory>./src/main/resources</directory>
            <outputDirectory>wso2am-${pom.version}/lib/endorsed</outputDirectory>
            <includes>
                <include>**/saxon9he.jar</include>
            </includes>
        </fileSet>
	<fileSet>
            <directory>./src/main/resources</directory>
            <outputDirectory>wso2am-${pom.version}/repository/components/lib</outputDirectory>
            <includes>
                <include>**/httpmime-4.2.5.jar</include>
            </includes>
        </fileSet>
	<fileSet>
            <directory>./src/main/resources</directory>
            <outputDirectory>wso2am-${pom.version}/repository/components/lib</outputDirectory>
            <includes>
                <include>**/encoder-1.1.jar</include>
            </includes>
        </fileSet-->
        <!--fileSet>
          <directory>../../p2-profile/product/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/security</directory>
          <outputDirectory>wso2am-${pom.version}/repository/conf/security</outputDirectory>

          <excludes>
                  <exclude>authenticators.xml</exclude>
                  <exclude>application-authentication.xml</exclude>
                  <exclude>cipher-text.properties</exclude>
                  <exclude>cipher-tool.properties</exclude>
          </excludes>
        </fileSet-->
	<fileSet>
            <directory>src/main/assembly</directory>
            <outputDirectory>wso2am-${pom.version}/repository/deployment/server/jaggeryapps/store/site/tenant_themes</outputDirectory>
           <excludes>
                  <exclude>*</exclude>
          </excludes>
        </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/api-publisher/</directory>
             <outputDirectory>wso2am-${pom.version}/repository/deployment/server/jaggeryapps/publisher</outputDirectory>
	     <excludes>
		<exclude>publisherLogo/**</exclude>
		<exclude>publisherTheme/**</exclude>
		<exclude>publisherSite/**</exclude>
		<exclude>footer/**</exclude>
		<exclude>localstyles.css</exclude>
	     </excludes>
         </fileSet>
         <fileSet>
             <directory>../../p2-profile/product/target/wso2carbon-core-${carbon.kernel.version}/repository/deployment/server/jaggeryapps/api-store/</directory>
             <outputDirectory>wso2am-${pom.version}/repository/deployment/server/jaggeryapps/store</outputDirectory>
	     <excludes>
		<exclude>storeLogo/**</exclude>
		<exclude>storeSite/**</exclude>
		<exclude>base-page/**</exclude>
		<exclude>login/**</exclude>
		<exclude>styles-layout.css</exclude>
	     </excludes>
         </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/portal/</directory>
            <outputDirectory>wso2am-${pom.version}/repository/deployment/server/jaggeryapps/portal</outputDirectory>
            <excludes>
                <exclude>jaggery.conf</exclude>
            </excludes>
        </fileSet>
        <!-- Shindig webapp. Needed for DAS feature/portal> -->
        <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>shindig.war</include>
            </includes>
        </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>src/main/conf/portal_conf</directory>
            <outputDirectory>wso2am-${pom.version}/repository/deployment/server/jaggeryapps/portal</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.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.11.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.11.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.11.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.11.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>
        </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 Sample scenario jar files-->
        <fileSet>
            <directory>../../../sample-scenarios/sample1/target/
            </directory>
            <outputDirectory>wso2am-${pom.version}/sample-scenarios/scenario1</outputDirectory>
            <includes>
                <include>org.wso2.carbon.apimgt.samples.sample1-${pom.version}-jar-with-dependencies.jar</include>
            </includes>
        </fileSet>
        <fileSet>
            <directory>../../../sample-scenarios/sample2/target/
            </directory>
            <outputDirectory>wso2am-${pom.version}/sample-scenarios/scenario2</outputDirectory>
            <includes>
                <include>org.wso2.carbon.apimgt.samples.sample2-${pom.version}-jar-with-dependencies.jar</include>
            </includes>
        </fileSet>
        <fileSet>
            <directory>../../../sample-scenarios/sample4/target/
            </directory>
            <outputDirectory>wso2am-${pom.version}/sample-scenarios/scenario4</outputDirectory>
            <includes>
                <include>org.wso2.carbon.apimgt.samples.sample4-${pom.version}-jar-with-dependencies.jar</include>
            </includes>
        </fileSet>
        <fileSet>
            <directory>../../../sample-scenarios/sample7/target/
            </directory>
            <outputDirectory>wso2am-${pom.version}/sample-scenarios/scenario7</outputDirectory>
            <includes>
                <include>org.wso2.carbon.apimgt.samples.sample7-${pom.version}-jar-with-dependencies.jar</include>
            </includes>
        </fileSet>
        <fileSet>
            <directory>../../../sample-scenarios/sample8/target/
            </directory>
            <outputDirectory>wso2am-${pom.version}/sample-scenarios/scenario8</outputDirectory>
            <includes>
                <include>org.wso2.carbon.apimgt.samples.sample8-${pom.version}-jar-with-dependencies.jar</include>
            </includes>
        </fileSet>
        <fileSet>
            <directory>../../../sample-scenarios/sample9/target/
            </directory>
            <outputDirectory>wso2am-${pom.version}/sample-scenarios/scenario9</outputDirectory>
            <includes>
                <include>org.wso2.carbon.apimgt.samples.sample9-${pom.version}-jar-with-dependencies.jar</include>
            </includes>
        </fileSet>
        <fileSet>
            <directory>../../../sample-scenarios/sample10/target/
            </directory>
            <outputDirectory>wso2am-${pom.version}/sample-scenarios/scenario10</outputDirectory>
            <includes>
                <include>org.wso2.carbon.apimgt.samples.sample10-${pom.version}-jar-with-dependencies.jar</include>
            </includes>
        </fileSet>
        <fileSet>
            <directory>../../../sample-scenarios/backend/target/
            </directory>
            <outputDirectory>wso2am-${pom.version}/sample-scenarios/resources/</outputDirectory>
            <includes>
                <include>sample-data-backend.war</include>
            </includes>
        </fileSet>
        <fileSet>
            <directory>../../../sample-scenarios
            </directory>
            <outputDirectory>wso2am-${pom.version}/sample-scenarios/</outputDirectory>
            <includes>
                <include>run.sh</include>
            </includes>
            <fileMode>644</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>
            <includes>
                <include>bouncycastle:bcprov-jdk15:jar</include>
            </includes>
            <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.apache.geronimo.specs.wso2:geronimo-jms_1.1_spec:jar</include>
                <include>org.wso2.securevault:org.wso2.securevault:jar</include>
                <include>org.wso2.andes.wso2:andes-client: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/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.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/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/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>src/main/conf/log4j.properties</source>
            <outputDirectory>wso2am-${pom.version}/repository/conf</outputDirectory>
            <destName>log4j.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/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>../../p2-profile/product/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/rule-engine-config.xml</source>
            <outputDirectory>wso2am-${pom.version}/repository/conf</outputDirectory>
        </file-->
        <file>
            <source>../../p2-profile/product/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/etc/logging-config.xml</source>
            <outputDirectory>wso2am-${pom.version}/repository/conf/etc</outputDirectory>
        </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/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>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/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/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>
                ../../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.h2.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>
        <!-- Copy Sample scenario README.md files-->
        <file>
            <source>../../../sample-scenarios/sample1/README.md</source>
            <outputDirectory>wso2am-${pom.version}/sample-scenarios/scenario1</outputDirectory>
            <destName>README.md</destName>
        </file>
        <file>
            <source>../../../sample-scenarios/sample2/README.md</source>
            <outputDirectory>wso2am-${pom.version}/sample-scenarios/scenario2</outputDirectory>
            <destName>README.md</destName>
        </file>
        <file>
            <source>../../../sample-scenarios/sample3/README.md</source>
            <outputDirectory>wso2am-${pom.version}/sample-scenarios/scenario3</outputDirectory>
            <destName>README.md</destName>
        </file>
        <file>
            <source>../../../sample-scenarios/sample4/README.md</source>
            <outputDirectory>wso2am-${pom.version}/sample-scenarios/scenario4</outputDirectory>
            <destName>README.md</destName>
        </file>
        <file>
            <source>../../../sample-scenarios/sample7/README.md</source>
            <outputDirectory>wso2am-${pom.version}/sample-scenarios/scenario7</outputDirectory>
            <destName>README.md</destName>
        </file>
        <file>
            <source>../../../sample-scenarios/sample8/README.md</source>
            <outputDirectory>wso2am-${pom.version}/sample-scenarios/scenario8</outputDirectory>
            <destName>README.md</destName>
        </file>
        <file>
            <source>../../../sample-scenarios/sample9/README.md</source>
            <outputDirectory>wso2am-${pom.version}/sample-scenarios/scenario9</outputDirectory>
            <destName>README.md</destName>
        </file>
        <file>
            <source>../../../sample-scenarios/sample10/README.md</source>
            <outputDirectory>wso2am-${pom.version}/sample-scenarios/scenario10</outputDirectory>
            <destName>README.md</destName>
        </file>
        <file>
            <source>../../../sample-scenarios/sample11/README.md</source>
            <outputDirectory>wso2am-${pom.version}/sample-scenarios/scenario11</outputDirectory>
            <destName>README.md</destName>
        </file>
    </files>
</assembly>
