<?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>
  <parent>
    <groupId>org.sonatype.oss</groupId>
    <artifactId>oss-parent</artifactId>
    <version>7</version>
    <relativePath />
  </parent>
  <groupId>org.zanata</groupId>
  <artifactId>zanata-parent</artifactId>
  <version>21</version>
  <name>Zanata Parent POM</name>
  <description>Parent pom for Zanata modules</description>
  <url>http://zanata.org/</url>
  <packaging>pom</packaging>

  <!--
    Maven likes to add the artifactIds to these URLs (thus breaking
    them), so we have to specify these URLs again in each POM.
   -->
  <scm>
    <connection>scm:git:git://github.com/zanata/zanata-parent.git</connection>
    <developerConnection>scm:git:git@github.com:zanata/zanata-parent.git</developerConnection>
    <url>https://github.com/zanata/zanata-parent</url>
    <tag>zanata-parent-21</tag>
  </scm>

  <licenses>
    <license>
      <name>GNU Lesser General Public License v2.1</name>
      <url>http://www.gnu.org/licenses/lgpl-2.1.html</url>
      <distribution>repo</distribution>
    </license>
  </licenses>

  <issueManagement>
    <system>Bugzilla</system>
    <url>https://bugzilla.redhat.com/buglist.cgi?product=Zanata&amp;bug_status=__open__</url>
  </issueManagement>

  <ciManagement>
    <system>jenkins</system>
    <notifiers>
      <notifier>
        <type>mail</type>
      </notifier>
    </notifiers>
  </ciManagement>

  <mailingLists>
    <mailingList>
      <name>zanata-users</name>
      <post>zanata-users@redhat.com</post>
      <subscribe>https://www.redhat.com/mailman/listinfo/zanata-users/</subscribe>
      <unsubscribe>zanata-users-request@redhat.com?subject=unsubscribe</unsubscribe>
      <archive>https://www.redhat.com/archives/zanata-users/</archive>
    </mailingList>

    <mailingList>
      <name>zanata-devel</name>
      <post>zanata-devel@redhat.com</post>
      <subscribe>https://www.redhat.com/mailman/listinfo/zanata-devel/</subscribe>
      <unsubscribe>zanata-devel-request@redhat.com?subject=unsubscribe</unsubscribe>
      <archive>https://www.redhat.com/archives/zanata-devel/</archive>
    </mailingList>

    <mailingList>
      <name>zanata-bugs</name>
      <!-- users can't post messages: <post>zanata-bugs@redhat.com</post> -->
      <subscribe>https://www.redhat.com/mailman/listinfo/zanata-bugs/</subscribe>
      <unsubscribe>zanata-bugs-request@redhat.com?subject=unsubscribe</unsubscribe>
      <archive>https://www.redhat.com/archives/zanata-bugs/</archive>
    </mailingList>

    <mailingList>
      <name>zanata-commits</name>
      <!-- users can't post messages: <post>zanata-commits@redhat.com</post> -->
      <subscribe>https://www.redhat.com/mailman/listinfo/zanata-commits/</subscribe>
      <unsubscribe>zanata-commits-request@redhat.com?subject=unsubscribe</unsubscribe>
      <archive>https://www.redhat.com/archives/zanata-commits/</archive>
    </mailingList>

  </mailingLists>

  <organization>
    <name>Zanata Project</name>
    <url>http://zanata.org/</url>
  </organization>

  <developers>
    <!-- in alphabetical order (by id field) -->
    <developer>
      <id>aeng@redhat.com</id>
      <name>Alex Eng</name>
      <email>aeng@redhat.com</email>
      <organization>Red Hat</organization>
      <organizationUrl>http://www.redhat.com/</organizationUrl>
      <timezone>10</timezone>
    </developer>
    <developer>
      <id>camunoz@redhat.com</id>
      <name>Carlos Munoz</name>
      <email>camunoz@redhat.com</email>
      <organization>Red Hat</organization>
      <organizationUrl>http://www.redhat.com/</organizationUrl>
      <timezone>10</timezone>
    </developer>
    <developer>
      <id>damason@redhat.com</id>
      <name>David Mason</name>
      <email>damason@redhat.com</email>
      <organization>Red Hat</organization>
      <organizationUrl>http://www.redhat.com/</organizationUrl>
      <timezone>10</timezone>
    </developer>
    <developer>
      <id>hding@redhat.com</id>
      <name>Helen Ding</name>
      <email>hding@redhat.com</email>
      <organization>Red Hat</organization>
      <organizationUrl>http://www.redhat.com/</organizationUrl>
      <timezone>10</timezone>
    </developer>
    <developer>
      <id>jni@redhat.com</id>
      <name>James Ni</name>
      <email>jni@redhat.com</email>
      <organization>Red Hat</organization>
      <organizationUrl>http://www.redhat.com/</organizationUrl>
      <timezone>8</timezone>
    </developer>
    <developer>
      <id>pahuang@redhat.com</id>
      <name>Patrick Huang</name>
      <email>pahuang@redhat.com</email>
      <organization>Red Hat</organization>
      <organizationUrl>http://www.redhat.com/</organizationUrl>
      <timezone>10</timezone>
    </developer>
    <developer>
      <id>sflaniga@redhat.com</id>
      <name>Sean Flanigan</name>
      <email>sflaniga@redhat.com</email>
      <organization>Red Hat</organization>
      <organizationUrl>http://www.redhat.com/</organizationUrl>
      <timezone>10</timezone>
    </developer>
  </developers>

  <contributors>
    <!-- in alphabetical order (by email field) -->
    <contributor>
      <name>Ding-Yi Chen</name>
      <email>dchen@redhat.com</email>
      <organization>Red Hat</organization>
      <organizationUrl>http://www.redhat.com/</organizationUrl>
      <roles>
        <role>tester</role>
      </roles>
      <timezone>10</timezone>
    </contributor>
  </contributors>

  <properties>
    <!--
    Version of java used for building. (Specified as major.minor, as used by
    javac -source and -target).
    -->
    <required.java>1.7</required.java>
    <required.maven>3.0.5</required.maven>
    <maven.build.timestamp.format>yyyyMMdd-HHmm</maven.build.timestamp.format>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

    <!-- The profile 'staticAnalysis' enables these -->
    <dupfind.skip>true</dupfind.skip>
    <enforcer.skip>true</enforcer.skip>
    <findbugs.skip>true</findbugs.skip>
    <mdep.analyze.skip>true</mdep.analyze.skip>

    <hamcrest.version>1.3</hamcrest.version>
    <lombok.version>1.12.6</lombok.version>
    <resteasy.version>2.3.7.Final</resteasy.version>
    <findbugs.version>3.0.0</findbugs.version>
    <groovy.version>1.8.9</groovy.version>
    <guava.version>13.0.1</guava.version>
    <jackson.version>1.9.13</jackson.version>
    <powermock.version>1.5.4</powermock.version>
    <surefire.version>2.17</surefire.version>

    <checkstyle.skip>false</checkstyle.skip>
    <!-- When testing checkstyle changes, use -Dcheckstyle.config.location to point to a local file: -->
    <checkstyle.config.location>https://raw.github.com/zanata/zanata-parent/master/checkstyle.xml</checkstyle.config.location>
    <checkstyle.propertiesLocation />
    <checkstyle.suppressions.location>https://raw.github.com/zanata/zanata-parent/master/checkstyle-suppressions.xml</checkstyle.suppressions.location>
    <checkstyle.suppressionsFileExpression />
    <findbugs.excludeFilterFile>https://raw.github.com/zanata/zanata-parent/master/findbugs-filter.xml</findbugs.excludeFilterFile>

    <enunciate.version>1.27</enunciate.version>

    <reports-plugin.dependencyDetailsEnabled>false</reports-plugin.dependencyDetailsEnabled>
    <reports-plugin.dependencyLocationsEnabled>false</reports-plugin.dependencyLocationsEnabled>
    <slf4j.version>1.7.5</slf4j.version>
    <victims.updates>daily</victims.updates>
  </properties>

  <build>
    <plugins>

      <!--
        This plugin sorts and reformats the pom.xml.
        NB: Do not sort dependencies because:
        1. Classpath order matters.
        2. So does the order of bom imports.
        See also https://code.google.com/p/sortpom/wiki/SortDependenciesVarning
        and https://code.google.com/p/sortpom/wiki/SortPluginsVarning
      -->
      <plugin>
        <groupId>com.google.code.sortpom</groupId>
        <artifactId>maven-sortpom-plugin</artifactId>
        <version>2.2.1</version>
        <configuration>
          <encoding>${project.build.sourceEncoding}</encoding>
          <keepBlankLines>true</keepBlankLines>
          <nrOfIndentSpace>2</nrOfIndentSpace>
          <predefinedSortOrder>custom_1</predefinedSortOrder>
          <sortProperties>true</sortProperties>
        </configuration>
        <!--
                <executions>
                  <execution>
                    <goals>
                      <goal>sort</goal>
                    </goals>
                    <phase>verify</phase>
                  </execution>
                </executions>
        -->
      </plugin>

      <!-- Allow whitespace checking with "mvn checkstyle:check" -->
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-checkstyle-plugin</artifactId>
        <version>2.13</version>
        <configuration>
          <configLocation>${checkstyle.config.location}</configLocation>
          <!-- report violations to stdout (not console!) -->
          <consoleOutput>true</consoleOutput>
          <includes>*.xml,*.txt,*.md,etc/**,src/**</includes>
          <excludes>src/test/resources/**</excludes>
          <sourceDirectory>${project.basedir}</sourceDirectory>
        </configuration>
        <!--
                <executions>
                  <execution>
                    <goals>
                      <goal>check</goal>
                    </goals>
                    <phase>verify</phase>
                  </execution>
                </executions>
        -->
        <dependencies>
          <dependency>
            <groupId>com.puppycrawl.tools</groupId>
            <artifactId>checkstyle</artifactId>
            <version>5.9</version>
          </dependency>
        </dependencies>
      </plugin>

      <plugin>
        <artifactId>maven-compiler-plugin</artifactId>
        <configuration>
          <encoding>UTF-8</encoding>
          <source>${required.java}</source>
          <target>${required.java}</target>
          <showDeprecation>true</showDeprecation>
          <showWarnings>true</showWarnings>
          <optimize>true</optimize>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-eclipse-plugin</artifactId>
        <configuration>
          <downloadSources>true</downloadSources>
          <downloadJavadocs>false</downloadJavadocs>
          <buildOutputDirectory>bin</buildOutputDirectory>
          <skip>true</skip>
        </configuration>
      </plugin>

      <plugin>
        <artifactId>maven-dependency-plugin</artifactId>
        <executions>
          <!--
            Check for misused dependencies during the build
            http://maven.apache.org/plugins/maven-dependency-plugin/examples/failing-the-build-on-dependency-analysis-warnings.html
          -->
          <execution>
            <id>analyze</id>
            <goals>
              <goal>analyze-only</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <failOnWarning>false</failOnWarning>
          <outputXML>true</outputXML>
          <usedDependencies combine.children="append">
            <!-- runtime-only dependencies which maven-dependency-analyzer misses  -->
            <usedDependency>org.slf4j:slf4j-log4j12</usedDependency>
            <usedDependency>org.slf4j:jcl-over-slf4j</usedDependency>
          </usedDependencies>
        </configuration>
      </plugin>

      <!-- https://github.com/ning/maven-duplicate-finder-plugin -->
      <plugin>
        <groupId>com.ning.maven.plugins</groupId>
        <artifactId>maven-duplicate-finder-plugin</artifactId>
        <version>1.0.7</version>
        <configuration>
          <failBuildInCaseOfDifferentContentConflict>true</failBuildInCaseOfDifferentContentConflict>
          <!--<printEqualFiles>true</printEqualFiles>-->
          <skip>${dupfind.skip}</skip>
          <exceptions>
            <!-- TODO remove this when Fedora 20 is retired -->
            <exception>
              <conflictingDependencies>
                <dependency>
                  <groupId>commons-beanutils</groupId>
                  <artifactId>commons-beanutils</artifactId>
                  <version>1.8.3</version>
                </dependency>
                <dependency>
                  <groupId>commons-collections</groupId>
                  <artifactId>commons-collections</artifactId>
                </dependency>
              </conflictingDependencies>
              <classes>
                <class>org.apache.commons.collections.ArrayStack</class>
                <class>org.apache.commons.collections.Buffer</class>
                <class>org.apache.commons.collections.BufferUnderflowException</class>
                <class>org.apache.commons.collections.FastHashMap</class>
              </classes>
            </exception>
          </exceptions>
        </configuration>
        <executions>
          <execution>
            <phase>verify</phase>
            <goals>
              <goal>check</goal>
            </goals>
          </execution>
        </executions>
      </plugin>

      <plugin>
        <artifactId>maven-enforcer-plugin</artifactId>
        <version>1.3.1</version>
        <configuration>
          <rules>
            <bannedDependencies>
              <excludes combine.children="append">
                <!-- use junit:junit v11+ -->
                <exclude>junit:junit-dep</exclude>
                <exclude>xml-apis:xml-apis</exclude>
                <exclude>xerces:xmlParserAPIs</exclude>

                <!-- use com.google.code.findbugs:annotations -->
                <exclude>net.jcip:jcip-annotations</exclude>
                <exclude>com.google.code.findbugs:jsr305</exclude>

                <!-- use org.jboss.spec.javax.servlet -->
                <exclude>javax.servlet:servlet-api</exclude>
                <exclude>javax.servlet:javax.servlet-api</exclude>

                <!-- use org.jboss.spec.javax.annotation -->
                <exclude>javax.annotation:jsr250-api</exclude>

                <exclude>net.sf.okapi.logbind:build-log4j</exclude>
                <!-- use org.javassist:javassist  -->
                <exclude>javassist:javassist</exclude>
                <!-- use org.apache.httpcomponents -->
                <exclude>commons-httpclient:commons-httpclient</exclude>
                <!-- use commons-beanutils:commons-beanutils -->
                <exclude>commons-beanutils:commons-beanutils-core</exclude>
                <!-- use org.slf4j:jcl-over-slf4j -->
                <exclude>commons-logging:commons-logging</exclude>
                <!-- use org.mockito:mockito-core -->
                <exclude>org.mockito:mockito-all</exclude>
                <exclude>org.slf4j:slf4j-jcl</exclude>

                <!-- use resteasy-jaxrs instead of these: -->
                <!-- client could use jersey -->
                <exclude>javax.ws.rs:jsr311-api</exclude>

                <!-- use org.opensymphony.quartz:quartz -->
                <exclude>quartz:quartz</exclude>
              </excludes>
              <searchTransitive>true</searchTransitive>
            </bannedDependencies>
            <!--
              Ensure that dependencies are compatible with our chosen
              version of Java. See
              http://mojo.codehaus.org/extra-enforcer-rules/enforceBytecodeVersion.html
            -->
            <enforceBytecodeVersion>
              <maxJdkVersion>${required.java}</maxJdkVersion>
            </enforceBytecodeVersion>
            <!--
              Ensure that Maven is using our chosen version of the JDK. See
              http://maven.apache.org/enforcer/enforcer-rules/requireJavaVersion.html
            -->
            <requireJavaVersion>
              <version>${required.java}</version>
            </requireJavaVersion>
            <requireMavenVersion>
              <version>${required.maven}</version>
            </requireMavenVersion>
            <requireNoRepositories>
              <message xml:space="preserve">Repositories in pom.xml are not allowed by Maven Central</message>
              <banRepositories>true</banRepositories>
              <banPluginRepositories>true</banPluginRepositories>
              <allowedRepositories combine.children="append">
                <allowedRepository>sonatype-nexus-snapshots</allowedRepository>
              </allowedRepositories>
            </requireNoRepositories>
            <requireUpperBoundDeps />
          </rules>
        </configuration>
        <dependencies>
          <dependency>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>extra-enforcer-rules</artifactId>
            <version>1.0-beta-3</version>
          </dependency>
        </dependencies>
      </plugin>

      <plugin>
        <artifactId>maven-surefire-plugin</artifactId>
        <configuration>
          <useFile>false</useFile>
          <failIfNoTests>true</failIfNoTests>
          <!-- TODO set to true?
          <failIfNoTests>false</failIfNoTests>
           -->
        </configuration>
      </plugin>

      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>findbugs-maven-plugin</artifactId>
        <version>2.5.2</version>
        <configuration>
          <excludeFilterFile>${findbugs.excludeFilterFile}</excludeFilterFile>
          <!-- NB: If we want to failOnError, we may need to
               remove GuavaBetaDetector/library-detectors. -->
          <failOnError>false</failOnError>
          <plugins>
            <plugin>
              <groupId>com.overstock.findbugs</groupId>
              <artifactId>library-detectors</artifactId>
              <version>1.1</version>
            </plugin>
          </plugins>
        </configuration>
        <executions>
          <execution>
            <id>default</id>
            <goals>
              <goal>check</goal>
            </goals>
          </execution>
        </executions>
      </plugin>


      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>versions-maven-plugin</artifactId>
        <version>1.3.1</version>
      </plugin>

      <plugin>
        <groupId>com.lukegb.mojo</groupId>
        <artifactId>gitdescribe-maven-plugin</artifactId>
        <version>2.0</version>
        <executions>
          <execution>
            <goals>
              <goal>gitdescribe</goal>
            </goals>
            <id>git-describe</id>
            <phase>initialize</phase>
            <configuration>
              <descriptionProperty>gitDescribe</descriptionProperty>
              <extraArguments>
              </extraArguments>
            </configuration>
          </execution>
        </executions>
      </plugin>

      <!-- useful for debugging Maven properties: eg mvn initialize antrun:run -->
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-antrun-plugin</artifactId>
        <configuration>
          <target>
            <echo>[describe] ${gitDescribe}</echo>
          </target>
        </configuration>
      </plugin>

      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-jar-plugin</artifactId>
        <inherited>true</inherited>
        <configuration>
          <archive>
            <manifest>
              <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
              <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
            </manifest>
            <manifestEntries>
              <SCM-Describe>${gitDescribe}</SCM-Describe>
              <Implementation-Build>${maven.build.timestamp}</Implementation-Build>
            </manifestEntries>
          </archive>
          <skipIfEmpty>true</skipIfEmpty>
        </configuration>
        <executions>
          <execution>
            <goals>
              <goal>test-jar</goal>
            </goals>
          </execution>
        </executions>
      </plugin>

      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-release-plugin</artifactId>
        <version>2.5</version>
        <configuration>
          <allowTimestampedSnapshots>false</allowTimestampedSnapshots>
          <autoVersionSubmodules>true</autoVersionSubmodules>
          <localCheckout>true</localCheckout>
          <pushChanges>true</pushChanges>
        </configuration>
      </plugin>

    </plugins>

    <pluginManagement>
      <plugins>
        <plugin>
          <artifactId>maven-antrun-plugin</artifactId>
          <version>1.7</version>
        </plugin>
        <plugin>
          <artifactId>maven-checkstyle-plugin</artifactId>
          <version>2.10</version>
        </plugin>
        <plugin>
          <artifactId>maven-clean-plugin</artifactId>
          <version>2.4.1</version>
        </plugin>
        <plugin>
          <artifactId>maven-compiler-plugin</artifactId>
          <version>3.1</version>
        </plugin>
        <plugin>
          <artifactId>maven-dependency-plugin</artifactId>
          <version>2.8</version>
        </plugin>
        <plugin>
          <artifactId>maven-deploy-plugin</artifactId>
          <version>2.7</version>
        </plugin>
        <plugin>
          <artifactId>maven-eclipse-plugin</artifactId>
          <version>2.9</version>
        </plugin>
        <plugin>
          <artifactId>maven-install-plugin</artifactId>
          <version>2.3.1</version>
        </plugin>
        <plugin>
          <artifactId>maven-jar-plugin</artifactId>
          <version>2.4</version>
        </plugin>
        <plugin>
          <artifactId>maven-resources-plugin</artifactId>
          <version>2.5</version>
        </plugin>
        <plugin>
          <artifactId>maven-source-plugin</artifactId>
          <version>2.3</version>
        </plugin>
        <plugin>
          <artifactId>maven-surefire-plugin</artifactId>
          <version>${surefire.version}</version>
        </plugin>
        <plugin>
          <artifactId>cobertura-maven-plugin</artifactId>
          <version>2.4</version>
        </plugin>
        <plugin>
          <artifactId>maven-surefire-report-plugin</artifactId>
          <version>${surefire.version}</version>
        </plugin>
        <plugin>
          <artifactId>maven-jxr-plugin</artifactId>
          <version>2.2</version>
        </plugin>
        <plugin>
          <artifactId>maven-site-plugin</artifactId>
          <version>3.4</version>
        </plugin>
        <plugin>
          <groupId>org.eclipse.m2e</groupId>
          <artifactId>lifecycle-mapping</artifactId>
          <version>1.0.0</version>
          <configuration>
            <lifecycleMappingMetadata>
              <pluginExecutions>
                <pluginExecution>
                  <pluginExecutionFilter>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-enforcer-plugin</artifactId>
                    <versionRange>[1.0.0,)</versionRange>
                    <goals>
                      <goal>enforce</goal>
                    </goals>
                  </pluginExecutionFilter>
                  <action>
                    <ignore />
                  </action>
                </pluginExecution>
                <pluginExecution>
                  <pluginExecutionFilter>
                    <groupId>com.lukegb.mojo</groupId>
                    <artifactId>gitdescribe-maven-plugin</artifactId>
                    <versionRange>[2.0,)</versionRange>
                    <goals>
                      <goal>gitdescribe</goal>
                    </goals>
                  </pluginExecutionFilter>
                  <action>
                    <ignore />
                  </action>
                </pluginExecution>
                <pluginExecution>
                  <pluginExecutionFilter>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-checkstyle-plugin</artifactId>
                    <versionRange>[2.10,)</versionRange>
                    <goals>
                      <goal>check</goal>
                    </goals>
                  </pluginExecutionFilter>
                  <action>
                    <ignore />
                  </action>
                </pluginExecution>
                <pluginExecution>
                  <pluginExecutionFilter>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-dependency-plugin</artifactId>
                    <versionRange>[2.8,)</versionRange>
                    <goals>
                      <goal>analyze-only</goal>
                    </goals>
                  </pluginExecutionFilter>
                  <action>
                    <ignore />
                  </action>
                </pluginExecution>
                <pluginExecution>
                  <pluginExecutionFilter>
                    <groupId>org.codehaus.mojo</groupId>
                    <artifactId>findbugs-maven-plugin</artifactId>
                    <versionRange>[2.5.2,)</versionRange>
                    <goals>
                      <goal>check</goal>
                    </goals>
                  </pluginExecutionFilter>
                  <action>
                    <ignore />
                  </action>
                </pluginExecution>
              </pluginExecutions>
            </lifecycleMappingMetadata>
          </configuration>
        </plugin>
        <plugin>
          <groupId>org.codehaus.enunciate</groupId>
          <artifactId>maven-enunciate-plugin</artifactId>
          <version>${enunciate.version}</version>
        </plugin>
        <!-- Mandatory plugins for using Spock -->
        <plugin>
          <groupId>org.codehaus.gmaven</groupId>
          <artifactId>gmaven-plugin</artifactId>
          <version>1.5</version>
          <configuration>
            <providerSelection>1.8</providerSelection>
          </configuration>
          <executions>
            <execution>
              <id>spock</id>
              <goals>
                <goal>compile</goal>
                <goal>testCompile</goal>
              </goals>
            </execution>
          </executions>
          <dependencies>
            <dependency>
              <groupId>org.codehaus.gmaven.runtime</groupId>
              <artifactId>gmaven-runtime-1.8</artifactId>
              <version>1.5</version>
              <exclusions>
                <exclusion>
                  <groupId>org.codehaus.groovy</groupId>
                  <artifactId>groovy-all</artifactId>
                </exclusion>
              </exclusions>
            </dependency>
            <dependency>
              <groupId>org.codehaus.groovy</groupId>
              <artifactId>groovy-all</artifactId>
              <version>${groovy.version}</version>
            </dependency>
          </dependencies>
        </plugin>
      </plugins>
    </pluginManagement>
    <extensions>
      <extension>
        <!--
        enables dav: protocol for distributionManagement in Maven 3+
        -->
        <groupId>org.apache.maven.wagon</groupId>
        <artifactId>wagon-webdav-jackrabbit</artifactId>
        <version>1.0-beta-7</version>
      </extension>
    </extensions>
  </build>


  <profiles>
    <profile>
      <id>sonatype-oss-release</id>
      <!-- This profile is enabled automatically by the Sonatype
           oss-parent POM when invoking the Maven Release Plugin -->
      <build>
        <plugins>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-gpg-plugin</artifactId>
            <configuration>
              <useAgent>true</useAgent>
            </configuration>
          </plugin>
          <plugin>
            <groupId>org.sonatype.plugins</groupId>
            <artifactId>nexus-staging-maven-plugin</artifactId>
            <version>1.4.5</version>
            <extensions>true</extensions>
            <configuration>
              <serverId>sonatype-nexus-staging</serverId>
              <nexusUrl>https://oss.sonatype.org/</nexusUrl>
            </configuration>
          </plugin>
        </plugins>
      </build>
    </profile>

    <profile>
      <!-- This profile lets us skip unit tests (but not integration tests)
        with -DskipUnitTests . The option
        -DskipTests can still be used to skip all tests (unit and integration). -->
      <id>skipUnitTests</id>
      <activation>
        <property>
          <name>skipUnitTests</name>
        </property>
      </activation>
      <build>
        <plugins>
          <plugin>
            <artifactId>maven-surefire-plugin</artifactId>
            <configuration>
              <skipTests>true</skipTests>
            </configuration>
          </plugin>
        </plugins>
      </build>
    </profile>

    <profile>
      <id>staticAnalysis</id>
      <activation>
        <property>
          <name>staticAnalysis</name>
        </property>
      </activation>
      <build>

      </build>
      <properties>
        <dupfind.skip>false</dupfind.skip>
        <enforcer.skip>false</enforcer.skip>
        <findbugs.skip>false</findbugs.skip>
        <mdep.analyze.skip>false</mdep.analyze.skip>
      </properties>
    </profile>

    <profile>
      <id>victims</id>
      <activation>
        <property>
          <name>victims</name>
        </property>
      </activation>
      <properties>
        <enforcer.skip>false</enforcer.skip>
      </properties>
      <build>
        <plugins>
          <plugin>
            <artifactId>maven-enforcer-plugin</artifactId>
            <configuration>
              <rules>
                <rule implementation="com.redhat.victims.VictimsRule">
                  <!--
                    Check the project's dependencies against the database using
                    name and version. The default mode for this is 'warning'.

                    Valid options are:

                    disabled: Rule is still run but only INFO level messages and no errors.
                    warning : Rule will spit out a warning message but doesn't result in a failure.
                    fatal   : Rule will spit out an error message and fail the build.
                  -->
                  <metadata>warning</metadata>

                  <!--
                    Check the project's dependencies against the database using
                    the SHA-512 checksum of the artifact. The default is fatal.

                    Valid options are:

                    disabled: Rule is still run but only INFO level messages and no errors.
                    warning : Rule will spit out a warning message but doesn't result in a failure.
                    fatal   : Rule will spit out an error message and fail the build.
                  -->
                  <!-- TODO change to fatal -->
                  <fingerprint>warning</fingerprint>

                  <!--
                    Disables the synchronization mechansim. By default the rule will
                    attempt to update the database for each build.

                    Valid options are:

                    auto  : Automatically update the database entries on each build.
                    daily : Update the database entries once per day.
                    off   : Disable the synchronization mechanism.
                  -->
                  <updates>${victims.updates}</updates>
                </rule>
              </rules>
            </configuration>
            <dependencies>
              <dependency>
                <groupId>com.redhat.victims</groupId>
                <artifactId>enforce-victims-rule</artifactId>
                <version>1.3.4</version>
                <type>jar</type>
              </dependency>
            </dependencies>
          </plugin>

        </plugins>
      </build>
    </profile>

    <profile>
      <!-- This profile runs a single integration test with
        -Dit.test=<integration-test-name>, skipping unit tests. -->
      <id>it.test</id>
      <activation>
        <property>
          <name>it.test</name>
        </property>
      </activation>
      <build>
        <plugins>
          <plugin>
            <artifactId>maven-surefire-plugin</artifactId>
            <configuration>
              <skipTests>true</skipTests>
            </configuration>
          </plugin>
        </plugins>
      </build>
    </profile>

    <profile>
      <!-- Used for MEAD builds -->
      <id>mead</id>
      <activation>
        <property>
          <name>mead</name>
        </property>
      </activation>
      <properties>
        <allow.deploy.skip>false</allow.deploy.skip>
        <checkstyle.skip>true</checkstyle.skip>
        <enforcer.skip>true</enforcer.skip>
        <findbugs.skip>true</findbugs.skip>
        <mavensign.expand.skip>*</mavensign.expand.skip>
        <mavensign.sign.skip>*</mavensign.sign.skip>
        <skipTests>true</skipTests>
      </properties>
    </profile>


    <profile>
      <id>allReports</id>
      <reporting>
        <plugins>
          <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>cobertura-maven-plugin</artifactId>
          </plugin>

          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-checkstyle-plugin</artifactId>
            <version>2.10</version>
            <configuration>
              <configLocation>${checkstyle.config.location}</configLocation>
              <propertiesLocation>${checkstyle.propertiesLocation}</propertiesLocation>
              <suppressions.location>${checkstyle.suppressions.location}</suppressions.location>
              <suppressionsFileExpression>${checkstyle.suppressionsFileExpression}</suppressionsFileExpression>
              <enableRulesSummary>false</enableRulesSummary>
              <skip>${checkstyle.skip}</skip>
            </configuration>
          </plugin>

          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-surefire-report-plugin</artifactId>
            <version>${surefire.version}</version>
          </plugin>

          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-jxr-plugin</artifactId>
            <version>2.2</version>
            <configuration>
              <aggregate>true</aggregate>
            </configuration>
          </plugin>

          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-pmd-plugin</artifactId>
            <version>2.5</version>
            <configuration>
              <targetJdk>1.6</targetJdk>
            </configuration>
          </plugin>

        </plugins>
      </reporting>
    </profile>
  </profiles>

  <dependencyManagement>
    <dependencies>
      <dependency>
        <groupId>junit</groupId>
        <artifactId>junit</artifactId>
        <version>4.11</version>
        <scope>test</scope>
      </dependency>
      <dependency>
        <groupId>log4j</groupId>
        <artifactId>log4j</artifactId>
        <version>1.2.17</version>
      </dependency>
      <dependency>
        <groupId>org.codehaus.groovy</groupId>
        <artifactId>groovy-all</artifactId>
        <version>${groovy.version}</version>
      </dependency>
      <dependency>
        <groupId>org.powermock</groupId>
        <artifactId>powermock-api-mockito</artifactId>
        <version>${powermock.version}</version>
        <scope>test</scope>
        <exclusions>
          <exclusion>
            <groupId>org.mockito</groupId>
            <artifactId>mockito-all</artifactId>
          </exclusion>
        </exclusions>
      </dependency>
      <dependency>
        <groupId>org.powermock</groupId>
        <artifactId>powermock-core</artifactId>
        <version>${powermock.version}</version>
        <scope>test</scope>
      </dependency>
      <dependency>
        <groupId>org.powermock</groupId>
        <artifactId>powermock-module-junit4</artifactId>
        <version>${powermock.version}</version>
        <scope>test</scope>
      </dependency>
      <dependency>
        <groupId>org.projectlombok</groupId>
        <artifactId>lombok</artifactId>
        <version>${lombok.version}</version>
        <scope>provided</scope>
      </dependency>
      <dependency>
        <groupId>org.slf4j</groupId>
        <artifactId>slf4j-api</artifactId>
        <version>${slf4j.version}</version>
      </dependency>
      <dependency>
        <groupId>org.slf4j</groupId>
        <artifactId>slf4j-log4j12</artifactId>
        <version>${slf4j.version}</version>
      </dependency>
      <dependency>
        <groupId>org.slf4j</groupId>
        <artifactId>jcl-over-slf4j</artifactId>
        <version>${slf4j.version}</version>
      </dependency>
      <dependency>
        <groupId>org.slf4j</groupId>
        <artifactId>log4j-over-slf4j</artifactId>
        <version>${slf4j.version}</version>
      </dependency>
      <dependency>
        <groupId>org.spockframework</groupId>
        <artifactId>spock-core</artifactId>
        <version>0.7-groovy-1.8</version>
        <scope>test</scope>
        <exclusions>
          <exclusion>
            <groupId>junit</groupId>
            <artifactId>junit-dep</artifactId>
          </exclusion>
        </exclusions>
      </dependency>
      <dependency>
        <groupId>org.testng</groupId>
        <artifactId>testng</artifactId>
        <version>6.8</version>
        <scope>test</scope>
      </dependency>
      <dependency>
        <groupId>org.easymock</groupId>
        <artifactId>easymock</artifactId>
        <version>3.1</version>
        <scope>test</scope>
      </dependency>

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

      <dependency>
        <groupId>org.hamcrest</groupId>
        <artifactId>hamcrest-core</artifactId>
        <version>${hamcrest.version}</version>
        <scope>test</scope>
      </dependency>
      <dependency>
        <groupId>org.hamcrest</groupId>
        <artifactId>hamcrest-library</artifactId>
        <version>${hamcrest.version}</version>
        <scope>test</scope>
      </dependency>

      <dependency>
        <groupId>com.google.guava</groupId>
        <artifactId>guava</artifactId>
        <version>${guava.version}</version>
      </dependency>

      <dependency>
        <groupId>com.google.guava</groupId>
        <artifactId>guava-gwt</artifactId>
        <version>${guava.version}</version>
        <scope>provided</scope>
      </dependency>

      <dependency>
        <groupId>com.google.code.findbugs</groupId>
        <artifactId>annotations</artifactId>
        <version>${findbugs.version}</version>
        <scope>provided</scope>
      </dependency>

      <dependency>
        <groupId>org.codehaus.jackson</groupId>
        <artifactId>jackson-core-asl</artifactId>
        <version>${jackson.version}</version>
      </dependency>

      <dependency>
        <groupId>org.codehaus.jackson</groupId>
        <artifactId>jackson-jaxrs</artifactId>
        <version>${jackson.version}</version>
      </dependency>

      <dependency>
        <groupId>org.codehaus.jackson</groupId>
        <artifactId>jackson-mapper-asl</artifactId>
        <version>${jackson.version}</version>
      </dependency>

      <dependency>
        <groupId>org.codehaus.jackson</groupId>
        <artifactId>jackson-xc</artifactId>
        <version>${jackson.version}</version>
      </dependency>

      <dependency>
        <groupId>com.h2database</groupId>
        <artifactId>h2</artifactId>
        <version>1.3.170</version>
        <scope>provided</scope>
      </dependency>

      <dependency>
        <groupId>commons-beanutils</groupId>
        <artifactId>commons-beanutils</artifactId>
        <version>1.8.3</version>
        <exclusions>
          <exclusion>
            <groupId>commons-logging</groupId>
            <artifactId>commons-logging</artifactId>
          </exclusion>
        </exclusions>
      </dependency>

      <dependency>
        <groupId>commons-codec</groupId>
        <artifactId>commons-codec</artifactId>
        <version>1.7</version>
      </dependency>

      <dependency>
        <groupId>commons-collections</groupId>
        <artifactId>commons-collections</artifactId>
        <version>3.2.1</version>
      </dependency>

      <!-- BANNED! -->
      <!--
            <dependency>
              <groupId>commons-logging</groupId>
              <artifactId>commons-logging</artifactId>
              <version>1.1.1</version>
            </dependency>
      -->

      <dependency>
        <groupId>commons-httpclient</groupId>
        <artifactId>commons-httpclient</artifactId>
        <version>3.1</version>
        <exclusions>
          <exclusion>
            <groupId>commons-logging</groupId>
            <artifactId>commons-logging</artifactId>
          </exclusion>
        </exclusions>
      </dependency>

      <dependency>
        <groupId>javax.transaction</groupId>
        <artifactId>jta</artifactId>
        <version>1.1</version>
        <scope>provided</scope>
      </dependency>
      <dependency>
        <groupId>javax.xml.bind</groupId>
        <artifactId>jaxb-api</artifactId>
        <version>2.2.3</version>
      </dependency>
      <dependency>
        <groupId>javax.xml.bind</groupId>
        <artifactId>jaxb-api</artifactId>
        <version>2.2.3</version>
        <classifier>sources</classifier>
      </dependency>
      <dependency>
        <groupId>javax.xml.stream</groupId>
        <artifactId>stax-api</artifactId>
        <version>1.0-2</version>
      </dependency>

      <!-- RestEasy dependencies -->
      <dependency>
        <groupId>org.jboss.resteasy</groupId>
        <artifactId>resteasy-bom</artifactId>
        <version>${resteasy.version}</version>
        <type>pom</type>
        <scope>import</scope>
      </dependency>

      <dependency>
        <groupId>org.jboss.resteasy</groupId>
        <artifactId>resteasy-jaxrs</artifactId>
        <version>${resteasy.version}</version>
        <exclusions>
          <exclusion>
            <groupId>commons-logging</groupId>
            <artifactId>commons-logging</artifactId>
          </exclusion>
          <exclusion>
            <groupId>net.jcip</groupId>
            <artifactId>jcip-annotations</artifactId>
          </exclusion>
          <exclusion>
            <groupId>javassist</groupId>
            <artifactId>javassist</artifactId>
          </exclusion>
        </exclusions>
      </dependency>

      <dependency>
        <groupId>org.apache.maven</groupId>
        <artifactId>maven-plugin-api</artifactId>
        <version>2.0</version>
      </dependency>
      <dependency>
        <groupId>org.apache.maven</groupId>
        <artifactId>maven-artifact</artifactId>
        <version>3.0.4</version>
      </dependency>
      <dependency>
        <groupId>com.pyx4j</groupId>
        <artifactId>maven-plugin-log4j</artifactId>
        <version>1.0.1</version>
      </dependency>
      <dependency>
        <groupId>commons-configuration</groupId>
        <artifactId>commons-configuration</artifactId>
        <version>1.9</version>
        <exclusions>
          <exclusion>
            <groupId>commons-logging</groupId>
            <artifactId>commons-logging</artifactId>
          </exclusion>
        </exclusions>
      </dependency>

      <dependency>
        <groupId>org.fedorahosted.openprops</groupId>
        <artifactId>openprops</artifactId>
        <version>0.6</version>
      </dependency>
      <dependency>
        <groupId>org.infinitest</groupId>
        <artifactId>infinitest</artifactId>
        <version>4.0.1</version>
        <scope>test</scope>
      </dependency>

      <!-- Liquibase Dependencies -->
      <!-- If the Liquibase version is being updated, please refer to
      any changelog files that run 'on change' and make sure that they still run
      after upgrading the version. -->
      <dependency>
        <groupId>org.liquibase</groupId>
        <artifactId>liquibase-core</artifactId>
        <version>3.0.7</version>
      </dependency>

      <dependency>
        <groupId>commons-lang</groupId>
        <artifactId>commons-lang</artifactId>
        <version>2.6</version>
      </dependency>

      <dependency>
        <groupId>net.sf.opencsv</groupId>
        <artifactId>opencsv</artifactId>
        <version>2.1</version>
      </dependency>

      <dependency>
        <groupId>commons-io</groupId>
        <artifactId>commons-io</artifactId>
        <version>2.4</version>
      </dependency>

      <dependency>
        <groupId>xom</groupId>
        <artifactId>xom</artifactId>
        <!-- NB: the latest version currently packaged for Fedora: -->
        <version>1.0</version>
        <exclusions>
          <exclusion>
            <artifactId>xml-apis</artifactId>
            <groupId>xml-apis</groupId>
          </exclusion>
          <exclusion>
            <groupId>xerces</groupId>
            <artifactId>xercesImpl</artifactId>
          </exclusion>
          <exclusion>
            <groupId>xerces</groupId>
            <artifactId>xmlParserAPIs</artifactId>
          </exclusion>
        </exclusions>
      </dependency>
      <dependency>
        <groupId>org.codehaus.enunciate</groupId>
        <artifactId>enunciate-core</artifactId>
        <version>${enunciate.version}</version>
        <exclusions>
          <exclusion>
            <groupId>javax.ws.rs</groupId>
            <artifactId>jsr311-api</artifactId>
          </exclusion>
          <exclusion>
            <groupId>com.sun.jersey</groupId>
            <artifactId>jersey-server</artifactId>
          </exclusion>
          <exclusion>
            <groupId>commons-logging</groupId>
            <artifactId>commons-logging</artifactId>
          </exclusion>
        </exclusions>
      </dependency>
      <dependency>
        <groupId>org.codehaus.enunciate</groupId>
        <artifactId>enunciate-core-annotations</artifactId>
        <version>${enunciate.version}</version>
      </dependency>
      <dependency>
        <groupId>org.codehaus.enunciate</groupId>
        <artifactId>enunciate-jersey-rt</artifactId>
        <version>${enunciate.version}</version>
        <exclusions>
          <exclusion>
            <groupId>javax.ws.rs</groupId>
            <artifactId>jsr311-api</artifactId>
          </exclusion>
          <exclusion>
            <groupId>com.sun.jersey</groupId>
            <artifactId>jersey-server</artifactId>
          </exclusion>
        </exclusions>
      </dependency>
      <!-- Optional dependencies for using Spock -->
      <dependency> <!-- enables mocking of classes (in addition to interfaces) -->
        <groupId>cglib</groupId>
        <artifactId>cglib-nodep</artifactId>
        <version>2.2.2</version>
        <scope>test</scope>
      </dependency>
      <dependency> <!-- enables mocking of classes without default constructor (together with CGLIB) -->
        <groupId>org.objenesis</groupId>
        <artifactId>objenesis</artifactId>
        <version>1.2</version>
        <scope>test</scope>
      </dependency>
    </dependencies>
  </dependencyManagement>
  <dependencies>
    <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>jcl-over-slf4j</artifactId>
    </dependency>
    <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>slf4j-log4j12</artifactId>
      <scope>test</scope>
    </dependency>
  </dependencies>
  <reporting>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-project-info-reports-plugin</artifactId>
        <version>2.2</version>
        <configuration>
          <!-- these can be incredibly slow -->
          <dependencyDetailsEnabled>${reports-plugin.dependencyDetailsEnabled}</dependencyDetailsEnabled>
          <dependencyLocationsEnabled>${reports-plugin.dependencyLocationsEnabled}</dependencyLocationsEnabled>
        </configuration>
      </plugin>

      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>findbugs-maven-plugin</artifactId>
        <version>2.5.2</version>
        <configuration>
          <xmlOutput>true</xmlOutput>
          <!-- Optional directory to put findbugs xdoc xml report -->
          <xmlOutputDirectory>target/site</xmlOutputDirectory>
        </configuration>
      </plugin>

      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-javadoc-plugin</artifactId>
        <version>2.9.1</version>
      </plugin>
    </plugins>
  </reporting>

  <prerequisites>
    <!-- NB: This check doesn't seem to work in Maven 3... -->
    <maven>${required.maven}</maven>
  </prerequisites>

</project>
