<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  <parent>
    <groupId>org.mybatis</groupId>
    <artifactId>mybatis-parent</artifactId>
    <version>10</version>
  </parent>
  <modelVersion>4.0.0</modelVersion>
  <artifactId>mybatis</artifactId>
  <name>mybatis</name>
  <description>
    The mybatis data mapper framework makes it easier to use a relational database with object-oriented
    applications. mybatis couples objects with stored procedures or SQL statements using a XML descriptor or
    annotations. Simplicity is the biggest advantage of the mybatis data mapper over object relational mapping
    tools.
  </description>
  <version>3.0.5</version>
  <packaging>jar</packaging>
  <scm>
    <url>scm:svn:https://mybatis.googlecode.com/svn/tags/mybatis-3.0.5</url>
    <connection>scm:svn:https://mybatis.googlecode.com/svn/tags/mybatis-3.0.5</connection>
    <developerConnection>scm:svn:https://mybatis.googlecode.com/svn/tags/mybatis-3.0.5</developerConnection>
  </scm>
  <contributors>
    <contributor>
        <name>Andrea Selva</name>
        <email>selva.andre@gmail.com</email>
    </contributor>
    <contributor>
        <name>Arkadi Shishlov</name>
        <email>arkadi.shishlov@gmail.com</email>
    </contributor>
    <contributor>
        <name>Franta Mejta</name>
        <email>mejta@rewor.org</email>
    </contributor>
    <contributor>
        <name>Riccardo Cossu</name>
        <email>riccardo.cossu@gmail.com</email>
    </contributor>
  </contributors>
  <properties>
    <findbugs.onlyAnalyze>org.apache.ibatis.*</findbugs.onlyAnalyze>
    <clirr.comparisonVersion>3.0.3</clirr.comparisonVersion>
    <osgi.export>org.apache.ibatis.*;version=${project.version};-noimport:=true</osgi.export>
    <osgi.import>net.sf.cglib.proxy;resolution:=optional,org.apache.commons.logging;resolution:=optional,org.apache.log4j;resolution:=optional,org.slf4j;resolution:=optional,*</osgi.import>
    <osgi.dynamicImport>*</osgi.dynamicImport>
  </properties>
  <reporting>
    <plugins>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>cobertura-maven-plugin</artifactId>
        <version>2.2</version>
        <configuration>
          <formats>
            <format>html</format>
            <format>xml</format>
          </formats>
        </configuration>
      </plugin>
    </plugins>
  </reporting>
  <build>
    <plugins>
      <plugin>
        <groupId>org.sonatype.plugins</groupId>
        <artifactId>jarjar-maven-plugin</artifactId>
        <configuration>
          <includes>
            <include>ognl:ognl</include>
          </includes>
          <rules>
            <rule>
              <pattern>ognl.**</pattern>
              <result>org.apache.ibatis.ognl.@1</result>
            </rule>
            <keep>
              <pattern>org.apache.ibatis.**</pattern>
            </keep>
          </rules>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>appassembler-maven-plugin</artifactId>
        <version>1.1.1</version>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>assemble</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <repositoryLayout>flat</repositoryLayout>
          <repositoryName>lib</repositoryName>
          <extraJvmArguments>-Xms500m -Xmx500m -XX:PermSize=128m -XX:-UseGCOverheadLimit</extraJvmArguments>
          <binFileExtensions>
            <windows>.cmd</windows>
          </binFileExtensions>
          <programs>
            <program>
              <mainClass>org.apache.ibatis.migration.Migrator</mainClass>
              <name>migrate</name>
            </program>
          </programs>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-assembly-plugin</artifactId>
        <executions>
          <execution>
            <goals>
              <goal>single</goal>
            </goals>
            <phase>package</phase>
            <configuration>
              <descriptors>
                <descriptor>${basedir}/src/main/assembly/bundle.xml</descriptor>
                <descriptor>${basedir}/src/main/assembly/migrations.xml</descriptor>
              </descriptors>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>com.googlecode.maven-gcu-plugin</groupId>
        <artifactId>maven-gcu-plugin</artifactId>
        <executions>
          <execution>
            <phase>deploy</phase>
            <goals>
              <goal>upload</goal>
            </goals>
            <configuration>
              <uploads>
                <!--
                 | Core
                -->
                <upload>
                  <file>${project.build.directory}/${project.artifactId}-${project.version}-bundle.zip</file>
                  <summary>MyBatis Persistence Framework ${project.version}</summary>
                  <labels>
                    <label>Featured</label>
                    <label>Type-Archive</label>
                    <label>Product-MyBatis</label>
                    <label>Version-${project.version}</label>
                  </labels>
                </upload>
                <upload>
                  <file>${project.build.directory}/doc/en/MyBatis-3-User-Guide.pdf</file>
                  <summary>MyBatis Persistence Framework ${project.version} - User Guide (English)</summary>
                  <labels>
                    <label>Featured</label>
                    <label>Type-Docs</label>
                    <label>Product-MyBatis</label>
                    <label>Version-${project.version}</label>
                  </labels>
                </upload>
                <upload>
                  <file>${project.build.directory}/doc/zh_cn/MyBatis 3 User Guide Simplified Chinese.pdf</file>
                  <summary>MyBatis Persistence Framework ${project.version} - User Guide (Simplified Chinese)</summary>
                  <labels>
                    <label>Featured</label>
                    <label>Type-Docs</label>
                    <label>Product-MyBatis</label>
                    <label>Version-${project.version}</label>
                  </labels>
                </upload>
                <!--
                 | Migrations
                -->
                <upload>
                  <file>${project.build.directory}/${project.artifactId}-${project.version}-migrations.zip</file>
                  <summary>MyBatis Schema Migrations ${project.version}</summary>
                  <labels>
                    <label>Featured</label>
                    <label>Type-Archive</label>
                    <label>Product-Migrations</label>
                    <label>Version-${project.version}</label>
                  </labels>
                </upload>
                <upload>
                  <file>${project.build.directory}/${project.artifactId}-${project.version}-migrations.zip</file>
                  <summary>MyBatis Schema Migrations ${project.version} - User Guide</summary>
                  <labels>
                    <label>Featured</label>
                    <label>Type-Docs</label>
                    <label>Product-Migrations</label>
                    <label>Version-${project.version}</label>
                  </labels>
                </upload>
              </uploads>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>cobertura-maven-plugin</artifactId>
        <version>2.5</version>
        <configuration>
          <instrumentation>
            <ignores>
              <ignore>org.apache.ibatis.ognl.*</ignore>
            </ignores>
            <excludes>
              <exclude>org/apache/ibatis/ognl/**/*.class</exclude>
            </excludes>
          </instrumentation>
        </configuration>
        <executions>
          <execution>
            <goals>
              <goal>clean</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-surefire-plugin</artifactId>
        <configuration>
          <forkMode>pertest</forkMode>
        </configuration>
      </plugin>
    </plugins>
    <resources>
      <resource>
        <directory>${basedir}</directory>
        <targetPath>META-INF</targetPath>
        <includes>
          <include>LICENSE</include>
          <include>NOTICE</include>
        </includes>
      </resource>
      <resource>
        <directory>${project.build.sourceDirectory}</directory>
        <excludes>
          <exclude>**/*.java</exclude>
        </excludes>
      </resource>
    </resources>
    <testResources>
      <testResource>
        <directory>${project.build.testSourceDirectory}</directory>
        <excludes>
          <exclude>**/*.java</exclude>
        </excludes>
      </testResource>
    </testResources>
  </build>
  <dependencies>
    <dependency>
      <groupId>ognl</groupId>
      <artifactId>ognl</artifactId>
      <version>2.6.9</version>
      <scope>provided</scope>
      <optional>true</optional>
    </dependency>
    <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>slf4j-api</artifactId>
      <version>1.5.8</version>
      <optional>true</optional>
    </dependency>
    <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>slf4j-log4j12</artifactId>
      <version>1.5.8</version>
      <optional>true</optional>
    </dependency>
    <dependency>
      <groupId>log4j</groupId>
      <artifactId>log4j</artifactId>
      <version>1.2.13</version>
      <optional>true</optional>
    </dependency>
    <dependency>
      <groupId>commons-logging</groupId>
      <artifactId>commons-logging</artifactId>
      <version>1.1.1</version>
      <optional>true</optional>
    </dependency>
    <dependency>
      <groupId>cglib</groupId>
      <artifactId>cglib</artifactId>
      <version>2.2</version>
      <optional>true</optional>
    </dependency>
    <!-- Test dependencies -->
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>4.8.2</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.hsqldb</groupId>
      <artifactId>hsqldb</artifactId>
      <version>2.0.0</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.apache.derby</groupId>
      <artifactId>derby</artifactId>
      <version>10.3.2.1</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.jmock</groupId>
      <artifactId>jmock-junit4</artifactId>
      <version>2.1.0</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.jmock</groupId>
      <artifactId>jmock-legacy</artifactId>
      <version>2.1.0</version>
      <scope>test</scope>
      <exclusions>
        <exclusion>
          <groupId>cglib</groupId>
          <artifactId>cglib-nodep</artifactId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>commons-dbcp</groupId>
      <artifactId>commons-dbcp</artifactId>
      <version>1.2.1</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>geronimo-spec</groupId>
      <artifactId>geronimo-spec-jta</artifactId>
      <version>1.0.1B-rc4</version>
      <scope>test</scope>
    </dependency>
    <!-- postgresql driver is required to run the refcursor tests -->
    <dependency>
      <groupId>postgresql</groupId>
      <artifactId>postgresql</artifactId>
      <version>9.0-801.jdbc3</version>
      <scope>test</scope>
    </dependency>
  </dependencies>
</project>
