<?xml version="1.0" encoding="UTF-8"?>
<!--
  ~ Copyright 2010-2013 Ning, Inc.
  ~
  ~ Ning licenses this file to you under the Apache License, version 2.0
  ~ (the "License"); you may not use this file except in compliance with the
  ~ License.  You may obtain a copy of the License at:
  ~
  ~    http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  ~ WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the
  ~ License for the specific language governing permissions and limitations
  ~ under the License.
  -->
<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>
        <artifactId>oss-parent</artifactId>
        <groupId>org.sonatype.oss</groupId>
        <version>5</version>
    </parent>
    <groupId>com.ning.billing</groupId>
    <artifactId>killbill-oss-parent</artifactId>
    <version>0.5.21</version>
    <packaging>pom</packaging>
    <name>Kill Bill OSS Parent</name>
    <description>Parent pom for Kill Bill projects</description>
    <url>http://github.com/killbill/killbill-oss-parent</url>
    <inceptionYear>2010</inceptionYear>
    <licenses>
        <license>
            <name>Apache License 2.0</name>
            <url>http://www.apache.org/licenses/LICENSE-2.0.html</url>
            <distribution>repo</distribution>
        </license>
    </licenses>
    <developers>
        <developer>
            <id>pierre</id>
            <name>Pierre-Alexandre Meyer</name>
            <email>pierre@mouraf.org</email>
            <url>http://pub.mouraf.org/blog</url>
            <timezone>-8</timezone>
            <properties>
                <picUrl>http://pub.mouraf.org/me/me.jpg</picUrl>
            </properties>
        </developer>
        <developer>
            <id>stephane</id>
            <name>Stephane Brossier</name>
        </developer>
        <developer>
            <id>martin</id>
            <name>Martin Westhead</name>
        </developer>
    </developers>
    <mailingLists>
        <mailingList>
            <name>Kill Bill users</name>
            <subscribe>killbilling-users+subscribe@googlegroups.com</subscribe>
            <unsubscribe>killbilling-users+unsubscribe@googlegroups.com</unsubscribe>
            <post>killbilling-users@googlegroups.com</post>
            <archive>http://groups.google.com/group/killbilling-users</archive>
        </mailingList>
        <mailingList>
            <name>Kill Bill developers</name>
            <subscribe>killbilling-dev+subscribe@googlegroups.com</subscribe>
            <unsubscribe>killbilling-dev+unsubscribe@googlegroups.com</unsubscribe>
            <post>killbilling-dev@googlegroups.com</post>
            <archive>http://groups.google.com/group/killbilling-dev</archive>
        </mailingList>
    </mailingLists>
    <prerequisites>
        <maven>3.0</maven>
    </prerequisites>
    <scm>
        <connection>scm:git:git://github.com/killbill/killbill-oss-parent.git</connection>
        <developerConnection>scm:git:git@github.com:killbill/killbill-oss-parent.git</developerConnection>
        <url>http://github.com/killbill/killbill-oss-parent/tree/master</url>
    </scm>
    <issueManagement>
        <system>Github</system>
        <url>https://github.com/killbill/killbill-oss-parent/issues</url>
    </issueManagement>
    <properties>
        <async-http-client.version>1.7.24</async-http-client.version>
        <ehcache.version>2.6.2</ehcache.version>
        <guava.version>15.0</guava.version>
        <guice.version>3.0</guice.version>
        <jersey.version>1.12</jersey.version>
        <jetty.version>8.1.11.v20130520</jetty.version>
        <killbill-analytics-plugin.version>0.5.5</killbill-analytics-plugin.version>
        <killbill-api.version>0.8.0</killbill-api.version>
        <killbill-client.version>0.0.1</killbill-client.version>
        <killbill-commons.version>0.2.11</killbill-commons.version>
        <killbill-meter-plugin.version>0.4.1</killbill-meter-plugin.version>
        <killbill-plugin-api.version>0.6.3</killbill-plugin-api.version>
        <killbill.version>0.8.8</killbill.version>
        <logback.version>1.0.1</logback.version>
        <metrics.version>2.1.2</metrics.version>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <skeleton.version>0.1.7</skeleton.version>
        <slf4j.version>1.7.5</slf4j.version>
    </properties>
    <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>ch.qos.logback</groupId>
                <artifactId>logback-classic</artifactId>
                <version>${logback.version}</version>
                <scope>runtime</scope>
            </dependency>
            <dependency>
                <groupId>ch.qos.logback</groupId>
                <artifactId>logback-core</artifactId>
                <version>${logback.version}</version>
                <scope>runtime</scope>
            </dependency>
            <dependency>
                <groupId>com.codahale.metrics</groupId>
                <artifactId>metrics-core</artifactId>
                <version>3.0.1</version>
            </dependency>
            <dependency>
                <groupId>com.dmurph</groupId>
                <artifactId>JGoogleAnalyticsTracker</artifactId>
                <version>1.2.0</version>
            </dependency>
            <dependency>
                <groupId>com.fasterxml.jackson.core</groupId>
                <artifactId>jackson-annotations</artifactId>
                <version>2.1.0</version>
            </dependency>
            <dependency>
                <groupId>com.fasterxml.jackson.core</groupId>
                <artifactId>jackson-core</artifactId>
                <version>2.1.0</version>
            </dependency>
            <dependency>
                <groupId>com.fasterxml.jackson.core</groupId>
                <artifactId>jackson-databind</artifactId>
                <version>2.1.0</version>
            </dependency>
            <dependency>
                <groupId>com.fasterxml.jackson.dataformat</groupId>
                <artifactId>jackson-dataformat-csv</artifactId>
                <version>2.1.0</version>
            </dependency>
            <dependency>
                <groupId>com.fasterxml.jackson.dataformat</groupId>
                <artifactId>jackson-dataformat-smile</artifactId>
                <version>2.0.1</version>
            </dependency>
            <dependency>
                <groupId>com.fasterxml.jackson.datatype</groupId>
                <artifactId>jackson-datatype-joda</artifactId>
                <version>2.0.1</version>
            </dependency>
            <dependency>
                <groupId>com.fasterxml.util</groupId>
                <artifactId>low-gc-membuffers</artifactId>
                <version>0.9.0</version>
            </dependency>
            <dependency>
                <groupId>com.google.code.findbugs</groupId>
                <artifactId>jsr305</artifactId>
                <version>1.3.9</version>
                <scope>provided</scope>
            </dependency>
            <dependency>
                <groupId>com.google.guava</groupId>
                <artifactId>guava</artifactId>
                <version>${guava.version}</version>
                <scope>provided</scope>
            </dependency>
            <dependency>
                <groupId>com.google.inject</groupId>
                <artifactId>guice</artifactId>
                <version>${guice.version}</version>
                <scope>provided</scope>
            </dependency>
            <dependency>
                <groupId>com.google.inject.extensions</groupId>
                <artifactId>guice-multibindings</artifactId>
                <version>${guice.version}</version>
                <scope>provided</scope>
            </dependency>
            <dependency>
                <groupId>com.h2database</groupId>
                <artifactId>h2</artifactId>
                <version>1.3.158</version>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>com.jayway.awaitility</groupId>
                <artifactId>awaitility</artifactId>
                <version>1.3.3</version>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>com.jolbox</groupId>
                <artifactId>bonecp</artifactId>
                <version>0.8.0-rc3</version>
            </dependency>
            <dependency>
                <groupId>com.mchange</groupId>
                <artifactId>c3p0</artifactId>
                <version>0.9.2</version>
            </dependency>
            <dependency>
                <groupId>com.mogwee</groupId>
                <artifactId>mogwee-executors</artifactId>
                <version>1.2.0</version>
            </dependency>
            <dependency>
                <groupId>com.ning</groupId>
                <artifactId>async-http-client</artifactId>
                <version>1.7.17</version>
            </dependency>
            <dependency>
                <groupId>com.ning.billing</groupId>
                <artifactId>killbill-account</artifactId>
                <version>${killbill.version}</version>
            </dependency>
            <dependency>
                <groupId>com.ning.billing</groupId>
                <artifactId>killbill-account</artifactId>
                <version>${killbill.version}</version>
                <type>test-jar</type>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>com.ning.billing</groupId>
                <artifactId>killbill-api</artifactId>
                <version>${killbill-api.version}</version>
            </dependency>
            <dependency>
                <groupId>com.ning.billing</groupId>
                <artifactId>killbill-api</artifactId>
                <version>${killbill-api.version}</version>
                <type>test-jar</type>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>com.ning.billing</groupId>
                <artifactId>killbill-beatrix</artifactId>
                <version>${killbill.version}</version>
            </dependency>
            <dependency>
                <groupId>com.ning.billing</groupId>
                <artifactId>killbill-beatrix</artifactId>
                <version>${killbill.version}</version>
                <type>test-jar</type>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>com.ning.billing</groupId>
                <artifactId>killbill-catalog</artifactId>
                <version>${killbill.version}</version>
            </dependency>
            <dependency>
                <groupId>com.ning.billing</groupId>
                <artifactId>killbill-catalog</artifactId>
                <version>${killbill.version}</version>
                <type>test-jar</type>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>com.ning.billing</groupId>
                <artifactId>killbill-client-java</artifactId>
                <version>${killbill-client.version}</version>
            </dependency>
            <dependency>
                <groupId>com.ning.billing</groupId>
                <artifactId>killbill-currency</artifactId>
                <version>${killbill.version}</version>
            </dependency>
            <dependency>
                <groupId>com.ning.billing</groupId>
                <artifactId>killbill-entitlement</artifactId>
                <version>${killbill.version}</version>
            </dependency>
            <dependency>
                <groupId>com.ning.billing</groupId>
                <artifactId>killbill-entitlement</artifactId>
                <version>${killbill.version}</version>
                <type>test-jar</type>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>com.ning.billing</groupId>
                <artifactId>killbill-internal-api</artifactId>
                <version>${killbill.version}</version>
            </dependency>
            <dependency>
                <groupId>com.ning.billing</groupId>
                <artifactId>killbill-invoice</artifactId>
                <version>${killbill.version}</version>
            </dependency>
            <dependency>
                <groupId>com.ning.billing</groupId>
                <artifactId>killbill-invoice</artifactId>
                <version>${killbill.version}</version>
                <type>test-jar</type>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>com.ning.billing</groupId>
                <artifactId>killbill-jaxrs</artifactId>
                <version>${killbill.version}</version>
            </dependency>
            <dependency>
                <groupId>com.ning.billing</groupId>
                <artifactId>killbill-junction</artifactId>
                <version>${killbill.version}</version>
            </dependency>
            <dependency>
                <groupId>com.ning.billing</groupId>
                <artifactId>killbill-junction</artifactId>
                <version>${killbill.version}</version>
                <type>test-jar</type>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>com.ning.billing</groupId>
                <artifactId>killbill-osgi</artifactId>
                <version>${killbill.version}</version>
            </dependency>
            <dependency>
                <groupId>com.ning.billing</groupId>
                <artifactId>killbill-osgi-all-bundles</artifactId>
                <version>${killbill.version}</version>
            </dependency>
            <dependency>
                <groupId>com.ning.billing</groupId>
                <artifactId>killbill-osgi-bundles-analytics</artifactId>
                <version>${killbill-analytics-plugin.version}</version>
            </dependency>
            <dependency>
                <groupId>com.ning.billing</groupId>
                <artifactId>killbill-osgi-bundles-defaultbundles</artifactId>
                <version>${killbill.version}</version>
            </dependency>
            <dependency>
                <groupId>com.ning.billing</groupId>
                <artifactId>killbill-osgi-bundles-jruby</artifactId>
                <version>${killbill.version}</version>
            </dependency>
            <dependency>
                <groupId>com.ning.billing</groupId>
                <artifactId>killbill-osgi-bundles-lib-killbill</artifactId>
                <version>${killbill.version}</version>
            </dependency>
            <dependency>
                <groupId>com.ning.billing</groupId>
                <artifactId>killbill-osgi-bundles-lib-slf4j-osgi</artifactId>
                <version>${killbill.version}</version>
            </dependency>
            <dependency>
                <groupId>com.ning.billing</groupId>
                <artifactId>killbill-osgi-bundles-logger</artifactId>
                <version>${killbill.version}</version>
            </dependency>
            <dependency>
                <groupId>com.ning.billing</groupId>
                <artifactId>killbill-osgi-bundles-meter</artifactId>
                <version>${killbill-meter-plugin.version}</version>
            </dependency>
            <dependency>
                <groupId>com.ning.billing</groupId>
                <artifactId>killbill-osgi-bundles-test-beatrix</artifactId>
                <version>${killbill.version}</version>
            </dependency>
            <dependency>
                <groupId>com.ning.billing</groupId>
                <artifactId>killbill-osgi-bundles-test-payment</artifactId>
                <version>${killbill.version}</version>
            </dependency>
            <dependency>
                <groupId>com.ning.billing</groupId>
                <artifactId>killbill-osgi-bundles-webconsolebranding</artifactId>
                <version>${killbill.version}</version>
            </dependency>
            <dependency>
                <groupId>com.ning.billing</groupId>
                <artifactId>killbill-overdue</artifactId>
                <version>${killbill.version}</version>
            </dependency>
            <dependency>
                <groupId>com.ning.billing</groupId>
                <artifactId>killbill-overdue</artifactId>
                <version>${killbill.version}</version>
                <type>test-jar</type>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>com.ning.billing</groupId>
                <artifactId>killbill-payment</artifactId>
                <version>${killbill.version}</version>
            </dependency>
            <dependency>
                <groupId>com.ning.billing</groupId>
                <artifactId>killbill-payment</artifactId>
                <version>${killbill.version}</version>
                <type>test-jar</type>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>com.ning.billing</groupId>
                <artifactId>killbill-server</artifactId>
                <version>${killbill.version}</version>
            </dependency>
            <dependency>
                <groupId>com.ning.billing</groupId>
                <artifactId>killbill-subscription</artifactId>
                <version>${killbill.version}</version>
            </dependency>
            <dependency>
                <groupId>com.ning.billing</groupId>
                <artifactId>killbill-subscription</artifactId>
                <version>${killbill.version}</version>
                <type>test-jar</type>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>com.ning.billing</groupId>
                <artifactId>killbill-tenant</artifactId>
                <version>${killbill.version}</version>
            </dependency>
            <dependency>
                <groupId>com.ning.billing</groupId>
                <artifactId>killbill-usage</artifactId>
                <version>${killbill.version}</version>
            </dependency>
            <dependency>
                <groupId>com.ning.billing</groupId>
                <artifactId>killbill-util</artifactId>
                <version>${killbill.version}</version>
            </dependency>
            <dependency>
                <groupId>com.ning.billing</groupId>
                <artifactId>killbill-util</artifactId>
                <version>${killbill.version}</version>
                <type>test-jar</type>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>com.ning.billing.commons</groupId>
                <artifactId>killbill-clock</artifactId>
                <version>${killbill-commons.version}</version>
            </dependency>
            <dependency>
                <groupId>com.ning.billing.commons</groupId>
                <artifactId>killbill-clock</artifactId>
                <version>${killbill-commons.version}</version>
                <type>test-jar</type>
                <!-- Removed scope test until we decide if ClockMock should be in non test package
     or if this is indeed the right thing to have that jar part non test code
     (Used to advance clock in Kill Bill server for test integration suite)
               <scope>test</scope>
