<?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.instaclustr</groupId>
  <artifactId>ic-sstable-tools-4.0-rc1</artifactId>
  <name>Instaclustr SSTable Tools</name>
  <version>1.0.0</version>
  <description>Handy SSTable tools for Apache Cassandra</description>
  <url>https://github.com/instaclustr/cassandra-sstable-tools</url>
  <inceptionYear>2018</inceptionYear>
  <developers>
    <developer>
      <name>Various</name>
      <email>support@instaclustr.com</email>
      <organization>Instaclustr</organization>
      <organizationUrl>https://www.instaclustr.com</organizationUrl>
    </developer>
  </developers>
  <licenses>
    <license>
      <name>The Apache License, Version 2.0</name>
      <url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
    </license>
  </licenses>
  <scm>
    <connection>scm:git:git://git@github.com:instaclustr/cassandra-sstable-tools.git</connection>
    <developerConnection>scm:git:ssh://github.com/instaclustr/cassandra-sstable-tools.git</developerConnection>
    <url>git://github.com/instaclustr/cassandra-sstable-tools.git</url>
  </scm>
  <organization>
    <name>Instaclustr</name>
    <url>https://instaclustr.com</url>
  </organization>
  <build>
    <finalName>ic-sstable-tools</finalName>
    <plugins>
      <plugin>
        <artifactId>maven-javadoc-plugin</artifactId>
        <version>${maven.javadoc.plugin.version}</version>
        <executions>
          <execution>
            <id>attach-javadocs</id>
            <goals>
              <goal>jar</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <source>8</source>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>${maven.compiler.plugin.version}</version>
        <configuration>
          <source>${java.version}</source>
          <target>${java.version}</target>
          <encoding>UTF-8</encoding>
          <compilerArgument>-Xlint:all</compilerArgument>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-jar-plugin</artifactId>
        <version>${maven.jar.plugin.version}</version>
        <configuration>
          <outputDirectory>${outputDirectory}</outputDirectory>
          <archive>
            <manifest>
              <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
              <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
            </manifest>
            <manifestEntries>
              <Git-Commit>${git.commit.id}</Git-Commit>
              <Build-Time>${git.build.time}</Build-Time>
            </manifestEntries>
          </archive>
        </configuration>
      </plugin>
      <plugin>
        <groupId>pl.project13.maven</groupId>
        <artifactId>git-commit-id-plugin</artifactId>
        <version>${maven.git.command.plugin.version}</version>
        <executions>
          <execution>
            <goals>
              <goal>revision</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <dotGitDirectory>${project.basedir}/.git</dotGitDirectory>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-source-plugin</artifactId>
        <version>${maven.source.plugin.version}</version>
        <executions>
          <execution>
            <id>attach-sources</id>
            <goals>
              <goal>jar-no-fork</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-shade-plugin</artifactId>
        <version>${maven.shade.plugin.version}</version>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>shade</goal>
            </goals>
            <configuration>
              <transformers>
                <transformer>
                  <mainClass>com.instaclustr.sstabletools.cli.CLI</mainClass>
                </transformer>
              </transformers>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-release-plugin</artifactId>
        <version>${version.maven.release.plugin}</version>
        <configuration>
          <pushChanges>false</pushChanges>
          <tagNameFormat>v@{project.version}</tagNameFormat>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.vafer</groupId>
        <artifactId>jdeb</artifactId>
        <version>${version.jdeb}</version>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>jdeb</goal>
            </goals>
            <configuration>
              <name>${project.artifactId}</name>
              <deb>${outputDirectory}/[[name]]_${project.version}.deb</deb>
              <dataSet>
                <data>
                  <src>${outputDirectory}/${project.build.finalName}.jar</src>
                  <type>file</type>
                  <mapper>
                    <type>perm</type>
                    <prefix>/usr/share/cassandra/lib</prefix>
                  </mapper>
                </data>
                <data>
                  <src>${project.basedir}/bin/ic-sstable-tools</src>
                  <type>file</type>
                  <mapper>
                    <type>perm</type>
                    <prefix>/usr/local/bin/</prefix>
                  </mapper>
                </data>
              </dataSet>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>de.dentrassi.maven</groupId>
        <artifactId>rpm</artifactId>
        <version>${version.rpm}</version>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>rpm</goal>
            </goals>
            <configuration>
              <packageName>${project.artifactId}</packageName>
              <group>Applications/Databases</group>
              <packager>${maintainer}</packager>
              <skipSigning>true</skipSigning>
              <entries>
                <entry>
                  <name>/usr/share/cassandra/lib/${project.build.finalName}.jar</name>
                  <file>${outputDirectory}/${project.build.finalName}.jar</file>
                </entry>
                <entry>
                  <name>/usr/local/bin/ic-sstable-tools</name>
                  <file>${project.basedir}/bin/ic-sstable-tools</file>
                  <mode>0755</mode>
                </entry>
              </entries>
              <targetDir>${outputDirectory}</targetDir>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
  <profiles>
    <profile>
      <id>release</id>
      <build>
        <plugins>
          <plugin>
            <artifactId>maven-gpg-plugin</artifactId>
            <version>1.6</version>
            <executions>
              <execution>
                <id>sign-artifacts</id>
                <phase>verify</phase>
                <goals>
                  <goal>sign</goal>
                </goals>
              </execution>
            </executions>
          </plugin>
          <plugin>
            <groupId>org.sonatype.plugins</groupId>
            <artifactId>nexus-staging-maven-plugin</artifactId>
            <version>1.6.8</version>
            <extensions>true</extensions>
            <executions>
              <execution>
                <id>injected-nexus-deploy</id>
                <phase>deploy</phase>
                <goals>
                  <goal>deploy</goal>
                </goals>
                <configuration>
                  <serverId>ossrh</serverId>
                  <nexusUrl>https://oss.sonatype.org/</nexusUrl>
                  <autoReleaseAfterClose>false</autoReleaseAfterClose>
                </configuration>
              </execution>
            </executions>
            <configuration>
              <serverId>ossrh</serverId>
              <nexusUrl>https://oss.sonatype.org/</nexusUrl>
              <autoReleaseAfterClose>false</autoReleaseAfterClose>
            </configuration>
          </plugin>
        </plugins>
      </build>
    </profile>
  </profiles>
  <dependencies>
    <dependency>
      <groupId>org.apache.cassandra</groupId>
      <artifactId>cassandra-all</artifactId>
      <version>4.0-rc1</version>
      <scope>provided</scope>
      <exclusions>
        <exclusion>
          <artifactId>snappy-java</artifactId>
          <groupId>org.xerial.snappy</groupId>
        </exclusion>
        <exclusion>
          <artifactId>lz4-java</artifactId>
          <groupId>org.lz4</groupId>
        </exclusion>
        <exclusion>
          <artifactId>guava</artifactId>
          <groupId>com.google.guava</groupId>
        </exclusion>
        <exclusion>
          <artifactId>commons-cli</artifactId>
          <groupId>commons-cli</groupId>
        </exclusion>
        <exclusion>
          <artifactId>commons-codec</artifactId>
          <groupId>commons-codec</groupId>
        </exclusion>
        <exclusion>
          <artifactId>commons-lang3</artifactId>
          <groupId>org.apache.commons</groupId>
        </exclusion>
        <exclusion>
          <artifactId>commons-math3</artifactId>
          <groupId>org.apache.commons</groupId>
        </exclusion>
        <exclusion>
          <artifactId>ST4</artifactId>
          <groupId>org.antlr</groupId>
        </exclusion>
        <exclusion>
          <artifactId>antlr-runtime</artifactId>
          <groupId>org.antlr</groupId>
        </exclusion>
        <exclusion>
          <artifactId>slf4j-api</artifactId>
          <groupId>org.slf4j</groupId>
        </exclusion>
        <exclusion>
          <artifactId>log4j-over-slf4j</artifactId>
          <groupId>org.slf4j</groupId>
        </exclusion>
        <exclusion>
          <artifactId>jcl-over-slf4j</artifactId>
          <groupId>org.slf4j</groupId>
        </exclusion>
        <exclusion>
          <artifactId>jackson-core</artifactId>
          <groupId>com.fasterxml.jackson.core</groupId>
        </exclusion>
        <exclusion>
          <artifactId>jackson-databind</artifactId>
          <groupId>com.fasterxml.jackson.core</groupId>
        </exclusion>
        <exclusion>
          <artifactId>jackson-annotations</artifactId>
          <groupId>com.fasterxml.jackson.core</groupId>
        </exclusion>
        <exclusion>
          <artifactId>json-simple</artifactId>
          <groupId>com.googlecode.json-simple</groupId>
        </exclusion>
        <exclusion>
          <artifactId>high-scale-lib</artifactId>
          <groupId>com.boundary</groupId>
        </exclusion>
        <exclusion>
          <artifactId>snakeyaml</artifactId>
          <groupId>org.yaml</groupId>
        </exclusion>
        <exclusion>
          <artifactId>jbcrypt</artifactId>
          <groupId>org.mindrot</groupId>
        </exclusion>
        <exclusion>
          <artifactId>airline</artifactId>
          <groupId>io.airlift</groupId>
        </exclusion>
        <exclusion>
          <artifactId>metrics-core</artifactId>
          <groupId>io.dropwizard.metrics</groupId>
        </exclusion>
        <exclusion>
          <artifactId>metrics-jvm</artifactId>
          <groupId>io.dropwizard.metrics</groupId>
        </exclusion>
        <exclusion>
          <artifactId>metrics-logback</artifactId>
          <groupId>io.dropwizard.metrics</groupId>
        </exclusion>
        <exclusion>
          <artifactId>reporter-config3</artifactId>
          <groupId>com.addthis.metrics</groupId>
        </exclusion>
        <exclusion>
          <artifactId>stream</artifactId>
          <groupId>com.clearspring.analytics</groupId>
        </exclusion>
        <exclusion>
          <artifactId>logback-core</artifactId>
          <groupId>ch.qos.logback</groupId>
        </exclusion>
        <exclusion>
          <artifactId>logback-classic</artifactId>
          <groupId>ch.qos.logback</groupId>
        </exclusion>
        <exclusion>
          <artifactId>jna</artifactId>
          <groupId>net.java.dev.jna</groupId>
        </exclusion>
        <exclusion>
          <artifactId>jamm</artifactId>
          <groupId>com.github.jbellis</groupId>
        </exclusion>
        <exclusion>
          <artifactId>netty-all</artifactId>
          <groupId>io.netty</groupId>
        </exclusion>
        <exclusion>
          <artifactId>chronicle-queue</artifactId>
          <groupId>net.openhft</groupId>
        </exclusion>
        <exclusion>
          <artifactId>chronicle-core</artifactId>
          <groupId>net.openhft</groupId>
        </exclusion>
        <exclusion>
          <artifactId>chronicle-bytes</artifactId>
          <groupId>net.openhft</groupId>
        </exclusion>
        <exclusion>
          <artifactId>chronicle-wire</artifactId>
          <groupId>net.openhft</groupId>
        </exclusion>
        <exclusion>
          <artifactId>chronicle-threads</artifactId>
          <groupId>net.openhft</groupId>
        </exclusion>
        <exclusion>
          <artifactId>sigar</artifactId>
          <groupId>org.fusesource</groupId>
        </exclusion>
        <exclusion>
          <artifactId>ecj</artifactId>
          <groupId>org.eclipse.jdt.core.compiler</groupId>
        </exclusion>
        <exclusion>
          <artifactId>ohc-core</artifactId>
          <groupId>org.caffinitas.ohc</groupId>
        </exclusion>
        <exclusion>
          <artifactId>ohc-core-j8</artifactId>
          <groupId>org.caffinitas.ohc</groupId>
        </exclusion>
        <exclusion>
          <artifactId>caffeine</artifactId>
          <groupId>com.github.ben-manes.caffeine</groupId>
        </exclusion>
        <exclusion>
          <artifactId>jctools-core</artifactId>
          <groupId>org.jctools</groupId>
        </exclusion>
        <exclusion>
          <artifactId>asm</artifactId>
          <groupId>org.ow2.asm</groupId>
        </exclusion>
        <exclusion>
          <artifactId>hppc</artifactId>
          <groupId>com.carrotsearch</groupId>
        </exclusion>
        <exclusion>
          <artifactId>sjk-cli</artifactId>
          <groupId>org.gridkit.jvmtool</groupId>
        </exclusion>
        <exclusion>
          <artifactId>sjk-core</artifactId>
          <groupId>org.gridkit.jvmtool</groupId>
        </exclusion>
        <exclusion>
          <artifactId>sjk-stacktrace</artifactId>
          <groupId>org.gridkit.jvmtool</groupId>
        </exclusion>
        <exclusion>
          <artifactId>mxdump</artifactId>
          <groupId>org.gridkit.jvmtool</groupId>
        </exclusion>
        <exclusion>
          <artifactId>jvm-attach-api</artifactId>
          <groupId>org.gridkit.lab</groupId>
        </exclusion>
        <exclusion>
          <artifactId>jcommander</artifactId>
          <groupId>com.beust</groupId>
        </exclusion>
        <exclusion>
          <artifactId>sjk-json</artifactId>
          <groupId>org.gridkit.jvmtool</groupId>
        </exclusion>
        <exclusion>
          <artifactId>zstd-jni</artifactId>
          <groupId>com.github.luben</groupId>
        </exclusion>
        <exclusion>
          <artifactId>psjava</artifactId>
          <groupId>org.psjava</groupId>
        </exclusion>
        <exclusion>
          <artifactId>netty-tcnative-boringssl-static</artifactId>
          <groupId>io.netty</groupId>
        </exclusion>
        <exclusion>
          <artifactId>javax.inject</artifactId>
          <groupId>javax.inject</groupId>
        </exclusion>
        <exclusion>
          <artifactId>j2objc-annotations</artifactId>
          <groupId>com.google.j2objc</groupId>
        </exclusion>
        <exclusion>
          <artifactId>HdrHistogram</artifactId>
          <groupId>org.hdrhistogram</groupId>
        </exclusion>
        <exclusion>
          <artifactId>jflex</artifactId>
          <groupId>de.jflex</groupId>
        </exclusion>
        <exclusion>
          <artifactId>snowball-stemmer</artifactId>
          <groupId>com.github.rholder</groupId>
        </exclusion>
        <exclusion>
          <artifactId>concurrent-trees</artifactId>
          <groupId>com.googlecode.concurrent-trees</groupId>
        </exclusion>
      </exclusions>
    </dependency>
  </dependencies>
  <distributionManagement>
    <repository>
      <id>ossrh</id>
      <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
    </repository>
    <snapshotRepository>
      <id>nexus-snapshots</id>
      <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
    </snapshotRepository>
  </distributionManagement>
  <properties>
    <version.jdeb>1.8</version.jdeb>
    <nexus.staging.maven.plugin.version>1.6.8</nexus.staging.maven.plugin.version>
    <maven.source.plugin.version>3.1.0</maven.source.plugin.version>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <maven.compiler.source>1.8</maven.compiler.source>
    <java.version>8</java.version>
    <version.rpm>1.5.0</version.rpm>
    <maintainer>Various &lt;support@instaclustr.com&gt;</maintainer>
    <maven.javadoc.plugin.version>3.1.1</maven.javadoc.plugin.version>
    <maven.gpg.plugin.version>1.6</maven.gpg.plugin.version>
    <maven.compiler.target>1.8</maven.compiler.target>
    <maven.shade.plugin.version>3.1.1</maven.shade.plugin.version>
    <maven.compiler.plugin.version>3.8.1</maven.compiler.plugin.version>
    <maven.git.command.plugin.version>2.2.4</maven.git.command.plugin.version>
    <outputDirectory>${project.build.directory}</outputDirectory>
    <maven.jar.plugin.version>3.1.1</maven.jar.plugin.version>
    <version.maven.release.plugin>2.5.3</version.maven.release.plugin>
  </properties>
</project>
