<?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/xsd/maven-4.0.0.xsd">

  <modelVersion>4.0.0</modelVersion>

  <groupId>com.colleczion</groupId>
  <artifactId>colleczion-security</artifactId>
  <packaging>jar</packaging>
  <version>0.1</version>

  <name>Colleczion Security</name>
  <description>Security for Colleczion</description>

  <inceptionYear>2015</inceptionYear>

  <url>https://bitbucket.org/ykryshchuk/colleczion-security</url>

  <scm>
    <connection>scm:git:git@bitbucket.org:ykryshchuk/colleczion-security.git</connection>
    <developerConnection>scm:git:git@bitbucket.org:ykryshchuk/colleczion-security.git</developerConnection>
    <url>git@bitbucket.org:ykryshchuk/colleczion-security.git</url>
    <tag>colleczion-security-0.1</tag>
  </scm>

  <organization>
    <name>CollecZion</name>
    <url>https://colleczion.com/</url>
  </organization>

  <licenses>

    <license>
      <name>GNU GENERAL PUBLIC LICENSE</name>
      <url>http://www.gnu.org/licenses/gpl.html</url>
      <distribution>repo</distribution>
    </license>

  </licenses>

  <developers>

    <developer>
      <id>ykryshchuk</id>
      <email>yuriy.kryshchuk@gmail.com</email>
      <name>Yuriy Kryshchuk</name>
      <timezone>2</timezone>
      <organization>CollecZion</organization>
      <roles>
        <role>Developer</role>
      </roles>
    </developer>

  </developers>

  <build>

    <pluginManagement>

      <plugins>

        <plugin>
          <artifactId>maven-compiler-plugin</artifactId>
          <version>3.3</version>
          <configuration>
            <source>1.8</source>
            <target>1.8</target>
          </configuration>
        </plugin>

        <plugin>
          <artifactId>maven-surefire-plugin</artifactId>
          <version>2.19</version>
        </plugin>

        <plugin>
          <artifactId>maven-release-plugin</artifactId>
          <version>2.5.3</version>
        </plugin>

        <plugin>
          <groupId>com.kryshchuk.maven.plugins</groupId>
          <artifactId>umlet-maven-plugin</artifactId>
          <version>1.2</version>
        </plugin>

      </plugins>

    </pluginManagement>

    <plugins>

      <plugin>
        <groupId>com.kryshchuk.maven.plugins</groupId>
        <artifactId>umlet-maven-plugin</artifactId>
        <executions>
          <execution>
            <id>convert-uml</id>
            <goals>
              <goal>convert</goal>
            </goals>
          </execution>
        </executions>
      </plugin>

    </plugins>

  </build>

  <dependencyManagement>

    <dependencies>

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

      <dependency>
        <groupId>org.mongodb</groupId>
        <artifactId>mongodb-driver</artifactId>
        <version>3.1.1</version>
      </dependency>

      <dependency>
        <groupId>org.testng</groupId>
        <artifactId>testng</artifactId>
        <version>6.9.9</version>
      </dependency>

      <dependency>
        <groupId>org.mockito</groupId>
        <artifactId>mockito-core</artifactId>
        <version>2.0.31-beta</version>
      </dependency>

    </dependencies>

  </dependencyManagement>

  <dependencies>

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

    <dependency>
      <groupId>org.mongodb</groupId>
      <artifactId>mongodb-driver</artifactId>
    </dependency>

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

    <dependency>
      <groupId>org.mockito</groupId>
      <artifactId>mockito-core</artifactId>
      <scope>test</scope>
    </dependency>

  </dependencies>

  <profiles>

    <profile>
      <id>Cobertura</id>
      <build>
        <pluginManagement>
          <plugins>
            <plugin>
              <groupId>org.codehaus.mojo</groupId>
              <artifactId>cobertura-maven-plugin</artifactId>
              <version>2.7</version>
              <configuration>
                <aggregate>true</aggregate>
              </configuration>
              <dependencies>
                <dependency>
                  <groupId>org.ow2.asm</groupId>
                  <artifactId>asm</artifactId>
                  <version>5.0.4</version>
                </dependency>
              </dependencies>
            </plugin>
          </plugins>
        </pluginManagement>
        <plugins>
          <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>cobertura-maven-plugin</artifactId>
          </plugin>
        </plugins>
      </build>
    </profile>

    <profile>
      <id>Shippable</id>
      <build>
        <pluginManagement>
          <plugins>
            <plugin>
              <artifactId>maven-resources-plugin</artifactId>
              <executions>
                <execution>
                  <id>copy-test-results-for-shippable</id>
                  <phase>prepare-package</phase>
                  <goals>
                    <goal>copy-resources</goal>
                  </goals>
                  <configuration>
                    <outputDirectory>${project.basedir}/shippable/testresults</outputDirectory>
                    <resources>
                      <resource>
                        <directory>${project.build.directory}/surefire-reports/junitreports</directory>
                        <filtering>false</filtering>
                      </resource>
                    </resources>
                  </configuration>
                </execution>
              </executions>
            </plugin>
            <plugin>
              <groupId>org.codehaus.mojo</groupId>
              <artifactId>cobertura-maven-plugin</artifactId>
              <configuration>
                <format>xml</format>
                <outputDirectory>${project.basedir}/shippable/codecoverage</outputDirectory>
              </configuration>
            </plugin>
          </plugins>
        </pluginManagement>
        <plugins>
        </plugins>
      </build>
    </profile>

    <profile>
      <id>Eclipse</id>
      <build>
        <plugins>
        </plugins>
      </build>
    </profile>

    <profile>
      <id>GPG</id>
      <build>
        <pluginManagement>
          <plugins>
            <plugin>
              <artifactId>maven-gpg-plugin</artifactId>
              <version>1.6</version>
            </plugin>
          </plugins>
        </pluginManagement>
        <plugins>
          <plugin>
            <artifactId>maven-release-plugin</artifactId>
            <configuration>
              <arguments>-Dgpg.passphrase=${gpg.passphrase}</arguments>
            </configuration>
          </plugin>
          <plugin>
            <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>

    <profile>
      <id>Distribution-Sonatype</id>
      <distributionManagement>
        <snapshotRepository>
          <id>sonatype-nexus-snapshots</id>
          <name>Sonatype Nexus Snapshots</name>
          <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
        </snapshotRepository>
        <repository>
          <id>sonatype-nexus-staging-deploy</id>
          <name>Sonatype Nexus Staging Deploy</name>
          <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
        </repository>
      </distributionManagement>
    </profile>

    <profile>
      <id>FixSource</id>
      <build>
        <pluginManagement>
          <plugins>
            <plugin>
              <groupId>com.kryshchuk.maven.plugins</groupId>
              <artifactId>fixsource-maven-plugin</artifactId>
              <version>1.1.6</version>
            </plugin>
          </plugins>
        </pluginManagement>
        <plugins>
          <plugin>
            <groupId>com.kryshchuk.maven.plugins</groupId>
            <artifactId>fixsource-maven-plugin</artifactId>
            <configuration>
              <header><![CDATA[
              ${project.name}
              Copyright (C) 2015  Yuriy Kryshchuk

              This program is free software: you can redistribute it and/or modify
              it under the terms of the GNU General Public License as published by
              the Free Software Foundation, either version 3 of the License, or
              (at your option) any later version.

              This program is distributed in the hope that it will be useful,
              but WITHOUT ANY WARRANTY; without even the implied warranty of
              MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
              GNU General Public License for more details.

              You should have received a copy of the GNU General Public License
              along with this program.  If not, see <http://www.gnu.org/licenses />.
              ]]></header>
            </configuration>
            <executions>
              <execution>
                <id>fix-java-sources</id>
                <phase>process-sources</phase>
                <goals>
                  <goal>fix-java</goal>
                </goals>
              </execution>
              <execution>
                <id>fix-test-java-sources</id>
                <phase>process-test-sources</phase>
                <goals>
                  <goal>fix-test-java</goal>
                </goals>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
    </profile>

  </profiles>

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

</project>