-->
            </dependency>
            <dependency>
                <groupId>com.ning.billing.commons</groupId>
                <artifactId>killbill-concurrent</artifactId>
                <version>${killbill-commons.version}</version>
            </dependency>
            <dependency>
                <groupId>com.ning.billing.commons</groupId>
                <artifactId>killbill-embeddeddb</artifactId>
                <version>${killbill-commons.version}</version>
            </dependency>
            <dependency>
                <groupId>com.ning.billing.commons</groupId>
                <artifactId>killbill-jdbi</artifactId>
                <version>${killbill-commons.version}</version>
            </dependency>
            <dependency>
                <groupId>com.ning.billing.commons</groupId>
                <artifactId>killbill-locker</artifactId>
                <version>${killbill-commons.version}</version>
            </dependency>
            <dependency>
                <groupId>com.ning.billing.commons</groupId>
                <artifactId>killbill-queue</artifactId>
                <version>${killbill-commons.version}</version>
            </dependency>
            <dependency>
                <groupId>com.ning.billing.commons</groupId>
                <artifactId>killbill-queue</artifactId>
                <version>${killbill-commons.version}</version>
                <type>test-jar</type>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>com.ning.billing.plugin</groupId>
                <artifactId>killbill-plugin-api</artifactId>
                <version>${killbill-plugin-api.version}</version>
            </dependency>
            <dependency>
                <groupId>com.ning.billing.plugin</groupId>
                <artifactId>killbill-plugin-api-currency</artifactId>
                <version>${killbill-plugin-api.version}</version>
            </dependency>
            <dependency>
                <groupId>com.ning.billing.plugin</groupId>
                <artifactId>killbill-plugin-api-notification</artifactId>
                <version>${killbill-plugin-api.version}</version>
            </dependency>
            <dependency>
                <groupId>com.ning.billing.plugin</groupId>
                <artifactId>killbill-plugin-api-payment</artifactId>
                <version>${killbill-plugin-api.version}</version>
            </dependency>
            <dependency>
                <groupId>com.ning.jetty</groupId>
                <artifactId>ning-service-skeleton-base</artifactId>
                <version>${skeleton.version}</version>
            </dependency>
            <dependency>
                <groupId>com.ning.jetty</groupId>
                <artifactId>ning-service-skeleton-jdbi</artifactId>
                <version>${skeleton.version}</version>
            </dependency>
            <dependency>
                <groupId>com.samskivert</groupId>
                <artifactId>jmustache</artifactId>
                <version>1.5</version>
            </dependency>
            <dependency>
                <groupId>com.sun.jersey</groupId>
                <artifactId>jersey-server</artifactId>
                <version>${jersey.version}</version>
            </dependency>
            <dependency>
                <groupId>com.sun.jersey.contribs</groupId>
                <artifactId>jersey-guice</artifactId>
                <version>${jersey.version}</version>
            </dependency>
            <!-- TODO Migrate Kill Bill server to 3.x version -->
            <dependency>
                <groupId>com.yammer.metrics</groupId>
                <artifactId>metrics-core</artifactId>
                <version>${metrics.version}</version>
            </dependency>
            <dependency>
                <groupId>com.yammer.metrics</groupId>
                <artifactId>metrics-guice</artifactId>
                <version>${metrics.version}</version>
            </dependency>
            <dependency>
                <groupId>commons-io</groupId>
                <artifactId>commons-io</artifactId>
                <version>2.1</version>
            </dependency>
            <dependency>
                <groupId>javax.inject</groupId>
                <artifactId>javax.inject</artifactId>
                <version>1</version>
            </dependency>
            <dependency>
                <groupId>javax.servlet</groupId>
                <artifactId>javax.servlet-api</artifactId>
                <version>3.0.1</version>
                <scope>provided</scope>
            </dependency>
            <dependency>
                <groupId>javax.ws.rs</groupId>
                <artifactId>jsr311-api</artifactId>
                <version>1.1.1</version>
            </dependency>
            <dependency>
                <groupId>joda-time</groupId>
                <artifactId>joda-time</artifactId>
                <version>2.3</version>
            </dependency>
            <dependency>
                <groupId>mysql</groupId>
                <artifactId>mysql-connector-java</artifactId>
                <version>5.1.22</version>
                <scope>runtime</scope>
            </dependency>
            <dependency>
                <groupId>mysql</groupId>
                <artifactId>mysql-connector-mxj</artifactId>
                <version>5.0.12</version>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>mysql</groupId>
                <artifactId>mysql-connector-mxj-db-files</artifactId>
                <version>5.0.12</version>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>net.sf.ehcache</groupId>
                <artifactId>ehcache-core</artifactId>
                <version>${ehcache.version}</version>
                <type>jar</type>
            </dependency>
            <dependency>
                <groupId>org.antlr</groupId>
                <artifactId>stringtemplate</artifactId>
                <version>3.2.1</version>
            </dependency>
            <dependency>
                <groupId>org.apache.commons</groupId>
                <artifactId>commons-email</artifactId>
                <version>1.2</version>
            </dependency>
            <dependency>
                <groupId>org.apache.felix</groupId>
                <artifactId>org.apache.felix.fileinstall</artifactId>
                <version>3.2.6</version>
            </dependency>
            <dependency>
                <groupId>org.apache.felix</groupId>
                <artifactId>org.apache.felix.framework</artifactId>
                <version>4.0.3</version>
            </dependency>
            <dependency>
                <groupId>org.apache.felix</groupId>
                <artifactId>org.osgi.core</artifactId>
                <version>1.0.1</version>
            </dependency>
            <dependency>
                <groupId>org.apache.shiro</groupId>
                <artifactId>shiro-core</artifactId>
                <version>1.2.2</version>
            </dependency>
            <dependency>
                <groupId>org.apache.shiro</groupId>
                <artifactId>shiro-ehcache</artifactId>
                <version>1.2.2</version>
            </dependency>
            <dependency>
                <groupId>org.apache.shiro</groupId>
                <artifactId>shiro-guice</artifactId>
                <version>1.2.2</version>
            </dependency>
            <dependency>
                <groupId>org.apache.shiro</groupId>
                <artifactId>shiro-web</artifactId>
                <version>1.2.2</version>
            </dependency>
            <dependency>
                <groupId>org.eclipse.jetty</groupId>
                <artifactId>jetty-deploy</artifactId>
                <version>${jetty.version}</version>
            </dependency>
            <dependency>
                <groupId>org.eclipse.jetty</groupId>
                <artifactId>jetty-http</artifactId>
                <version>${jetty.version}</version>
            </dependency>
            <dependency>
                <groupId>org.eclipse.jetty</groupId>
                <artifactId>jetty-io</artifactId>
                <version>${jetty.version}</version>
            </dependency>
            <dependency>
                <groupId>org.eclipse.jetty</groupId>
                <artifactId>jetty-jmx</artifactId>
                <version>${jetty.version}</version>
            </dependency>
            <dependency>
                <groupId>org.eclipse.jetty</groupId>
                <artifactId>jetty-server</artifactId>
                <version>${jetty.version}</version>
            </dependency>
            <dependency>
                <groupId>org.eclipse.jetty</groupId>
                <artifactId>jetty-util</artifactId>
                <version>${jetty.version}</version>
            </dependency>
            <dependency>
                <groupId>org.eclipse.jetty</groupId>
                <artifactId>jetty-xml</artifactId>
                <version>${jetty.version}</version>
            </dependency>
            <dependency>
                <groupId>org.jdbi</groupId>
                <artifactId>jdbi</artifactId>
                <version>2.53</version>
            </dependency>
            <dependency>
                <groupId>org.mockito</groupId>
                <artifactId>mockito-all</artifactId>
                <version>1.9.0</version>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>org.osgi</groupId>
                <artifactId>org.osgi.compendium</artifactId>
                <version>4.3.1</version>
            </dependency>
            <dependency>
                <groupId>org.osgi</groupId>
                <artifactId>org.osgi.core</artifactId>
                <version>4.3.1</version>
            </dependency>
            <dependency>
                <groupId>org.skife.config</groupId>
                <artifactId>config-magic</artifactId>
                <version>0.14</version>
            </dependency>
            <dependency>
                <groupId>org.slf4j</groupId>
                <artifactId>jcl-over-slf4j</artifactId>
                <version>${slf4j.version}</version>
            </dependency>
            <dependency>
                <groupId>org.slf4j</groupId>
                <artifactId>jul-to-slf4j</artifactId>
                <version>${slf4j.version}</version>
            </dependency>
            <dependency>
                <groupId>org.slf4j</groupId>
                <artifactId>osgi-over-slf4j</artifactId>
                <version>${slf4j.version}</version>
            </dependency>
            <dependency>
                <groupId>org.slf4j</groupId>
                <artifactId>slf4j-api</artifactId>
                <version>${slf4j.version}</version>
            </dependency>
            <dependency>
                <groupId>org.slf4j</groupId>
                <artifactId>slf4j-simple</artifactId>
                <version>${slf4j.version}</version>
            </dependency>
            <dependency>
                <groupId>org.testng</groupId>
                <artifactId>testng</artifactId>
                <version>6.3.1</version>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>org.weakref</groupId>
                <artifactId>jmxutils</artifactId>
                <version>1.12</version>
            </dependency>
        </dependencies>
    </dependencyManagement>
    <build>
        <pluginManagement>
            <plugins>
                <plugin>
                    <groupId>com.ning.maven.plugins</groupId>
                    <artifactId>maven-dependency-versions-check-plugin</artifactId>
                    <version>2.0.2</version>
                    <executions>
                        <execution>
                            <phase>verify</phase>
                            <goals>
                                <goal>check</goal>
                            </goals>
                        </execution>
                    </executions>
                    <configuration>
                        <failBuildInCaseOfConflict>true</failBuildInCaseOfConflict>
                    </configuration>
                </plugin>
                <plugin>
                    <groupId>com.ning.maven.plugins</groupId>
                    <artifactId>maven-duplicate-finder-plugin</artifactId>
                    <version>1.0.4</version>
                    <executions>
                        <execution>
                            <phase>verify</phase>
                            <goals>
                                <goal>check</goal>
                            </goals>
                        </execution>
                    </executions>
                    <configuration>
                        <failBuildInCaseOfConflict>false</failBuildInCaseOfConflict>
                        <!-- That's for Jetty -->
                        <ignoredResources>
                            <ignoredResource>about.html</ignoredResource>
                        </ignoredResources>
                    </configuration>
                </plugin>
                <plugin>
                    <groupId>io.tesla.jettyconsole</groupId>
                    <artifactId>jetty-console-maven-plugin</artifactId>
                    <version>1.47</version>
                </plugin>
                <plugin>
                    <groupId>org.apache.felix</groupId>
                    <artifactId>maven-bundle-plugin</artifactId>
                    <version>2.3.7</version>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-assembly-plugin</artifactId>
                    <version>2.4</version>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-compiler-plugin</artifactId>
                    <version>3.0</version>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-dependency-plugin</artifactId>
                    <version>2.3</version>
                    <executions>
                        <execution>
                            <id>analyze</id>
                            <goals>
                                <goal>analyze-only</goal>
                            </goals>
                            <configuration>
                                <ignoreNonCompile>true</ignoreNonCompile>
                                <failOnWarning>false</failOnWarning>
                            </configuration>
                        </execution>
                    </executions>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-enforcer-plugin</artifactId>
                    <version>1.2</version>
                    <executions>
                        <execution>
                            <id>enforce-versions</id>
                            <goals>
                                <goal>enforce</goal>
                            </goals>
                            <configuration>
                                <rules>
                                    <requireMavenVersion>
                                        <version>3.0.0</version>
                                    </requireMavenVersion>
                                    <requireJavaVersion>
                                        <version>1.6</version>
                                    </requireJavaVersion>
                                    <bannedDependencies>
                                        <excludes>
                                            <exclude>com.google.collections:google-collections</exclude>
                                            <exclude>com.google.guava:guava</exclude>
                                        </excludes>
                                        <includes>
                                            <include>com.google.guava:guava:[12,)</include>
                                        </includes>
                                    </bannedDependencies>
                                </rules>
                            </configuration>
                        </execution>
                    </executions>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-jar-plugin</artifactId>
                    <version>2.4</version>
                    <executions>
                        <execution>
                            <goals>
                                <goal>jar</goal>
                                <goal>test-jar</goal>
                            </goals>
                        </execution>
                    </executions>
                    <configuration>
                        <skipIfEmpty>true</skipIfEmpty>
                    </configuration>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-shade-plugin</artifactId>
                    <version>2.1</version>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-source-plugin</artifactId>
                    <version>2.2.1</version>
                    <executions>
                        <execution>
                            <id>attach-sources</id>
                            <phase>verify</phase>
                            <goals>
                                <goal>jar</goal>
                                <goal>test-jar</goal>
                            </goals>
                        </execution>
                    </executions>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-surefire-plugin</artifactId>
                    <version>2.13</version>
                    <configuration>
                        <argLine>-Xms512m -Xmx1024m -XX:MaxPermSize=512m -XX:MaxDirectMemorySize=512m</argLine>
                        <useManifestOnlyJar>false</useManifestOnlyJar>
                        <systemPropertyVariables>
                            <file.encoding>UTF-8</file.encoding>
                            <user.timezone>GMT</user.timezone>
                            <killbill.version>${killbill.version}</killbill.version>
                        </systemPropertyVariables>
                    </configuration>
                </plugin>
                <plugin>
                    <groupId>org.apache.rat</groupId>
                    <artifactId>apache-rat-plugin</artifactId>
                    <version>0.8</version>
                    <executions>
                        <execution>
                            <phase>verify</phase>
                            <goals>
                                <goal>check</goal>
                            </goals>
                            <configuration>
                                <licenseFamilies>
                                    <licenseFamily implementation="org.apache.rat.license.Apache20LicenseFamily"></licenseFamily>
                                    <!-- Hack, rat 0.9 will have org.apache.rat.analysis.license.MITLicense -->
                                    <licenseFamily implementation="org.apache.rat.license.SimpleLicenseFamily">
                                        <familyName>The MIT License</familyName>
                                    </licenseFamily>
                                </licenseFamilies>
                                <useEclipseDefaultExcludes>true</useEclipseDefaultExcludes>
                                <useIdeaDefaultExcludes>true</useIdeaDefaultExcludes>
                                <useMavenDefaultExcludes>true</useMavenDefaultExcludes>
                                <licenses>
                                    <!-- For server/src/main/webapp/javascripts/html5.js -->
                                    <license implementation="org.apache.rat.analysis.license.SimplePatternBasedLicense">
                                        <licenseFamilyCategory>MIT</licenseFamilyCategory>
                                        <licenseFamilyName>The MIT License</licenseFamilyName>
                                        <patterns>
                                            <pattern>MIT/GPL2 Licensed</pattern>
                                        </patterns>
                                    </license>
                                    <!-- For server/src/main/webapp/javascripts/jquery.min.js -->
                                    <license implementation="org.apache.rat.analysis.license.SimplePatternBasedLicense">
                                        <licenseFamilyCategory>MIT</licenseFamilyCategory>
                                        <licenseFamilyName>The MIT License</licenseFamilyName>
                                        <patterns>
                                            <pattern>jquery.org/license</pattern>
                                        </patterns>
                                    </license>
                                </licenses>
                                <excludes>
                                    <!-- For some reason, useIdeaDefaultExcludes
                                        doesn't pick up .idea directory -->
                                    <exclude>.idea/**</exclude>
                                    <exclude>**/*.iml</exclude>
                                    <exclude>**/.project</exclude>
                                    <exclude>.git/**</exclude>
                                    <exclude>.gitignore</exclude>
                                    <exclude>**/.classpath</exclude>
                                    <exclude>ignore/**</exclude>
                                    <exclude>API.txt</exclude>
                                    <exclude>RELEASE.sh</exclude>
                                    <exclude>deploy.sh</exclude>
                                    <exclude>run.sh</exclude>
                                    <exclude>run-local.sh</exclude>
                                    <exclude>release-script</exclude>
                                    <exclude>doc/**</exclude>
                                    <exclude>src/site/**</exclude>
                                    <exclude>**/*.log</exclude>
                                    <exclude>**/README.*</exclude>
                                    <exclude>TODO</exclude>
                                    <exclude>logs/**</exclude>
                                    <exclude>**/*.bak</exclude>
                                    <exclude>**/*.xsd</exclude>
                                    <exclude>**/*.xml</exclude>
                                    <exclude>**/*.stg</exclude>
                                    <exclude>**/*.sql</exclude>
                                    <exclude>**/*.js</exclude>
                                    <exclude>**/*.css</exclude>
                                    <exclude>**/*.properties</exclude>
                                    <exclude>**/*.dont-let-git-remove-this-directory</exclude>
                                    <exclude>**/test-output/**</exclude>
                                    <exclude>**/bin/**</exclude>
                                    <exclude>**/target/**</exclude>
                                    <exclude>**/.settings/**</exclude>
                                    <exclude>.travis.yml</exclude>
                                    <exclude>bin/**</exclude>
                                    <!-- exclude mustache template files -->
                                    <exclude>**/*.mustache</exclude>
                                    <exclude>examples/**</exclude>
                                    <exclude>Gemfile.lock</exclude>
                                    <exclude>src/main/ruby/kbadmin/**</exclude>
                                    <exclude>**/deb/**</exclude>
                                </excludes>
                            </configuration>
                        </execution>
                    </executions>
                </plugin>
                <plugin>
                    <!-- You need to get it from sonatype-forge (https://repository.sonatype.org/content/groups/sonatype-public-grid/)
                    See also https://issues.sonatype.org/browse/NEXUS-5653 -->
                    <groupId>org.sonatype.plugins</groupId>
                    <artifactId>nexus-staging-maven-plugin</artifactId>
                    <version>1.4.8</version>
                    <extensions>true</extensions>
                </plugin>
            </plugins>
        </pluginManagement>
        <plugins>
            <plugin>
                <groupId>com.google.code.sortpom</groupId>
                <artifactId>maven-sortpom-plugin</artifactId>
                <version>2.1.0</version>
                <executions>
                    <execution>
                        <phase>verify</phase>
                        <goals>
                            <goal>sort</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
                    <encoding>${project.build.sourceEncoding}</encoding>
                    <keepBlankLines>true</keepBlankLines>
                    <lineSeparator>\n</lineSeparator>
                    <nrOfIndentSpace>4</nrOfIndentSpace>
                    <sortDependencies>groupId,artifactId,scope</sortDependencies>
                    <sortPlugins>groupId,artifactId,scope</sortPlugins>
                    <sortProperties>true</sortProperties>
                    <createBackupFile>false</createBackupFile>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-clean-plugin</artifactId>
                <version>2.5</version>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-jar-plugin</artifactId>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-release-plugin</artifactId>
                <version>2.2.1</version>
                <dependencies>
                    <dependency>
                        <groupId>org.apache.maven.scm</groupId>
                        <artifactId>maven-scm-provider-gitexe</artifactId>
                        <version>1.4</version>
                    </dependency>
                    <dependency>
                        <groupId>org.codehaus.plexus</groupId>
                        <artifactId>plexus-utils</artifactId>
                        <version>1.5.9</version>
                    </dependency>
                </dependencies>
                <configuration>
                    <mavenExecutorId>forked-path</mavenExecutorId>
                    <autoVersionSubmodules>true</autoVersionSubmodules>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-resources-plugin</artifactId>
                <version>2.6</version>
            </plugin>
            <plugin>
                <!-- TODO: fix for http://jira.codehaus.org/browse/MSITE-286? -->
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-site-plugin</artifactId>
                <version>3.0</version>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-war-plugin</artifactId>
                <version>2.1.1</version>
                <configuration>
                    <attachClasses>true</attachClasses>
                </configuration>
            </plugin>
        </plugins>
    </build>
    <reporting>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-changelog-plugin</artifactId>
                <version>2.2</version>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-javadoc-plugin</artifactId>
                <version>2.9</version>
                <reportSets>
                    <reportSet>
                        <id>html</id>
                        <reports>
                            <report>javadoc</report>
                        </reports>
                    </reportSet>
                </reportSets>
                <configuration>
                    <source>1.6</source>
                    <encoding>UTF-8</encoding>
                    <maxmemory>1g</maxmemory>
                    <links>
                        <link>http://commons.apache.org/lang/api/</link>
                        <link>http://download.oracle.com/javase/6/docs/api/</link>
                    </links>
                    <linksource>true</linksource>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-jxr-plugin</artifactId>
                <version>2.3</version>
                <configuration>
                    <linkJavadoc>true</linkJavadoc>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-project-info-reports-plugin</artifactId>
                <version>2.6</version>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-report-plugin</artifactId>
                <version>2.13</version>
            </plugin>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>cobertura-maven-plugin</artifactId>
                <version>2.5.2</version>
            </plugin>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>findbugs-maven-plugin</artifactId>
                <version>2.5.2</version>
                <configuration>
                    <threshold>Low</threshold>
                    <effort>Max</effort>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>taglist-maven-plugin</artifactId>
                <version>2.4</version>
                <configuration>
                    <tagListOptions>
                        <tagClasses>
                            <tagClass>
                                <displayName>Todo Work</displayName>
                                <tags>
                                    <tag>
                                        <matchString>todo</matchString>
                                        <matchType>ignoreCase</matchType>
                                    </tag>
                                    <tag>
                                        <matchString>FIXME</matchString>
                                        <matchType>exact</matchType>
                                    </tag>
                                </tags>
                            </tagClass>
                        </tagClasses>
                    </tagListOptions>
                </configuration>
            </plugin>
        </plugins>
    </reporting>
    <profiles>
        <profile>
            <id>h2</id>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-surefire-plugin</artifactId>
                        <configuration>
                            <groups>fast,slow</groups>
                            <excludedGroups>mysql</excludedGroups>
                            <systemPropertyVariables>
                                <com.ning.billing.dbi.test.h2>true</com.ning.billing.dbi.test.h2>
                            </systemPropertyVariables>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
        </profile>
        <profile>
            <id>localtest</id>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-surefire-plugin</artifactId>
                        <configuration>
                            <groups>fast,slow,mysql</groups>
                            <systemPropertyVariables>
                                <com.ning.billing.dbi.test.useLocalDb>true</com.ning.billing.dbi.test.useLocalDb>
                                <com.ning.billing.dbi.jdbc.url>jdbc:mysql://127.0.0.1:3306/killbill</com.ning.billing.dbi.jdbc.url>
                            </systemPropertyVariables>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
        </profile>
        <profile>
            <id>travis</id>
            <build>
                <plugins>
                    <plugin>
                        <groupId>com.ning.maven.plugins</groupId>
                        <artifactId>maven-dependency-versions-check-plugin</artifactId>
                    </plugin>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-dependency-plugin</artifactId>
                    </plugin>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-enforcer-plugin</artifactId>
                    </plugin>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-source-plugin</artifactId>
                    </plugin>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-surefire-plugin</artifactId>
                        <configuration>
                            <groups>fast</groups>
                        </configuration>
                    </plugin>
                    <!-- Comment out the plugin for now. Logs are getting too big on Travis which fails the build,
                         see for example https://api.travis-ci.org/jobs/5172875/log.txt?deansi=true -->
                    <!--<plugin>-->
                    <!--<groupId>com.ning.maven.plugins</groupId>-->
                    <!--<artifactId>maven-duplicate-finder-plugin</artifactId>-->
                    <!--</plugin>-->
                    <plugin>
                        <groupId>org.apache.rat</groupId>
                        <artifactId>apache-rat-plugin</artifactId>
                    </plugin>
                </plugins>
            </build>
        </profile>
        <profile>
            <id>test-stress</id>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-surefire-plugin</artifactId>
                        <configuration>
                            <groups>stress</groups>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
        </profile>
        <profile>
            <id>sonatype-oss-release</id>
            <build>
                <plugins>
                    <plugin>
                        <groupId>com.ning.maven.plugins</groupId>
                        <artifactId>maven-dependency-versions-check-plugin</artifactId>
                    </plugin>
                    <plugin>
                        <groupId>com.ning.maven.plugins</groupId>
                        <artifactId>maven-duplicate-finder-plugin</artifactId>
                    </plugin>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-dependency-plugin</artifactId>
                    </plugin>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-enforcer-plugin</artifactId>
                    </plugin>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <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.apache.maven.plugins</groupId>
                        <artifactId>maven-source-plugin</artifactId>
                    </plugin>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-surefire-plugin</artifactId>
                        <configuration>
                            <skipTests>true</skipTests>
                        </configuration>
                    </plugin>
                    <plugin>
                        <groupId>org.apache.rat</groupId>
                        <artifactId>apache-rat-plugin</artifactId>
                    </plugin>
                    <plugin>
                        <groupId>org.sonatype.plugins</groupId>
                        <artifactId>nexus-staging-maven-plugin</artifactId>
                        <extensions>true</extensions>
                        <configuration>
                            <serverId>ossrh-releases</serverId>
                            <nexusUrl>https://oss.sonatype.org/</nexusUrl>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
        </profile>
        <profile>
            <id>jdk16</id>
            <activation>
                <activeByDefault>true</activeByDefault>
            </activation>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-compiler-plugin</artifactId>
                        <configuration>
                            <source>1.6</source>
                            <target>1.6</target>
                            <showDeprecation>true</showDeprecation>
                            <showWarnings>true</showWarnings>
                            <fork>true</fork>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
        </profile>
        <profile>
            <id>jdk17</id>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-compiler-plugin</artifactId>
                        <configuration>
                            <source>1.7</source>
                            <target>1.7</target>
                            <showDeprecation>true</showDeprecation>
                            <showWarnings>true</showWarnings>
                            <fork>true</fork>
                        </configuration>
                    </plugin>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-jar-plugin</artifactId>
                        <executions>
                            <execution>
                                <goals>
                                    <goal>jar</goal>
                                    <goal>test-jar</goal>
                                </goals>
                                <configuration>
                                    <classifier>jdk17</classifier>
                                </configuration>
                            </execution>
                        </executions>
                        <configuration>
                            <skipIfEmpty>true</skipIfEmpty>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
        </profile>
    </profiles>
</project>
