<?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>com.mulesoft.anypoint</groupId>
  <artifactId>runtime-discovery-pom</artifactId>
  <version>4.0.0</version>
  <packaging>pom</packaging>

  <modules>
    <module>api</module>
    <module>core</module>
  </modules>

  <name>Mule Runtime Discovery POM</name>

  <properties>
    <licensePath>LICENSE_HEADER.txt</licensePath>
    <formatterConfigPath>formatter.xml</formatterConfigPath>
    <javaVersion>1.8</javaVersion>
    <maven.compiler.source>1.8</maven.compiler.source>
    <maven.compiler.target>1.8</maven.compiler.target>

    <mule.api.version>1.1.2</mule.api.version>
    <aether.version>1.1.0</aether.version>
    <slf4j.api.version>1.7.25</slf4j.api.version>
    <junit.version>4.12</junit.version>
    <hamcrest.all.version>1.3</hamcrest.all.version>
    <commons.io.version>2.6</commons.io.version>
  </properties>

  <build>
    <plugins>
      <!--
          The bulk of the config of the jar plugin is inherited from the parent
          POM. We need to override the license, however ...
      -->
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-jar-plugin</artifactId>
        <configuration>
          <archive>
            <manifestEntries>
              <Description>API Gateway Platform</Description>
              <License>MSA v1.0 http://www.mulesoft.com/</License>
            </manifestEntries>
          </archive>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>2.3.2</version>
        <configuration>
          <source>1.8</source>
          <target>1.8</target>
          <encoding>ISO-8859-1</encoding>
        </configuration>
      </plugin>
      <plugin>
        <groupId>com.mycila</groupId>
        <artifactId>license-maven-plugin</artifactId>
        <version>2.6</version>
        <configuration>
          <header>${licensePath}</header>
          <excludes>
            <exclude>target/**</exclude>
            <exclude>**/.gitignore</exclude>
            <exclude>**/*.txt</exclude>
            <exclude>**/*.groovy</exclude>
            <exclude>**/*.sh</exclude>
            <exclude>**/*.bat</exclude>
            <exclude>**/*.xml</exclude>
            <exclude>**/*.properties</exclude>
            <exclude>**/*.md</exclude>
            <exclude>**/*.xsl</exclude>
            <exclude>**/*.html</exclude>
            <exclude>**/build-number.txt</exclude>
          </excludes>
          <includes>
            <include>**/*.java</include>
          </includes>
          <mapping>
            <java>SLASHSTAR_STYLE</java>
          </mapping>
          <strictCheck>true</strictCheck>
        </configuration>
        <executions>
          <execution>
            <goals>
              <goal>check</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-resources-plugin</artifactId>
        <configuration>
          <encoding>UTF-8</encoding>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-surefire-plugin</artifactId>
        <version>2.19.1</version>
      </plugin>
    </plugins>
    <extensions>
      <extension>
        <groupId>org.apache.maven.wagon</groupId>
        <artifactId>wagon-webdav</artifactId>
        <version>1.0-beta-2</version>
      </extension>
    </extensions>
  </build>

  <repositories>
    <repository>
      <id>mule-ee-releases</id>
      <name>Internal Release Repo</name>
      <url>https://repository.mulesoft.org/nexus/content/repositories/ci-releases/</url>
      <snapshots>
        <enabled>false</enabled>
      </snapshots>
    </repository>
    <repository>
      <id>mule-ee-snapshots</id>
      <name>Internal Release Repo</name>
      <url>https://repository.mulesoft.org/nexus/content/repositories/ci-snapshots/</url>
      <releases>
        <enabled>false</enabled>
      </releases>
      <snapshots>
        <enabled>true</enabled>
      </snapshots>
    </repository>
  </repositories>

  <distributionManagement>
    <repository>
      <id>mule-releases</id>
      <name>MuleSoft Releases Repository</name>
      <url>https://repository-master.mulesoft.org/releases/</url>
    </repository>
    <snapshotRepository>
      <id>mule-snapshots</id>
      <name>MuleSoft Snapshots Repository</name>
      <url>https://repository-master.mulesoft.org/snapshots/</url>
    </snapshotRepository>
  </distributionManagement>


</project>
