<?xml version="1.0" encoding="UTF-8"?>
<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>
    <artifactId>examples</artifactId>
    <groupId>org.apache-extras.camel-extra</groupId>
    <version>2.12.3</version>
    <relativePath>../../pom.xml</relativePath>
  </parent>
  <modelVersion>4.0.0</modelVersion>
  <artifactId>camel-example-rcode</artifactId>
  <name>Camel Extra :: Component Examples :: A Camel RCode Example</name>
  <build>
    <plugins>
      <plugin>
        <artifactId>maven-shade-plugin</artifactId>
        <version>2.1</version>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>shade</goal>
            </goals>
            <configuration>
              <dependencyReducedPomLocation>${project.build.directory}/dependency-reduced-pom.xml</dependencyReducedPomLocation>
              <transformers>
                <transformer>
                  <manifestEntries>
                    <Main-Class>org.apacheextras.camel.examples.rcode.RCodeRunner</Main-Class>
                    <Build-Number>1</Build-Number>
                  </manifestEntries>
                </transformer>
              </transformers>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>exec-maven-plugin</artifactId>
        <executions>
          <execution>
            <goals>
              <goal>java</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <mainClass>org.apacheextras.camel.examples.rcode.RCodeRunner</mainClass>
          <commandlineArgs>-s ${project.build.outputDirectory}/org/apacheextras/camel/examples/rcode/data -t ${project.build.outputDirectory}/output</commandlineArgs>
        </configuration>
      </plugin>
    </plugins>
  </build>
</project>

