<?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>org.apache.heron</groupId>
  <artifactId>heron-api</artifactId>
  <version>v0.20.1-incubating-rc1</version>  
  <packaging>jar</packaging>
  <name>heron-api</name>
  <description>Heron API</description>
  <url>http://www.heronstreaming.io</url>
  <licenses>
    <license>
      <name>The Apache License, Version 2.0</name>
      <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
    </license>
  </licenses>

  <parent>
    <groupId>org.apache</groupId>
    <artifactId>apache</artifactId>
    <version>21</version>
  </parent>

  <mailingLists>
    <mailingList>
        <name>Heron user mailing list</name>
        <subscribe>user-subscribe@heron.incubator.apache.org</subscribe>
        <unsubscribe>user-unsubscribe@heron.incubator.apache.org</unsubscribe>
        <post>user@heron.incubator.apache.org</post>
        <archive>http://mail-archives.apache.org/mod_mbox/heron-user/</archive>
    </mailingList>
    <mailingList>
        <name>Heron developer mailing list</name>
        <subscribe>dev-subscribe@heron.incubator.apache.org</subscribe>
        <unsubscribe>dev-unsubscribe@heron.incubator.apache.org</unsubscribe>
        <post>dev@heron.incubator.apache.org</post>
        <archive>http://mail-archives.apache.org/mod_mbox/heron-dev/</archive>
    </mailingList>
  </mailingLists>

  <developers>
    <developer>
      <name>Heron Project</name>
      <email>dev@heron.incubator.apache.org</email>
      <organization>Apache Software Foundation</organization>
      <organizationUrl>http://http://apache.org/</organizationUrl>
    </developer>
  </developers>

  <profiles>
    <profile>
        <id>release</id>
            <activation>
                <property>
                    <name>release</name>
                </property>
            </activation>
        <properties>
            <java.version>1.8</java.version>
        </properties>
        <build>
            <plugins>
              <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-javadoc-plugin</artifactId>
                    <executions>
                        <execution>
                            <id>attach-javadocs</id>
                            <goals>
                                <goal>jar</goal>
                            </goals>
                        </execution>
                    </executions>
                </plugin>
                <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>

   <build>
        <plugins>
            <plugin>
                <artifactId>maven-clean-plugin</artifactId>
                <version>2.5</version>
                <executions>
                    <execution>
                        <id>cleanup</id>
                        <phase>clean</phase>
                        <goals>
                            <goal>clean</goal>
                        </goals>
                        <configuration>
                            <excludeDefaultDirectories>true</excludeDefaultDirectories>
                            <filesets>
                                <fileset>
                                    <directory>./logs/</directory>
                                </fileset>
                            </filesets>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-enforcer-plugin</artifactId>
                <executions>
                    <execution>
                        <id>enforce-maven-version</id>
                        <goals>
                            <goal>enforce</goal>
                        </goals>
                        <configuration>
                            <rules>
                                <requireMavenVersion>
                                    <version>3.0</version>
                                </requireMavenVersion>
                                <bannedDependencies>
                                    <excludes>
                                        <exclude>jdk.tools:jdk.tools:*</exclude>
                                    </excludes>
                                </bannedDependencies>
                            </rules>    
                        </configuration>
                    </execution>
                </executions>
            </plugin>
            <plugin>
              <groupId>org.apache.maven.plugins</groupId>
              <artifactId>maven-source-plugin</artifactId>
              <executions>
                <execution>
                  <id>attach-sources</id>
                  <goals>
                    <goal>jar</goal>
                  </goals>
                </execution>
              </executions>
            </plugin>
            <plugin>
              <groupId>org.apache.maven.plugins</groupId>
              <artifactId>maven-javadoc-plugin</artifactId>
              <executions>
                <execution>
                  <id>attach-javadocs</id>
                  <goals>
                    <goal>jar</goal>
                  </goals>
                </execution>
              </executions>
            </plugin>
            <plugin>
               <artifactId>maven-deploy-plugin</artifactId>
               <version>2.8.1</version>
               <executions>
                  <execution>
                     <id>default-deploy</id>
                     <phase>deploy</phase>
                     <goals>
                        <goal>deploy</goal>
                     </goals>
                  </execution>
               </executions>
            </plugin>
        </plugins>
    </build>

  <scm>
    <connection>scm:git:git@github.com:apache/incubator-heron.git</connection>
    <developerConnection>scm:git:git@github.com:apache/incubator-heron.git</developerConnection>
    <url>git@github.com:apache/incubator-heron.git</url>
  </scm>
</project>
