<?xml version="1.0" encoding="UTF-8"?>
<!--
  Copyright 2010-2012 The MyBatis Team

  Licensed 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.
-->

<!--
  version: $Id: pom.xml 5133 2012-04-10 19:09:36Z simone.tripodi $
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">

  <parent>
    <groupId>org.mybatis</groupId>
    <artifactId>mybatis-parent</artifactId>
    <version>15</version>
  </parent>

  <modelVersion>4.0.0</modelVersion>
  <artifactId>mybatis-guice</artifactId>
  <name>MyBatis Guice</name>
  <description>The MyBatis Guice module is easy-to-use Google Guice bridge for MyBatis sql mapping framework.</description>
  <version>3.3</version>
  <packaging>jar</packaging>
  <url>http://www.mybatis.org/guice/${project.version}</url>

  <contributors>
    <contributor>
      <name>Stephen Friedrich</name>
      <email>stephen dot friedrich at fortis-it dot eu</email>
    </contributor>

    <contributor>
      <name>Marzia Forli</name>
      <email>marzia dot forli at yahoo dot com</email>
    </contributor>

    <contributor>
      <name>Nino Martinez Wael</name>
      <email>nino dot martinez dot wael at gmail dot com</email>
    </contributor>
  </contributors>

  <scm>
    <url>scm:svn:http://mybatis.googlecode.com/svn/sub-projects/mybatis-guice/tags/mybatis-guice-3.3</url>
    <connection>scm:svn:https://mybatis.googlecode.com/svn/sub-projects/mybatis-guice/tags/mybatis-guice-3.3</connection>
    <developerConnection>scm:svn:https://mybatis.googlecode.com/svn/sub-projects/mybatis-guice/tags/mybatis-guice-3.3</developerConnection>
  </scm>
  <distributionManagement>
    <!-- Cannot define in parent ATM, see COMMONSSITE-26 -->
    <site>
      <id>mybatis.site</id>
      <!--
       | make it overridible, FTP is terribly slow when launched from Maven Wagon
       | an alternative strategy could be deploying the site locally
       |
       |    -Dsite.deploymentUrl=file://...
       |
       | then async redeploying it via Filezilla/whatelese
      -->
      <url>${site.deploymentUrl}</url>
    </site>
  </distributionManagement>

  <properties>
    <findbugs.onlyAnalyze>org.mybatis.guice.*</findbugs.onlyAnalyze>
    <guice.version>3.0</guice.version>
    <gcu.product>Guice</gcu.product>
    <osgi.import>com.jolbox.bonecp;resolution:=optional,com.mchange.v2.c3p0;resolution:=optional,org.apache.commons.dbcp;resolution:=optional,
    org.apache.commons.dbcp.cpdsadapter;resolution:=optional,org.apache.commons.dbcp.datasources;resolution:=optional,*</osgi.import>
    <!--
     | see distributionManagement.site.url
    -->
    <site.deploymentUrl>ftp://${mybatis.host}/guice/</site.deploymentUrl>
  </properties>

  <dependencies>
    <!--
     | Provided dependencies
    -->
    <dependency>
      <groupId>org.mybatis</groupId>
      <artifactId>mybatis</artifactId>
      <version>3.1.0</version>
      <scope>provided</scope>
    </dependency>

    <dependency>
      <groupId>com.google.inject</groupId>
      <artifactId>guice</artifactId>
      <version>${guice.version}</version>
      <scope>provided</scope>
    </dependency>

    <!--
     | Compile dependencies
    -->
    <dependency>
      <groupId>javax.inject</groupId>
      <artifactId>javax.inject</artifactId>
      <version>1</version>
      <scope>compile</scope>
    </dependency>

    <dependency>
      <groupId>com.google.inject.extensions</groupId>
      <artifactId>guice-multibindings</artifactId>
      <version>${guice.version}</version>
      <scope>compile</scope>
    </dependency>

    <dependency>
      <groupId>aopalliance</groupId>
      <artifactId>aopalliance</artifactId>
      <version>1.0</version>
      <scope>compile</scope>
    </dependency>

    <!--
     | Optional dependencies
    -->
    <dependency>
      <groupId>c3p0</groupId>
      <artifactId>c3p0</artifactId>
      <version>0.9.1.2</version>
      <optional>true</optional>
    </dependency>

    <dependency>
      <groupId>commons-dbcp</groupId>
      <artifactId>commons-dbcp</artifactId>
      <version>1.4</version>
      <optional>true</optional>
    </dependency>

    <dependency>
      <groupId>com.jolbox</groupId>
      <artifactId>bonecp</artifactId>
      <version>0.7.1.RELEASE</version>
      <optional>true</optional>
    </dependency>

    <!--
     | Test dependencies
    -->
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>4.10</version>
      <scope>test</scope>
    </dependency>

    <dependency>
      <groupId>org.hsqldb</groupId>
      <artifactId>hsqldb</artifactId>
      <version>2.2.4</version>
      <scope>test</scope>
    </dependency>

    <dependency>
      <groupId>log4j</groupId>
      <artifactId>log4j</artifactId>
      <version>1.2.16</version>
      <scope>test</scope>
      <exclusions>
        <exclusion>
          <groupId>com.sun.jdmk</groupId>
          <artifactId>jmxtools</artifactId>
        </exclusion>
        <exclusion>
          <groupId>com.sun.jmx</groupId>
          <artifactId>jmxri</artifactId>
        </exclusion>
        <exclusion>
          <groupId>javax.jms</groupId>
          <artifactId>jms</artifactId>
        </exclusion>
        <exclusion>
          <groupId>javax.mail</groupId>
          <artifactId>mail</artifactId>
        </exclusion>
        <exclusion>
          <groupId>junit</groupId>
          <artifactId>junit</artifactId>
        </exclusion>
        <exclusion>
          <groupId>oro</groupId>
          <artifactId>oro</artifactId>
        </exclusion>
      </exclusions>
    </dependency>
  </dependencies>

  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-pdf-plugin</artifactId>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-release-plugin</artifactId>
        <configuration>
          <arguments>-Prelease,bundle,gupload</arguments>
        </configuration>
      </plugin>
    </plugins>
  </build>

</project>
