<?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>
    <parent>
        <groupId>com.fasterxml</groupId>
        <artifactId>oss-parent</artifactId>
        <version>18</version>
    </parent>

    <groupId>com.fasterxml.mama</groupId>
    <artifactId>macro-manager</artifactId>
    <version>0.6.1</version>
    <packaging>bundle</packaging>
    <name>macro-manager</name>
    <description>Experimental Java port of Ordasity scheduling library</description>

    <developers>
        <developer>
            <id>cowtowncoder</id>
            <name>Tatu Saloranta</name>
            <email>tatu@fasterxml.com</email>
        </developer>
    </developers>

    <organization>
        <name>FasterXML</name>
        <url>http://fasterxml.com</url>
    </organization>
    <url>https://github.com/FasterXML/MacroManager</url>

    <issueManagement>
        <url>https://github.com/FasterXML/MacroManager/issues</url>
    </issueManagement>

    <scm>
        <connection>scm:git:git@github.com:FasterXML/MacroManager.git</connection>
        <developerConnection>scm:git:git@github.com:FasterXML/MacroManager.git</developerConnection>
        <url>https://github.com/FasterXML/MacroManager</url>
        <tag>macro-manager-0.6.1</tag>
    </scm>

    <licenses>
        <license>
            <name>The Apache License, Version 2.0</name>
            <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
            <distribution>repo</distribution>
        </license>
    </licenses>

    <properties>
        <slf4j.version>1.7.10</slf4j.version>
        <metrics.version>3.1.0</metrics.version>
        <jackson.version>2.5.1</jackson.version>
        <version.plugin.release>2.5.1</version.plugin.release>
    </properties>

    <build>
        <defaultGoal>install</defaultGoal>
        <plugins>
            <plugin>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>3.1</version>
                <configuration>
                    <source>1.7</source>
                    <target>1.7</target>
                </configuration>
            </plugin>
            <plugin>
                <artifactId>maven-antrun-plugin</artifactId>
                <version>1.7</version>
                <executions>
                    <execution>
                        <id>build-info</id>
                        <phase>generate-resources</phase>
                        <goals>
                            <goal>run</goal>
                        </goals>
                        <configuration>
                            <tasks>
                                <echo message="Compiling build information to build-info.json" />
                                <tstamp>
                                    <format property="builtAt" pattern="yyyy-MM-dd'T'HH:mm:ss" timezone="America/Los_Angeles" />
                                </tstamp>
                                <exec executable="sh" outputproperty="gitRevision" osfamily="unix">
                                    <arg value="-c" />
                                    <arg value="git log -1 | head -n 1 | cut -f 2 -d &quot; &quot;" />
                                </exec>
                                <exec executable="sh" outputproperty="gitBranch" osfamily="unix">
                                    <arg value="-c" />
                                    <arg value="git branch | grep &quot;*&quot; | cut -f 2 -d &quot; &quot;" />
                                </exec>
                                <exec executable="sh" outputproperty="gitTag" osfamily="unix">
                                    <arg value="-c" />
                                    <arg value="git describe --tags 2&gt;&amp;1 | grep -v fatal | grep -v -e --always" />
                                </exec>
                                <exec executable="sh" outputproperty="hostname" osfamily="unix">
                                    <arg value="-c" />
                                    <arg value="hostname" />
                                </exec>
                                <mkdir dir="${project.build.outputDirectory}" />
                                <echo file="${project.build.outputDirectory}/build-info.json">{"built_by":"${user.name}",<!--
--> "built_on":"${hostname}",<!--
--> "built_at":"${builtAt}",<!--
--> "git": {<!--
--> "tag":"${gitTag}",<!--
--> "branch":"${gitBranch}",<!--
--> "revision":"${gitRevision}"<!--
--> },<!--
--> "maven": {<!--
--> "group_id":"${project.groupId}",<!--
--> "artifact_id":"${project.artifactId}",<!--
--> "version":"${project.version}"<!--
--> }<!--
--> }</echo>
                            </tasks>
                        </configuration>
                    </execution>
                </executions>
                <dependencies>
                    <dependency>
                        <groupId>org.apache.ant</groupId>
                        <artifactId>ant-nodeps</artifactId>
                        <version>1.8.1</version>
                    </dependency>
                </dependencies>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-release-plugin</artifactId>
                <configuration>
                    <mavenExecutorId>forked-path</mavenExecutorId>
                </configuration>
            </plugin>
            <plugin>
                <artifactId>maven-surefire-plugin</artifactId>
                <version>2.17</version>
                <configuration>
                    <excludes>
                        <exclude>failing/*.java</exclude>
                    </excludes>
                    <includes>
                        <include>**/*Test.java</include>
                        <include>**/Test*.java</include>
                    </includes>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.felix</groupId>
                <artifactId>maven-bundle-plugin</artifactId>
                <extensions>true</extensions>
                <configuration>
                </configuration>
            </plugin>
        </plugins>
    </build>
    <dependencies>
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-api</artifactId>
            <version>${slf4j.version}</version>
        </dependency>
        <!-- 22-Oct-2014, tatu: Not 100% sure why this is needed, but without
           such dep, looks like Bad Things happen when running things like Kafka.
          -->
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>log4j-over-slf4j</artifactId>
            <version>${slf4j.version}</version>
        </dependency>

        <dependency>
            <groupId>io.dropwizard.metrics</groupId>
            <artifactId>metrics-core</artifactId>
            <version>${metrics.version}</version>
        </dependency>

        <dependency>
            <groupId>com.boundary</groupId>
            <artifactId>high-scale-lib</artifactId>
            <version>1.0.6</version>
        </dependency>

        <dependency>
            <groupId>org.apache.zookeeper</groupId>
            <artifactId>zookeeper</artifactId>
            <version>3.3.6</version>
            <exclusions>
                <exclusion>
                    <groupId>log4j</groupId>
                    <artifactId>log4j</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>jline</groupId>
                    <artifactId>jline</artifactId>
                </exclusion>
            </exclusions>
        </dependency>

        <dependency>
            <groupId>com.twitter.common.zookeeper</groupId>
            <artifactId>client</artifactId>
            <version>0.0.46</version>
            <exclusions>
                <exclusion>
                    <groupId>log4j</groupId>
                    <artifactId>log4j</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>jline</groupId>
                    <artifactId>jline</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.apache.zookeeper</groupId>
                    <artifactId>zookeeper</artifactId>
                </exclusion>
            </exclusions>
        </dependency>

        <dependency>
            <groupId>com.twitter.common.zookeeper</groupId>
            <artifactId>map</artifactId>
            <version>0.0.39</version>
            <exclusions>
                <exclusion>
                    <groupId>jline</groupId>
                    <artifactId>jline</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.apache.zookeeper</groupId>
                    <artifactId>zookeeper</artifactId>
                </exclusion>
            </exclusions>
        </dependency>

        <dependency>
            <groupId>com.fasterxml.jackson.core</groupId>
            <artifactId>jackson-core</artifactId>
            <version>${jackson.version}</version>
        </dependency>
        <dependency>
            <groupId>com.fasterxml.jackson.core</groupId>
            <artifactId>jackson-databind</artifactId>
            <version>${jackson.version}</version>
        </dependency>

        <!-- ZooKeeper helpers use Guava -->
        <dependency>
            <groupId>com.google.guava</groupId>
            <artifactId>guava</artifactId>
            <version>18.0</version>
        </dependency>

        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-simple</artifactId>
            <version>${slf4j.version}</version>
            <scope>test</scope>
        </dependency>

    </dependencies>

    <profiles>
        <profile>
            <id>release-sign-artifacts</id>
            <activation>
                <property>
                    <name>performRelease</name>
                    <value>true</value>
                </property>
            </activation>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-gpg-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>sign-artifacts</id>
                                <phase>verify</phase>
                                <goals>
                                    <goal>sign</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>
    </profiles>

    <!-- Looks like Twitter hasn't pushed zookeeper stuff into Maven central for some reason
      -->
    <repositories>
        <repository>
            <id>twitter</id>
            <url>http://maven.twttr.com/</url>
        </repository>
    </repositories>

</project>
