<?xml version="1.0" encoding="UTF-8"?>
<!--
 * JBoss, Home of Professional Open Source
 * Copyright 2011 Red Hat Inc. and/or its affiliates and other contributors
 * as indicated by the @author tags. All rights reserved.
 * See the copyright.txt in the distribution for a
 * full listing of individual contributors.
 *
 * This copyrighted material is made available to anyone wishing to use,
 * modify, copy, or redistribute it subject to the terms and conditions
 * of the GNU Lesser General Public License, v. 2.1.
 * This program is distributed in the hope that it will be useful, but WITHOUT A
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
 * PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more details.
 * You should have received a copy of the GNU Lesser General Public License,
 * v.2.1 along with this distribution; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 * MA  02110-1301, USA.
 */ -->
<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/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>

  <parent>
    <groupId>org.switchyard.quickstarts</groupId>
    <artifactId>switchyard-quickstart-parent</artifactId>
    <version>0.5.0.Beta1</version>
    <relativePath>../../../pom.xml</relativePath>
  </parent>

  <groupId>org.switchyard.quickstarts.demos</groupId>
  <artifactId>switchyard-quickstart-demo-multi-order-consumer</artifactId>
  <packaging>jar</packaging>
  <name>Quickstart Demo: Multiple Applications - Order Consumer</name>

  <dependencies>
    <dependency>
      <groupId>org.switchyard</groupId>
      <artifactId>switchyard-api</artifactId>
    </dependency>
    <dependency>
      <groupId>org.switchyard</groupId>
      <artifactId>switchyard-plugin</artifactId>
    </dependency>
    <dependency>
      <groupId>org.switchyard.components</groupId>
      <artifactId>switchyard-component-bean</artifactId>
    </dependency>
    <dependency>
      <groupId>org.switchyard.components</groupId>
      <artifactId>switchyard-component-camel</artifactId>
    </dependency>
    <dependency>
      <groupId>org.switchyard.components</groupId>
      <artifactId>switchyard-component-soap</artifactId>
    </dependency>
    <dependency>
      <groupId>org.switchyard</groupId>
      <artifactId>switchyard-test</artifactId>
    </dependency>
    <dependency>
      <groupId>org.switchyard.quickstarts.demos</groupId>
      <artifactId>switchyard-quickstart-demo-multi-artifacts</artifactId>
      <version>${project.version}</version>
    </dependency>
    <dependency>
       <groupId>org.hornetq</groupId>
       <artifactId>hornetq-core-client</artifactId>
    </dependency>
    <dependency>
       <groupId>javax.jms</groupId>
       <artifactId>jms</artifactId>
    </dependency>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <scope>test</scope>
    </dependency>
  </dependencies>

  <build>
     <finalName>${project.artifactId}</finalName>
     <plugins>
      <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-compiler-plugin</artifactId>
          <configuration>
              <source>1.6</source>
              <target>1.6</target>
              <debug>true</debug>
              <showWarnings>true</showWarnings>
              <showDeprecation>true</showDeprecation>
          </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-jar-plugin</artifactId>
        <configuration>
          <archive>
            <manifestEntries>
              <Dependencies>deployment.OrderService.jar</Dependencies>
            </manifestEntries>
          </archive>
        </configuration>
      </plugin>
      <plugin>
          <groupId>org.switchyard</groupId>
          <artifactId>switchyard-plugin</artifactId>
          <configuration>
            <scannerClassNames>
                  <param>org.switchyard.component.bean.config.model.BeanSwitchYardScanner</param>
                  <param>org.switchyard.component.camel.config.model.RouteScanner</param>
                  <param>org.switchyard.transform.config.model.TransformSwitchYardScanner</param>
                  <param>org.switchyard.transform.config.model.ValidateSwitchYardScanner</param>
            </scannerClassNames>
          </configuration>
          <executions>
            <execution>
                <goals>
                    <goal>configure</goal>
                </goals>
            </execution>
          </executions>
      </plugin>
	  <plugin>
		<groupId>org.codehaus.mojo</groupId>
		<artifactId>exec-maven-plugin</artifactId>
		  <configuration>
		   <mainClass>org.switchyard.quickstarts.demo.multiapp.consumer.OrderIntakeClient</mainClass>
		   <classpathScope>test</classpathScope>
		   <arguments>
		    <argument>target/test-classes/order.xml</argument>
		   </arguments>
		  </configuration>
	  </plugin>   
     </plugins>
  </build>
</project>
