<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.plugins</groupId>
    <artifactId>mule-plugins-maven-plugin-parent</artifactId>
    <version>1.0.0-M2</version>
    <packaging>pom</packaging>

    <name>Mule Plugins Maven Plugin</name>

    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <maven.plugin.api.version>3.3.9</maven.plugin.api.version>
        <maven.plugin.annotations.version>3.4</maven.plugin.annotations.version>
        <mavenCompilerVersion>3.5.1</mavenCompilerVersion>
        <maven.project.version>2.2.1</maven.project.version>
        <plexus.archiver.version>3.1</plexus.archiver.version>
        <maven.invoker.plugin.version>2.0.0</maven.invoker.plugin.version>
        <mule.version>4.0.0-M2</mule.version>
        <mule.extensions.api.version>1.0.0-M2</mule.extensions.api.version>
        <jdk.version>1.8</jdk.version>
    </properties>
    
    <modules>
        <module>mule-app-plugins-maven-plugin</module>
        <module>mule-extensions-maven-plugin-it-parent</module>
        <module>mule-extensions-maven-plugin</module>
    </modules>

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

    <scm>
        <connection>scm:git:git://github.com/mulesoft/mule-extensions-maven-plugin.git</connection>
        <developerConnection>scm:git:git@github.com:mulesoft/mule-extensions-maven-plugin.git</developerConnection>
        <url>https://github.com/mulesoft/mule-extensions-maven-plugin</url>
        <tag>1.0.0-M2</tag>
    </scm>

    <build>
        <plugins>
            <plugin>
                <artifactId>maven-plugin-plugin</artifactId>
                <version>3.4</version>
                <configuration>
                    <skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
                </configuration>
                <executions>
                    <execution>
                        <id>mojo-descriptor</id>
                        <phase>process-classes</phase>
                        <goals>
                            <goal>descriptor</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>${mavenCompilerVersion}</version>
                <configuration>
                    <encoding>ISO-8859-1</encoding>
                    <fork>true</fork>
                    <maxmem>512m</maxmem>
                    <source>${jdk.version}</source>
                    <target>${jdk.version}</target>
                    <proc>none</proc>
                    <!-- Slightly faster builds, see https://jira.codehaus.org/browse/MCOMPILER-209 -->
                    <useIncrementalCompilation>false</useIncrementalCompilation>
                    <compilerArgs>
                        <arg>-parameters</arg>
                    </compilerArgs>
                    <testCompilerArgument>-parameters</testCompilerArgument>
                </configuration>
            </plugin>
        </plugins>
    </build>

</project>
