<?xml version="1.0" encoding="utf-8"?>
<!--
  ~ Copyright (c) 2018, WSO2 Inc. (http://www.wso2.org) 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.
  -->

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">

    <parent>
        <groupId>org.wso2.ei</groupId>
        <artifactId>product-scenarios</artifactId>
        <version>6.4.0</version>
        <relativePath>../pom.xml</relativePath>
    </parent>

    <modelVersion>4.0.0</modelVersion>
    <artifactId>1-heterogeneous-message-formats-tests</artifactId>
    <name>Integrating Systems that Communicate in Heterogeneous Message Formats</name>
    <packaging>pom</packaging>

    <dependencies>
        <dependency>
            <groupId>org.wso2.ei</groupId>
            <artifactId>scenarios-commons</artifactId>
        </dependency>
    </dependencies>
    <build>
        <plugins>
            <plugin>
                <artifactId>maven-surefire-plugin</artifactId>
                <configuration>
                    <argLine>-Xms512m -Xmx1024m </argLine>
                    <disableXmlReport>false</disableXmlReport>
                    <parallel>false</parallel>
                    <suiteXmlFiles>
                        <suiteXmlFile>${basedir}/src/test/resources/testng.xml</suiteXmlFile>
                    </suiteXmlFiles>
                    <systemProperties>
                        <property>
                            <!-- Common resource directory (eg: Key stores, certificates, etc.)-->
                            <name>common.resources.dir</name>
                            <value>
                                ${basedir}/../../resources/
                            </value>
                        </property>
                        <property>
                            <!-- testcase specific  resources directory-->
                            <name>test.resources.dir</name>
                            <value>
                                ${basedir}/src/test/resources/
                            </value>
                        </property>
                        <property>
                            <!-- Directory containing carbon applications -->
                            <name>test.resources.carbonApplications.dir</name>
                            <value>
                                ${basedir}/../../01-SynapseConfigProject/01-synapseConfigCompositeApplication/target/
                            </value>
                        </property>
                        <property>
                            <!-- Related carbon applications (comma separated) to deploy -->
                            <name>test.resources.carbonApplications.list</name>
                            <value>
                                01-synapseConfigCompositeApplication_1.0.0
                            </value>
                        </property>
                        <property>
                            <name>usedefaultlisteners</name>
                            <value>false</value>
                        </property>
                    </systemProperties>
                    <workingDirectory>${basedir}/target</workingDirectory>
                </configuration>
            </plugin>
        </plugins>
    </build>
    <profiles>
        <profile>
            <id>profile_general</id>
            <modules>
                <module>1.1-converting-soap-to-json</module>
                <module>1.2-converting-pox-to-json</module>
                <module>1.3-converting-json-to-soap</module>
<!--                <module>1.6-xml-message-enrichment</module>-->
                <module>1.8-plaintext-message-enrichment</module>
            </modules>
        </profile>
        <profile>
            <id>profile_artifacts</id>
            <modules>
                <module>01-SynapseConfigProject</module>
            </modules>
        </profile>
    </profiles>
</project>
