<?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>6</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.3</version>
  <packaging>jar</packaging>
  <scm>
    <url>scm:svn:https://mybatis.googlecode.com/svn/tags/mybatis-3.0.3</url>
    <connection>scm:svn:https://mybatis.googlecode.com/svn/tags/mybatis-3.0.3</connection>
    <developerConnection>scm:svn:https://mybatis.googlecode.com/svn/tags/mybatis-3.0.3</developerConnection>
  </scm>
  <properties>
    <findbugs.onlyAnalyze>org.apache.ibatis.*</findbugs.onlyAnalyze>
    <clirr.comparisonVersion>3.0.2</clirr.comparisonVersion>
  </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.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.2</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>
    </plugins>
    <resources>
      <resource>
        <directory>.</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>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.1_3</version>
      <optional>true</optional>
    </dependency>
    <!-- Test dependencies -->
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>4.3.1</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>
    </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>
  </dependencies>
</project>
