<?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>com.github.raychatter</groupId>
  <artifactId>spring-restful-exception-handler</artifactId>
  <name>spring-restful-exception-handler</name>
  <version>1.0.2</version>
  <description>Custom exception handler annotation for Spring to unify the error handling.</description>
  <url>https://github.com/raychatter/spring-restful-exception-handler</url>
  <issueManagement>
    <system>GitHub</system>
    <url>https://github.com/raychatter/spring-restful-exception-handler/issues/</url>
  </issueManagement>
  <inceptionYear>2012</inceptionYear>
  <developers>
    <developer>
      <id>raychatter</id>
      <name>Rachel Walker</name>
      <email>rachel.e.walker@gmail.com</email>
      <organization>ThoughtWorks</organization>
      <organizationUrl>http://www.ThoughtWorks.com</organizationUrl>
      <roles>
        <role>author</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:raychatter/spring-restful-exception-handler.git</connection>
    <developerConnection>scm:git:git@github.com:raychatter/spring-restful-exception-handler.git</developerConnection>
    <tag>spring-restful-exception-handler-1.0.2</tag>
    <url>git@github.com:raychatter/spring-restful-exception-handler.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-release-plugin</artifactId>
        <version>2.3.2</version>
        <configuration>
          <arguments>-Dgpg.passphrase=${gpg.passphrase}</arguments>
        </configuration>
      </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>
              </execution>
            </executions>
          </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>
            </configuration>
          </plugin>
        </plugins>
      </build>
    </profile>
  </profiles>
  <dependencies>
    <dependency>
      <groupId>javax.servlet</groupId>
      <artifactId>servlet-api</artifactId>
      <version>2.5</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>4.10</version>
      <scope>test</scope>
      <exclusions>
        <exclusion>
          <artifactId>hamcrest-core</artifactId>
          <groupId>org.hamcrest</groupId>
        </exclusion>
      </exclusions>
    </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>
    <manifest.mainClass>${project.groupId}.Main</manifest.mainClass>
    <compileSource>1.6</compileSource>
    <manifest.packageName>${project.groupId}</manifest.packageName>
    <manifest.builtBy>Rachel Walker</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>

