<?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">
  <parent>
    <artifactId>oss-parent</artifactId>
    <groupId>org.sonatype.oss</groupId>
    <version>9</version>
    <relativePath>../pom.xml/pom.xml</relativePath>
  </parent>
  <modelVersion>4.0.0</modelVersion>
  <groupId>com.logimethods</groupId>
  <artifactId>nats-connector-spark</artifactId>
  <name>nats-connector-spark</name>
  <version>0.4.0</version>
  <description>Spark Plugin for NATS Connector</description>
  <url>https://github.com/Logimethods/nats-connector-spark</url>
  <issueManagement>
    <system>GitHub Issues</system>
    <url>https://github.com/Logimethods/nats-connector-spark/issues/</url>
  </issueManagement>
  <inceptionYear>2018</inceptionYear>
  <developers>
    <developer>
      <id>laugimethods</id>
      <name>Laurent Magnin</name>
      <email>laurent.magnin@logimethods.com</email>
      <url>https://github.com/laugimethods</url>
      <organization>Logimethods</organization>
      <organizationUrl>http://www.logimethods.com/</organizationUrl>
      <roles>
        <role>Senior Consultant</role>
      </roles>
      <timezone>America/Montreal</timezone>
    </developer>
    <developer>
      <id>igor-fomenko</id>
      <name>Igor Fomenko</name>
      <email>igor.fomenko@logimethods.com</email>
      <url>https://github.com/igor-fomenko</url>
      <organization>Logimethods</organization>
      <organizationUrl>http://www.logimethods.com/</organizationUrl>
      <roles>
        <role>Senior Consultant</role>
      </roles>
      <timezone>America/Toronto</timezone>
    </developer>
  </developers>
  <licenses>
    <license>
      <name>MIT License</name>
      <url>http://www.opensource.org/licenses/mit-license.php</url>
      <distribution>repo</distribution>
    </license>
  </licenses>
  <scm>
    <connection>scm:git:git://github.com/Logimethods/nats-connector-spark.git</connection>
    <developerConnection>scm:git:git@github.com:Logimethods/nats-connector-spark.git</developerConnection>
    <url>https://github.com/Logimethods/nats-connector-spark</url>
  </scm>
  <organization>
    <name>Logimethods</name>
    <url>http://www.logimethods.com/</url>
  </organization>
  <build>
    <resources>
      <resource>
        <filtering>true</filtering>
        <directory>src/main/resources</directory>
      </resource>
    </resources>
    <pluginManagement>
      <plugins>
        <plugin>
          <artifactId>maven-release-plugin</artifactId>
          <version>2.5.3</version>
          <configuration>
            <useReleaseProfile>true</useReleaseProfile>
            <releaseProfiles>release</releaseProfiles>
            <allowTimestampedSnapshots>true</allowTimestampedSnapshots>
            <autoVersionSubmodules>true</autoVersionSubmodules>
            <localCheckout>true</localCheckout>
            <pushChanges>false</pushChanges>
            <goals>deploy</goals>
          </configuration>
        </plugin>
      </plugins>
    </pluginManagement>
    <plugins>
      <plugin>
        <groupId>org.sonatype.plugins</groupId>
        <artifactId>nexus-staging-maven-plugin</artifactId>
        <version>1.6.3</version>
        <extensions>true</extensions>
        <configuration>
          <serverId>sonatype-nexus-staging</serverId>
          <nexusUrl>https://oss.sonatype.org/</nexusUrl>
          <autoReleaseAfterClose>true</autoReleaseAfterClose>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-gpg-plugin</artifactId>
        <version>1.6</version>
        <executions>
          <execution>
            <id>sign-artifacts</id>
            <phase>verify</phase>
            <goals>
              <goal>sign</goal>
            </goals>
            <configuration>
              <passphrase>${SONATYPE_PASSPHRASE}</passphrase>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-surefire-plugin</artifactId>
        <version>2.19</version>
      </plugin>
      <plugin>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>3.3</version>
        <configuration>
          <source>${java.version}</source>
          <target>${java.version}</target>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-source-plugin</artifactId>
        <version>2.4</version>
        <executions>
          <execution>
            <id>attach-sources</id>
            <goals>
              <goal>jar</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-javadoc-plugin</artifactId>
        <version>3.0.0</version>
        <executions>
          <execution>
            <id>attach-javadocs</id>
            <goals>
              <goal>jar</goal>
              <goal>aggregate</goal>
            </goals>
            <configuration>
              <failOnError>false</failOnError>
              <show>public</show>
              <nohelp>true</nohelp>
              <header>nats-connector-spark ${project.version}</header>
              <footer>nats-connector-spark ${project.version}</footer>
              <doctitle>nats-connector-spark ${project.version}</doctitle>
              <outputDirectory>target/apidocs/docs/${project.version}/api</outputDirectory>
              <additionalparam>-Xdoclint:none</additionalparam>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-scm-publish-plugin</artifactId>
        <version>1.1</version>
        <configuration>
          <serverId>github</serverId>
          <checkoutDirectory>${project.build.directory}/scmpublish</checkoutDirectory>
          <checkinComment>Publishing javadoc for
						${project.artifactId}:${project.version}</checkinComment>
          <content>target/apidocs</content>
          <pubScmUrl>scm:git:git@github.com:Logimethods/nats-connector-spark.git</pubScmUrl>
          <scmBranch>gh-pages</scmBranch>
          <ignorePathsToDelete>
            <ignorePathToDelete>?.?.?</ignorePathToDelete>
          </ignorePathsToDelete>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-shade-plugin</artifactId>
        <version>2.4.3</version>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>shade</goal>
            </goals>
            <configuration>
              <relocations>
                <relocation>
                  <pattern>com.google.protobuf</pattern>
                  <shadedPattern>shaded.nats.com.google.protobuf</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org.slf4j</pattern>
                  <shadedPattern>shaded.org.slf4j</shadedPattern>
                </relocation>
              </relocations>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
  <dependencies>
    <dependency>
      <groupId>org.apache.spark</groupId>
      <artifactId>spark-streaming_2.11</artifactId>
      <version>2.2.1</version>
      <scope>provided</scope>
      <exclusions>
        <exclusion>
          <artifactId>spark-core_2.11</artifactId>
          <groupId>org.apache.spark</groupId>
        </exclusion>
        <exclusion>
          <artifactId>spark-tags_2.11</artifactId>
          <groupId>org.apache.spark</groupId>
        </exclusion>
        <exclusion>
          <artifactId>scala-library</artifactId>
          <groupId>org.scala-lang</groupId>
        </exclusion>
        <exclusion>
          <artifactId>unused</artifactId>
          <groupId>org.spark-project.spark</groupId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>4.11</version>
      <scope>test</scope>
      <exclusions>
        <exclusion>
          <artifactId>hamcrest-core</artifactId>
          <groupId>org.hamcrest</groupId>
        </exclusion>
      </exclusions>
    </dependency>
  </dependencies>
  <properties>
    <java-nats-streaming.version>0.5.0</java-nats-streaming.version>
    <java.version>1.8</java.version>
    <github.global.server>github</github.global.server>
    <dependency.locations.enabled>false</dependency.locations.enabled>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <spark.version>2.2.1</spark.version>
    <project.reporting.sourceEncoding>UTF-8</project.reporting.sourceEncoding>
    <junit-version>4.11</junit-version>
  </properties>
</project>

