<?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">

    <modelVersion>4.0.0</modelVersion>
    <groupId>org.mule.modules</groupId>
    <artifactId>epic-message-ext</artifactId>
    <version>1.0.0-SNAPSHOT</version>
    <packaging>jar</packaging>
    <name>Epic Message Extension SourceGen</name>
    <description>The Epic Bridges provides connectivity and validation functionality for Epic messages</description>

    <parent>
        <groupId>org.mule.modules</groupId>
        <artifactId>epic-parent</artifactId>
        <version>1.0.0-SNAPSHOT</version>
    </parent>

    <properties>
        <packageName>com.mulesoft.mule.epic.v251</packageName>
        <profileSourceDirectory>${basedir}/src/profiles/</profileSourceDirectory>
        <targetDirectory>${basedir}/target/generated-sources/epic-message-ext</targetDirectory>
    </properties>

    <dependencies>
        <dependency>
            <groupId>ca.uhn.hapi</groupId>
            <artifactId>hapi-base</artifactId>
            <version>${hapi.version}</version>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>ca.uhn.hapi</groupId>
            <artifactId>hapi-structures-v251</artifactId>
            <version>${hapi.version}</version>
            <scope>compile</scope>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>ca.uhn.hapi</groupId>
                <artifactId>hapi-sourcegen</artifactId>
                <version>${hapi.version}</version>
                <executions>
                    <execution>
                        <id>Epic-ADT_A01</id>
                        <phase>generate-sources</phase>
                        <goals>
                            <goal>confgen</goal>
                        </goals>
                        <configuration>
                            <!-- This is the conformance profile file to use -->
                            <profile>${profileSourceDirectory}/Epic-ADT_A01.xml</profile>
                            <!-- Place generated Java source here -->
                            <targetDirectory>${targetDirectory}</targetDirectory>
                            <!-- Generated classes will be placed here -->
                            <packageName>${packageName}</packageName>
                        </configuration>
                    </execution>
                    <execution>
                        <id>Epic-ADT_A02</id>
                        <phase>generate-sources</phase>
                        <goals>
                            <goal>confgen</goal>
                        </goals>
                        <configuration>
                            <!-- This is the conformance profile file to use -->
                            <profile>${profileSourceDirectory}/Epic-ADT_A02.xml</profile>
                            <!-- Place generated Java source here -->
                            <targetDirectory>${targetDirectory}</targetDirectory>
                            <!-- Generated classes will be placed here -->
                            <packageName>${packageName}</packageName>
                        </configuration>
                    </execution>
                    <execution>
                        <id>Epic-ADT_A03</id>
                        <phase>generate-sources</phase>
                        <goals>
                            <goal>confgen</goal>
                        </goals>
                        <configuration>
                            <!-- This is the conformance profile file to use -->
                            <profile>${profileSourceDirectory}/Epic-ADT_A03.xml</profile>
                            <!-- Place generated Java source here -->
                            <targetDirectory>${targetDirectory}</targetDirectory>
                            <!-- Generated classes will be placed here -->
                            <packageName>${packageName}</packageName>
                        </configuration>
                    </execution>
                    <execution>
                        <id>Epic-ADT_A04</id>
                        <phase>generate-sources</phase>
                        <goals>
                            <goal>confgen</goal>
                        </goals>
                        <configuration>
                            <!-- This is the conformance profile file to use -->
                            <profile>${profileSourceDirectory}/Epic-ADT_A04.xml</profile>
                            <!-- Place generated Java source here -->
                            <targetDirectory>${targetDirectory}</targetDirectory>
                            <!-- Generated classes will be placed here -->
                            <packageName>${packageName}</packageName>
                        </configuration>
                    </execution>
                    <execution>
                        <id>Epic-ADT_A05</id>
                        <phase>generate-sources</phase>
                        <goals>
                            <goal>confgen</goal>
                        </goals>
                        <configuration>
                            <!-- This is the conformance profile file to use -->
                            <profile>${profileSourceDirectory}/Epic-ADT_A05.xml</profile>
                            <!-- Place generated Java source here -->
                            <targetDirectory>${targetDirectory}</targetDirectory>
                            <!-- Generated classes will be placed here -->
                            <packageName>${packageName}</packageName>
                        </configuration>
                    </execution>
                    <execution>
                        <id>Epic-ADT_A06</id>
                        <phase>generate-sources</phase>
                        <goals>
                            <goal>confgen</goal>
                        </goals>
                        <configuration>
                            <!-- This is the conformance profile file to use -->
                            <profile>${profileSourceDirectory}/Epic-ADT_A06.xml</profile>
                            <!-- Place generated Java source here -->
                            <targetDirectory>${targetDirectory}</targetDirectory>
                            <!-- Generated classes will be placed here -->
                            <packageName>${packageName}</packageName>
                        </configuration>
                    </execution>
                    <execution>
                        <id>Epic-ADT_A07</id>
                        <phase>generate-sources</phase>
                        <goals>
                            <goal>confgen</goal>
                        </goals>
                        <configuration>
                            <!-- This is the conformance profile file to use -->
                            <profile>${profileSourceDirectory}/Epic-ADT_A07.xml</profile>
                            <!-- Place generated Java source here -->
                            <targetDirectory>${targetDirectory}</targetDirectory>
                            <!-- Generated classes will be placed here -->
                            <packageName>${packageName}</packageName>
                        </configuration>
                    </execution>
                    <execution>
                        <id>Epic-ADT_A08</id>
                        <phase>generate-sources</phase>
                        <goals>
                            <goal>confgen</goal>
                        </goals>
                        <configuration>
                            <!-- This is the conformance profile file to use -->
                            <profile>${profileSourceDirectory}/Epic-ADT_A08.xml</profile>
                            <!-- Place generated Java source here -->
                            <targetDirectory>${targetDirectory}</targetDirectory>
                            <!-- Generated classes will be placed here -->
                            <packageName>${packageName}</packageName>
                        </configuration>
                    </execution>
                    <execution>
                        <id>Epic-ADT_A31</id>
                        <phase>generate-sources</phase>
                        <goals>
                            <goal>confgen</goal>
                        </goals>
                        <configuration>
                            <!-- This is the conformance profile file to use -->
                            <profile>${profileSourceDirectory}/Epic-ADT_A31.xml</profile>
                            <!-- Place generated Java source here -->
                            <targetDirectory>${targetDirectory}</targetDirectory>
                            <!-- Generated classes will be placed here -->
                            <packageName>${packageName}</packageName>
                        </configuration>
                    </execution>
                    <execution>
                        <id>Epic-MDM_T02</id>
                        <phase>generate-sources</phase>
                        <goals>
                            <goal>confgen</goal>
                        </goals>
                        <configuration>
                            <profile>${profileSourceDirectory}/Epic-MDM_T02.xml</profile>
                            <targetDirectory>${targetDirectory}</targetDirectory>
                            <packageName>${packageName}</packageName>
                        </configuration>
                    </execution>
                    <execution>
                        <id>Epic-MDM_T03</id>
                        <phase>generate-sources</phase>
                        <goals>
                            <goal>confgen</goal>
                        </goals>
                        <configuration>
                            <profile>${profileSourceDirectory}/Epic-MDM_T03.xml</profile>
                            <targetDirectory>${targetDirectory}</targetDirectory>
                            <packageName>${packageName}</packageName>
                        </configuration>
                    </execution>
                    <execution>
                        <id>Epic-ORM_O01</id>
                        <phase>generate-sources</phase>
                        <goals>
                            <goal>confgen</goal>
                        </goals>
                        <configuration>
                            <profile>${profileSourceDirectory}/Epic-ORM_O01.xml</profile>
                            <targetDirectory>${targetDirectory}</targetDirectory>
                            <packageName>${packageName}</packageName>
                        </configuration>
                    </execution>
                    <execution>
                        <id>Epic-ORR_O02</id>
                        <phase>generate-sources</phase>
                        <goals>
                            <goal>confgen</goal>
                        </goals>
                        <configuration>
                            <profile>${profileSourceDirectory}/Epic-ORR_O02.xml</profile>
                            <targetDirectory>${targetDirectory}</targetDirectory>
                            <packageName>${packageName}</packageName>
                        </configuration>
                    </execution>
                    <execution>
                        <id>Epic-ORU_R01</id>
                        <phase>generate-sources</phase>
                        <goals>
                            <goal>confgen</goal>
                        </goals>
                        <configuration>
                            <profile>${profileSourceDirectory}/Epic-ORU_R01.xml</profile>
                            <targetDirectory>${targetDirectory}</targetDirectory>
                            <packageName>${packageName}</packageName>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>2.3.2</version>
                <configuration>
                    <source>${jdk.version}</source>
                    <target>${jdk.version}</target>
                    <encoding>ISO-8859-1</encoding>
                </configuration>
            </plugin>
        </plugins>
    </build>
</project>