<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>org.sonatype.oss</groupId>
    <artifactId>oss-parent</artifactId>
    <version>7</version>
  </parent>

  <groupId>org.akubraproject</groupId>
  <artifactId>akubra</artifactId>
  <version>0.4.0</version>
  <packaging>pom</packaging>
  <name>Akubra Blob Storage API</name>
  <url>http://akubra.github.com/akubra/</url>
  <description>
    A pluggable interface that provides read/write access to finite-length,
    URI-addressable bitstreams.
  </description>
  <inceptionYear>2009</inceptionYear>

  <organization>
    <name>DuraSpace</name>
    <url>http://duraspace.org/</url>
  </organization>

  <licenses>
    <license>
      <name>Licensed under the Apache License, Version 2.0</name>
      <url>http://www.apache.org/licenses/LICENSE-2.0</url>
      <comments>Copyright (c) 2009-2012 DuraSpace</comments>
      <distribution>repo</distribution>
    </license>
  </licenses>

  <issueManagement>
    <system>jira</system>
    <url>https://jira.duraspace.org/browse/AKUBRA</url>
  </issueManagement>

  <ciManagement>
    <system>bamboo</system>
    <url>https://bamboo.duraspace.org/browse/AKUBRA</url>
  </ciManagement>

  <mailingLists>
    <mailingList>
      <name>Akubra project general users mailing list</name>
      <subscribe>http://groups.google.com/group/akubra-users/subscribe</subscribe>
      <unsubscribe>akubra-users+unsubscribe@googlegroups.com</unsubscribe>
      <post>akubra-users@googlegroups.com</post>
      <archive>http://groups.google.com/group/akubra-users/topics</archive>
    </mailingList>
    <mailingList>
      <name>Akubra project developer mailing list</name>
      <subscribe>http://groups.google.com/group/akubra-dev/subscribe</subscribe>
      <unsubscribe>akubra-dev+unsubscribe@googlegroups.com</unsubscribe>
      <post>akubra-dev@googlegroups.com</post>
      <archive>http://groups.google.com/group/akubra-dev/topics</archive>
    </mailingList>
    <mailingList>
      <name>Akubra project commit notification mailing list</name>
      <subscribe>http://groups.google.com/group/akubra-codewatch/subscribe</subscribe>
      <unsubscribe>akubra-codewatch+unsubscribe@googlegroups.com</unsubscribe>
      <post>akubra-codewatch@googlegroups.com</post>
      <archive>http://groups.google.com/group/akubra-codewatch/topics</archive>
    </mailingList>
  </mailingLists>

  <developers>
    <developer>
      <name>Amit Kapoor</name>
    </developer>
    <developer>
      <name>Chris Wilper</name>
    </developer>
    <developer>
      <name>Pradeep Krishnan</name>
    </developer>
    <developer>
      <name>Ronald Tschalär</name>
    </developer>
    <developer>
      <name>Scott Prater</name>
    </developer>
  </developers>

  <distributionManagement>
    <site>
      <id>${site.id}</id>
      <url>${site.url}</url>
    </site>
  </distributionManagement>

  <scm>
    <developerConnection>scm:git:git@github.com:akubra/akubra.git</developerConnection>
    <connection>scm:git:git://github.com/akubra/akubra.git</connection>
    <url>https://github.com/akubra/akubra</url>
  </scm>

  <modules>
    <module>akubra-core</module>
    <module>akubra-fs</module>
    <module>akubra-map</module>
    <module>akubra-mem</module>
    <module>akubra-mux</module>
    <module>akubra-qsc</module>
    <module>akubra-rmi</module>
    <module>akubra-tck</module>
    <module>akubra-txn</module>
    <module>akubra-www</module>
  </modules>

  <properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>

    <!-- deploy site locally by default -->
    <site.id>local-site</site.id>
    <site.url>file:///tmp/akubra-site</site.url>

    <!-- for use in site/apt/*.apt.vm docs -->
    <groupId>${project.groupId}</groupId>
    <artifactId>${project.artifactId}</artifactId>
    <currentVersion>${project.version}</currentVersion>
  </properties>

  <dependencyManagement>
    <dependencies>
      <dependency>
        <groupId>ch.qos.logback</groupId>
        <artifactId>logback-classic</artifactId>
        <version>1.0.0</version>
      </dependency>

      <dependency>
        <groupId>com.google.guava</groupId>
        <artifactId>guava-collections</artifactId>
        <version>r03</version>
      </dependency>

      <dependency>
        <groupId>com.googlecode.thread-weaver</groupId>
        <artifactId>threadweaver</artifactId>
        <version>0.1</version>
      </dependency>

      <dependency>
        <groupId>commons-io</groupId>
        <artifactId>commons-io</artifactId>
        <version>2.1</version>
      </dependency>

      <dependency>
        <groupId>javax.transaction</groupId>
        <artifactId>jta</artifactId>
        <version>1.1</version>
      </dependency>

      <dependency>
        <groupId>org.akubraproject</groupId>
        <artifactId>akubra-core</artifactId>
        <version>${pom.version}</version>
      </dependency>

      <dependency>
        <groupId>org.akubraproject</groupId>
        <artifactId>akubra-fs</artifactId>
        <version>${pom.version}</version>
      </dependency>

      <dependency>
        <groupId>org.akubraproject</groupId>
        <artifactId>akubra-mem</artifactId>
        <version>${pom.version}</version>
      </dependency>

      <dependency>
        <groupId>org.akubraproject</groupId>
        <artifactId>akubra-tck</artifactId>
        <version>${pom.version}</version>
      </dependency>

      <dependency>
        <groupId>org.akubraproject</groupId>
        <artifactId>akubra-txn</artifactId>
        <version>${pom.version}</version>
      </dependency>

      <dependency>
        <groupId>org.apache.derby</groupId>
        <artifactId>derby</artifactId>
        <version>10.8.2.2</version>
      </dependency>

      <dependency>
        <groupId>org.codehaus.btm</groupId>
        <artifactId>btm</artifactId>
        <version>2.1.2</version>
      </dependency>

      <dependency>
        <groupId>org.easymock</groupId>
        <artifactId>easymock</artifactId>
        <version>3.1</version>
      </dependency>

      <dependency>
        <groupId>org.slf4j</groupId>
        <artifactId>slf4j-api</artifactId>
        <version>1.6.4</version>
      </dependency>

      <dependency>
        <groupId>org.testng</groupId>
        <artifactId>testng</artifactId>
        <version>6.4</version>
      </dependency>
    </dependencies>
  </dependencyManagement>

  <dependencies>
    <dependency>
      <groupId>ch.qos.logback</groupId>
      <artifactId>logback-classic</artifactId>
      <scope>test</scope>
    </dependency>

    <dependency>
      <groupId>com.googlecode.thread-weaver</groupId>
      <artifactId>threadweaver</artifactId>
      <scope>test</scope>
    </dependency>

    <dependency>
      <groupId>org.easymock</groupId>
      <artifactId>easymock</artifactId>
      <scope>test</scope>
    </dependency>

    <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>slf4j-api</artifactId>
    </dependency>

    <dependency>
      <groupId>org.testng</groupId>
      <artifactId>testng</artifactId>
      <scope>test</scope>
    </dependency>
  </dependencies>

  <build>
    <pluginManagement>
      <plugins>
        <!--
          This plugin's configuration is used to store Eclipse m2e
          settings only. It has no influence on the Maven build itself.
        -->
        <plugin>
          <groupId>org.eclipse.m2e</groupId>
          <artifactId>lifecycle-mapping</artifactId>
          <version>1.0.0</version>
          <configuration>
            <lifecycleMappingMetadata>
              <pluginExecutions>
                <pluginExecution>
                  <pluginExecutionFilter>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-enforcer-plugin</artifactId>
                    <versionRange>[1.0,)</versionRange>
                    <goals>
                      <goal>enforce</goal>
                    </goals>
                  </pluginExecutionFilter>
                  <action>
                    <ignore />
                  </action>
                </pluginExecution>
              </pluginExecutions>
            </lifecycleMappingMetadata>
          </configuration>
        </plugin>
      </plugins>
    </pluginManagement>

    <plugins>
      <plugin>
        <groupId>org.apache.felix</groupId>
        <artifactId>maven-bundle-plugin</artifactId>
        <extensions>true</extensions>
        <!--
          Version held back due to bndlib pom issue which results in Maven 2
          build warnings when using maven-bundle-plugin v2.2.0 through 2.3.7
          https://issues.sonatype.org/browse/MVNCENTRAL-10
        -->
        <version>2.1.0</version>
        <configuration>
          <instructions>
            <Export-Package>${osgi.export}</Export-Package>
          </instructions>
        </configuration>
      </plugin>

      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>2.3.2</version>
        <configuration>
          <source>1.6</source>
          <target>1.6</target>
        </configuration>
      </plugin>

      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-enforcer-plugin</artifactId>
        <version>1.0.1</version>
        <executions>
          <execution>
            <goals>
              <goal>enforce</goal>
            </goals>
            <configuration>
              <rules>
                <bannedDependencies>
                  <searchTransitive>true</searchTransitive>
                  <excludes>
                    <exclude>commons-logging</exclude>
                    <exclude>log4j:log4j</exclude>
                    <exclude>org.slf4j:slf4j-jcl</exclude>
                    <exclude>org.slf4j:slf4j-jdk14</exclude>
                    <exclude>org.slf4j:slf4j-log4j12</exclude>
                    <exclude>org.slf4j:slf4j-log4j13</exclude>
                    <exclude>org.slf4j:slf4j-nop</exclude>
                    <exclude>org.slf4j:slf4j-simple</exclude>
                  </excludes>
                </bannedDependencies>
              </rules>
            </configuration>
          </execution>
        </executions>
      </plugin>

      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-javadoc-plugin</artifactId>
        <version>2.8.1</version>
        <configuration>
          <encoding>UTF-8</encoding>
          <links>
            <link>http://docs.oracle.com/javase/6/docs/api/</link>
          </links>
        </configuration>
        <executions>
          <execution>
            <id>attach-javadocs</id>
            <phase>verify</phase>
            <goals>
              <goal>jar</goal>
            </goals>
          </execution>
        </executions>
      </plugin>

      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-pmd-plugin</artifactId>
        <version>2.7.1</version>
      </plugin>

      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-release-plugin</artifactId>
        <version>2.2.2</version>
      </plugin>

      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-site-plugin</artifactId>
        <version>3.0</version>
      </plugin>

      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-source-plugin</artifactId>
        <version>2.1.2</version>
        <executions>
          <execution>
            <id>attach-sources</id>
            <phase>verify</phase>
            <goals>
              <goal>jar</goal>
            </goals>
          </execution>
        </executions>
      </plugin>

      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>cobertura-maven-plugin</artifactId>
        <version>2.5.1</version>
      </plugin>
    </plugins>
  </build>

  <reporting>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-javadoc-plugin</artifactId>
      </plugin>

      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-jxr-plugin</artifactId>
        <version>2.3</version>
        <configuration>
          <inputEncoding>UTF-8</inputEncoding>
          <outputEncoding>UTF-8</outputEncoding>
        </configuration>
      </plugin>

      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-pmd-plugin</artifactId>
        <version>2.7.1</version>
        <configuration>
          <sourceEncoding>UTF-8</sourceEncoding>
          <targetJdk>1.6</targetJdk>
          <failOnViolation>false</failOnViolation>
        </configuration>
      </plugin>

      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>findbugs-maven-plugin</artifactId>
        <version>2.4.0</version>
        <configuration>
          <excludeFilterFile>${project.parent.basedir}/findbugs_exclude.xml</excludeFilterFile>
        </configuration>
      </plugin>

      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>cobertura-maven-plugin</artifactId>
      </plugin>

      <plugin>
        <artifactId>maven-surefire-report-plugin</artifactId>
        <version>2.12</version>
        <reportSets>
          <reportSet>
            <reports>
              <report>report-only</report>
            </reports>
          </reportSet>
        </reportSets>
      </plugin>
    </plugins>
  </reporting>

  <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>
            <version>1.4</version>
            <executions>
              <execution>
                <id>sign-artifacts</id>
                <phase>verify</phase>
                <goals>
                  <goal>sign</goal>
                </goals>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
    </profile>
  </profiles>

</project>
