<?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>7</version>
    <relativePath>../../pom.xml/pom.xml</relativePath>
  </parent>
  <modelVersion>4.0.0</modelVersion>
  <groupId>by.stub</groupId>
  <artifactId>stubby4j</artifactId>
  <name>stubby4j</name>
  <version>1.0.21</version>
  <description>HTTP stub server written in Java with embedded Jetty</description>
  <url>https://github.com/azagniotov/stubby4j</url>
  <issueManagement>
    <system>GitHub</system>
    <url>https://github.com/azagniotov/stubby4j/issues/</url>
  </issueManagement>
  <inceptionYear>2012</inceptionYear>
  <developers>
    <developer>
      <id>azagniotov</id>
      <name>Alexander Zagniotov</name>
      <email>AZagniotov@gmail.com</email>
      <organization>ThoughtWorks</organization>
      <organizationUrl>http://www.ThoughtWorks.com</organizationUrl>
      <roles>
        <role>author</role>
      </roles>
    </developer>
    <developer>
      <id>igoksu</id>
      <name>Isa Goksu</name>
      <email>isa.goksu@gmail.com</email>
      <organization>ThoughtWorks</organization>
      <organizationUrl>http://www.ThoughtWorks.com</organizationUrl>
      <roles>
        <role>contributor</role>
      </roles>
    </developer>
    <developer>
      <id>afmrak</id>
      <name>Eric Mrak</name>
      <email>enmrak@gmail.com</email>
      <organization>ThoughtWorks</organization>
      <organizationUrl>http://www.ThoughtWorks.com</organizationUrl>
      <roles>
        <role>contributor</role>
      </roles>
    </developer>
  </developers>
  <licenses>
    <license>
      <name>The Apache Software License, Version 2.0</name>
      <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
      <distribution>repo</distribution>
      <comments>A business-friendly OSS license</comments>
    </license>
  </licenses>
  <scm>
    <connection>scm:git:git@github.com:azagniotov/stubby4j.git</connection>
    <developerConnection>scm:git:git@github.com:azagniotov/stubby4j.git</developerConnection>
    <tag>stubby4j-1.0.21</tag>
    <url>git@github.com:azagniotov/stubby4j.git</url>
  </scm>
  <organization>
    <name>ThoughtWorks</name>
    <url>http://www.thoughtworks.com/</url>
  </organization>
  <build>
    <finalName>${project.artifactId}-${project.version}</finalName>
    <plugins>
      <plugin>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>2.5.1</version>
        <configuration>
          <source>${compileSource}</source>
          <target>${compileSource}</target>
          <compilerArgument>-Xlint:all</compilerArgument>
          <showWarnings>true</showWarnings>
          <showDeprecation>true</showDeprecation>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-jar-plugin</artifactId>
        <version>2.4</version>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>jar</goal>
            </goals>
            <configuration>
              <classifier>no-dependencies</classifier>
            </configuration>
          </execution>
        </executions>
        <configuration>
          <archive>
            <compress>${manifest.compress}</compress>
            <manifest>
              <addDefaultImplementationEntries>${manifest.addDefaultImplementationEntries}</addDefaultImplementationEntries>
              <addClasspath>${manifest.addClasspath}</addClasspath>
              <mainClass>${manifest.mainClass}</mainClass>
              <packageName>${manifest.packageName}</packageName>
            </manifest>
            <manifestEntries>
              <Built-By>${manifest.builtBy}</Built-By>
              <Implementation-Version>${project.version}</Implementation-Version>
            </manifestEntries>
          </archive>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-source-plugin</artifactId>
        <version>2.2.1</version>
        <executions>
          <execution>
            <id>generate-sources-jar</id>
            <phase>package</phase>
            <goals>
              <goal>jar</goal>
            </goals>
            <configuration>
              <useDefaultManifestFile>false</useDefaultManifestFile>
              <archive>
                <compress>${manifest.compress}</compress>
                <manifest>
                  <addDefaultImplementationEntries>${manifest.addDefaultImplementationEntries}</addDefaultImplementationEntries>
                  <addClasspath>${manifest.addClasspath}</addClasspath>
                  <mainClass>${manifest.mainClass}</mainClass>
                  <packageName>${manifest.packageName}</packageName>
                </manifest>
                <manifestEntries>
                  <Built-By>${manifest.builtBy}</Built-By>
                  <Implementation-Version>${project.version}</Implementation-Version>
                </manifestEntries>
              </archive>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-javadoc-plugin</artifactId>
        <version>2.9</version>
        <executions>
          <execution>
            <id>generate-javadocs-jar</id>
            <phase>package</phase>
            <goals>
              <goal>jar</goal>
            </goals>
            <configuration>
              <quiet>true</quiet>
              <javadocVersion>${compileSource}</javadocVersion>
              <archive>
                <compress>${manifest.compress}</compress>
                <manifest>
                  <addDefaultImplementationEntries>${manifest.addDefaultImplementationEntries}</addDefaultImplementationEntries>
                  <addClasspath>${manifest.addClasspath}</addClasspath>
                  <mainClass>${manifest.mainClass}</mainClass>
                  <packageName>${manifest.packageName}</packageName>
                </manifest>
                <manifestEntries>
                  <Built-By>${manifest.builtBy}</Built-By>
                  <Implementation-Version>${project.version}</Implementation-Version>
                </manifestEntries>
              </archive>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-shade-plugin</artifactId>
        <version>1.7</version>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>shade</goal>
            </goals>
            <configuration>
              <filters>
                <filter>
                  <artifact>org.eclipse.jetty.orbit:javax.servlet</artifact>
                  <excludes>
                    <exclude>META-INF/ECLIPSE.SF</exclude>
                    <exclude>META-INF/ECLIPSE.RSA</exclude>
                    <exclude>META-INF/ECLIPSEF.SF</exclude>
                    <exclude>META-INF/ECLIPSEF.RSA</exclude>
                    <exclude>META-INF/ECLIPSE.INF</exclude>
                    <exclude>META-INF/eclipse.inf</exclude>
                  </excludes>
                </filter>
              </filters>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-surefire-plugin</artifactId>
        <version>2.12.4</version>
        <executions>
          <execution>
            <id>unit-tests</id>
            <phase>test</phase>
            <goals>
              <goal>test</goal>
            </goals>
            <configuration>
              <skip>false</skip>
              <includes>
                <include>**/*Test.java</include>
              </includes>
            </configuration>
          </execution>
        </executions>
        <configuration>
          <skip>true</skip>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-failsafe-plugin</artifactId>
        <version>2.12.2</version>
        <executions>
          <execution>
            <id>integration</id>
            <phase>test</phase>
            <goals>
              <goal>integration-test</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-site-plugin</artifactId>
        <version>3.0</version>
        <configuration>
          <reportPlugins>
            <plugin>
              <groupId>org.apache.maven.plugins</groupId>
              <artifactId>maven-jxr-plugin</artifactId>
              <version>2.3</version>
            </plugin>
            <plugin>
              <groupId>org.codehaus.mojo</groupId>
              <artifactId>findbugs-maven-plugin</artifactId>
              <version>2.5.2</version>
              <configuration>
                <effort>Max</effort>
                <threshold>Exp</threshold>
              </configuration>
            </plugin>
            <plugin>
              <groupId>org.apache.maven.plugins</groupId>
              <artifactId>maven-pmd-plugin</artifactId>
              <version>2.7.1</version>
              <configuration>
                <targetJdk>${compileSource}</targetJdk>
              </configuration>
            </plugin>
            <plugin>
              <groupId>org.apache.maven.plugins</groupId>
              <artifactId>maven-checkstyle-plugin</artifactId>
              <version>2.9.1</version>
              <configuration>
                <suppressionsLocation>${project.basedir}/checkstyleSupressions.xml</suppressionsLocation>
              </configuration>
            </plugin>
            <plugin>
              <groupId>org.apache.maven.plugins</groupId>
              <artifactId>maven-javadoc-plugin</artifactId>
              <version>2.8</version>
              <configuration>
                <quiet>true</quiet>
              </configuration>
            </plugin>
          </reportPlugins>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-release-plugin</artifactId>
        <version>2.3.2</version>
        <configuration>
          <arguments>-Dgpg.passphrase=${gpg.passphrase}</arguments>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-antrun-plugin</artifactId>
        <version>1.7</version>
        <executions>
          <execution>
            <id>default-cli</id>
            <phase>deploy</phase>
            <goals>
              <goal>run</goal>
            </goals>
            <configuration>
              <target>
                <delete>
                  <fileset />
                </delete>
                <copy>
                  <fileset>
                    <include />
                  </fileset>
                </copy>
              </target>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
  <profiles>
    <profile>
      <id>sign</id>
      <build>
        <plugins>
          <plugin>
            <artifactId>maven-gpg-plugin</artifactId>
            <version>1.4</version>
            <executions>
              <execution>
                <id>sign-artifacts</id>
                <phase>verify</phase>
                <goals>
                  <goal>sign</goal>
                </goals>
                <configuration>
                  <passphrase>&gt;JB^%-VB^dj8B%RV*dfe_.</passphrase>
                </configuration>
              </execution>
            </executions>
            <configuration>
              <passphrase>&gt;JB^%-VB^dj8B%RV*dfe_.</passphrase>
            </configuration>
          </plugin>
          <plugin>
            <groupId>org.sonatype.plugins</groupId>
            <artifactId>nexus-maven-plugin</artifactId>
            <version>1.7</version>
            <configuration>
              <nexusUrl>https://oss.sonatype.org/</nexusUrl>
              <serverAuthId>oss-sonatype-org</serverAuthId>
              <targetRepositoryId>releases</targetRepositoryId>
            </configuration>
          </plugin>
        </plugins>
      </build>
    </profile>
  </profiles>
  <dependencies>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>4.8.2</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.mockito</groupId>
      <artifactId>mockito-all</artifactId>
      <version>1.9.0</version>
      <scope>test</scope>
    </dependency>
  </dependencies>
  <properties>
    <siteProjectVersion>${project.version}</siteProjectVersion>
    <manifest.compress>true</manifest.compress>
    <jetty.version>8.1.7.v20120910</jetty.version>
    <manifest.mainClass>${project.groupId}.Main</manifest.mainClass>
    <compileSource>1.6</compileSource>
    <manifest.packageName>${project.groupId}</manifest.packageName>
    <manifest.builtBy>Alexander Zagniotov</manifest.builtBy>
    <project.reporting.outputEncoding>${project.build.sourceEncoding}</project.reporting.outputEncoding>
    <manifest.addClasspath>true</manifest.addClasspath>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <manifest.addDefaultImplementationEntries>true</manifest.addDefaultImplementationEntries>
  </properties>
</project>

