<?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>
  <groupId>org.mule.metadata.flatfile</groupId>
  <artifactId>flatfile-metadata-model</artifactId>
  <version>1.2.0</version>
  <packaging>pom</packaging>

  <name>Flatfile TypeBuilder</name>
  <description>Metadata Builder for flat file formats (fixed width, copybook, and flat file)</description>

  <properties>
    <jdk.version>1.8</jdk.version>
    <metadataModelVersion>1.2.0</metadataModelVersion>
    <edi-parser.version>2.3.0</edi-parser.version>
    <base.scala.version>2.12</base.scala.version>
    <scala.version>${base.scala.version}.7</scala.version>
    <project.build.sourceEncoding>ISO-8859-1</project.build.sourceEncoding>
    <javaFormatter.plugin.version>2.0.1</javaFormatter.plugin.version>
    <formatterConfigPath>formatter.xml</formatterConfigPath>
    <commonsIoVersion>1.3.2</commonsIoVersion>
    <jacoco.version>0.8.5</jacoco.version>
  </properties>

  <modules>
    <module>schema-metadata</module>
    <module>type-builder</module>
  </modules>

  <build>
    <pluginManagement>
      <plugins>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-compiler-plugin</artifactId>
          <version>3.8.1</version>
          <configuration>
            <source>${jdk.version}</source>
            <target>${jdk.version}</target>
            <encoding>UTF-8</encoding>
          </configuration>
        </plugin>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-resources-plugin</artifactId>
          <version>3.1.0</version>
        </plugin>
        <plugin>
          <groupId>org.jacoco</groupId>
          <artifactId>jacoco-maven-plugin</artifactId>
          <version>0.8.5</version>
          <executions>
            <execution>
              <id>prepare-agent</id>
              <phase>initialize</phase>
              <goals>
                <goal>prepare-agent</goal>
              </goals>
            </execution>
            <execution>
              <id>report</id>
              <goals>
                <goal>report-aggregate</goal>
              </goals>
              <phase>verify</phase>
            </execution>
          </executions>
        </plugin>
        <plugin>
          <groupId>org.honton.chas</groupId>
          <artifactId>exists-maven-plugin</artifactId>
          <version>0.3.0</version>
          <executions>
            <execution>
              <goals>
                <goal>remote</goal>
              </goals>
              <configuration>
                <skipIfSnapshot>true</skipIfSnapshot>
              </configuration>
            </execution>
          </executions>
        </plugin>
      </plugins>
    </pluginManagement>
  </build>

  <distributionManagement>
    <repository>
      <id>mule-releases</id>
      <name>Mule Release Repository</name>
      <url>https://repository-master.mulesoft.org/nexus/content/repositories/releases</url>
    </repository>
    <snapshotRepository>
      <id>mule-snapshots</id>
      <name>Mule Snapshot Repository</name>
      <url>https://repository-master.mulesoft.org/nexus/content/repositories/snapshots</url>
      <uniqueVersion>false</uniqueVersion>
    </snapshotRepository>
  </distributionManagement>

</project>
