<?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>com.mulesoft.muleesb.modules</groupId>
    <artifactId>mule-module-anypoint-mq-ee-parent</artifactId>
    <version>3.1.0</version>
    <packaging>pom</packaging>
    <name>Mule Anypoint MQ Connector Parent</name>
    <description>All artifact for the anypoint MQ connector</description>

    <modules>
        <module>anypoint-mq-rest-client</module>
        <module>anypoint-mq-extension</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>

    <repositories>
        <repository>
            <id>mule</id>
            <name>Mule Repository</name>
            <url>https://repository.mulesoft.org/nexus/content/repositories/public/</url>
        </repository>
    </repositories>
    <build>
        <plugins>
            <plugin>
                <artifactId>maven-release-plugin</artifactId>
                <version>2.4.2</version>
                <dependencies>
                    <dependency>
                        <groupId>org.apache.maven.scm</groupId>
                        <artifactId>maven-scm-provider-gitexe</artifactId>
                        <version>1.8.1</version>
                    </dependency>
                </dependencies>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-install-plugin</artifactId>
                <version>2.5</version>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-deploy-plugin</artifactId>
                <version>2.8.2</version>
            </plugin>
        </plugins>
    </build>
    <scm>
        <connection>scm:git:git://github.com:mulesoft/anypoint-mq-connector.git</connection>
        <developerConnection>scm:git:git@github.com:mulesoft/anypoint-mq-connector.git</developerConnection>
        <url>http://github.com/mulesoft/anypoint-mq-connector</url>
        <tag>HEAD</tag>
    </scm>

    <profiles>
        <profile>
            <!--
              This profile activates the sonatype clm to index and attach the results, however
              given that the evaluate goal cannot be bound to a lifecycle phase we have to execute
              it manually:

              mvn com.sonatype.clm:clm-maven-plugin:evaluate -Dclm.serverUrl=https://nexusiq.build.msap.io
                          -Dclm.applicationId=ObjectStoreClient -Dclm.username=myusername -Dclm.password=mypassword

              For more information mvn com.sonatype.clm:clm-maven-plugin:help -Ddetail=true -Dgoal=evaluate
              or https://help.sonatype.com/display/NXI/Sonatype+CLM+for+Maven
            -->
            <id>nexusiq</id>
            <build>
                <plugins>
                    <plugin>
                        <groupId>com.sonatype.clm</groupId>
                        <artifactId>clm-maven-plugin</artifactId>
                        <version>2.7.0-01</version>
                        <executions>
                            <execution>
                                <id>index</id>
                                <goals>
                                    <goal>index</goal>
                                </goals>
                            </execution>
                            <execution>
                                <id>attach</id>
                                <goals>
                                    <goal>attach</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>
    </profiles>
</project>
