<?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/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <parent>
        <groupId>net.sf.ebus</groupId>
        <artifactId>ebus</artifactId>
        <version>5.0.0</version>
    </parent>

    <artifactId>feed</artifactId>
    <packaging>jar</packaging>
    <name>eBus Feed</name>

    <build>
      <plugins>

        <plugin>
          <groupId>net.sf.smc</groupId>
          <artifactId>smc-maven-plugin</artifactId>
          <version>7.0.0</version>

          <executions>
            <execution>
              <id>test-build</id>
              <phase>generate-test-sources</phase>
              <goals>
                <goal>smc</goal>
              </goals>
              <configuration>
                <sourceDirectory>${project.basedir}/src/test/smc</sourceDirectory>
                <targetDirectory>${project.build.directory}/generated-test-sources/smc</targetDirectory>
                <targetLanguage>java7</targetLanguage>
                <verbose>true</verbose>
              </configuration>
            </execution>
          </executions>
        </plugin>

        <plugin>
          <groupId>org.codehaus.mojo</groupId>
          <artifactId>build-helper-maven-plugin</artifactId>
          <version>3.0.0</version>
          <executions>
            <execution>
              <id>add-test-sources</id>
              <phase>generate-test-sources</phase>
              <goals>
                <goal>add-test-source</goal>
              </goals>
              <configuration>
                <sources>
                  <source>${project.build.directory}/generated-test-sources/smc</source>
                </sources>
              </configuration>
            </execution>
          </executions>
        </plugin>

        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-surefire-plugin</artifactId>
          <version>2.16</version>
          <configuration>
            <reuseForks>false</reuseForks>
            <forkCount>1</forkCount>
          </configuration>
        </plugin>

      </plugins>
    </build>

    <dependencies>
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>core</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>extensions</artifactId>
            <version>${project.version}</version>
            <scope>test</scope>
        </dependency>
    </dependencies>

    <properties>
      <maven.compiler.source>1.8</maven.compiler.source>
      <maven.compiler.target>1.8</maven.compiler.target>
    </properties>
</project>
