<?xml version="1.0" encoding="UTF-8"?>
<!--
    Copyright 2010 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 2607 2010-10-01 21:04:06Z 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.sonatype.oss</groupId>
        <artifactId>oss-parent</artifactId>
        <version>5</version>
    </parent>

    <modelVersion>4.0.0</modelVersion>
    <groupId>org.mybatis</groupId>
    <artifactId>mybatis-parent</artifactId>
    <name>MyBatis parent POM</name>
    <description>The MyBatis parent POM.</description>
    <version>1.0.1</version>
    <packaging>pom</packaging>
    <url>http://www.mybatis.org/</url>
    <inceptionYear>2010</inceptionYear>

    <organization>
        <name>MyBatis.org</name>
        <url>http://www.mybatis.org/</url>
    </organization>

    <licenses>
        <license>
            <name>The Apache Software License, Version 2.0</name>
            <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
            <distribution>repo</distribution>
        </license>
    </licenses>

    <issueManagement>
        <system>Google-Code Issue Management</system>
        <url>http://code.google.com/p/mybatis/issues/</url>
    </issueManagement>

    <mailingLists>
        <mailingList>
            <name>mybatis-dev</name>
            <archive>http://groups.google.com/group/mybatis-dev/topics</archive>
            <subscribe>http://groups.google.com/group/mybatis-dev/subscribe</subscribe>
            <unsubscribe>http://groups.google.com/group/mybatis-dev/subscribe</unsubscribe>
            <post>mybatis-dev@googlegroups.com</post>
        </mailingList>

        <mailingList>
            <name>mybatis-user</name>
            <archive>http://groups.google.com/group/mybatis-user/topics</archive>
            <subscribe>http://groups.google.com/group/mybatis-user/subscribe</subscribe>
            <unsubscribe>http://groups.google.com/group/mybatis-user/subscribe</unsubscribe>
            <post>mybatis-user@googlegroups.com</post>
        </mailingList>

        <mailingList>
            <name>mybatis-commits</name>
            <archive>http://groups.google.com/group/mybatis-commits/topics</archive>
            <subscribe>http://groups.google.com/group/mybatis-commits/subscribe</subscribe>
            <unsubscribe>http://groups.google.com/group/mybatis-commits/subscribe</unsubscribe>
            <post>mybatis-commits@googlegroups.com</post>
        </mailingList>
    </mailingLists>

    <developers>
        <developer>
            <id>clinton.begin</id>
            <name>Clinton Begin</name>
            <email>clinton.begin@gmail.com</email>
            <roles>
                <role>Owner</role>
                <role>Committer</role>
            </roles>
        </developer>

        <developer>
            <id>brandon.goodin</id>
            <name>Brandon Goodin</name>
            <email>brandon.goodin@gmail.com</email>
            <roles>
                <role>Committer</role>
            </roles>
        </developer>

        <developer>
            <id>christian.poitras@ircm.qc.ca</id>
            <name>Christian Poitras</name>
            <email>christian.poitras@ircm.qc.ca</email>
            <timezone>-5</timezone>
            <roles>
                <role>Committer</role>
            </roles>
        </developer>

        <developer>
            <id>eduardo.macarron</id>
            <name>Eduardo Macarron</name>
            <email>eduardo.macarron@gmail.com</email>
            <roles>
                <role>Committer</role>
            </roles>
        </developer>

        <developer>
            <id>jeffgbutler</id>
            <name>Jeff Butler</name>
            <email>jeffgbutler@gmail.com</email>
            <roles>
                <role>Committer</role>
            </roles>
        </developer>

        <developer>
            <id>nospam@kaigrabfelder.de</id>
            <name>Kai Grabfelder</name>
            <email>nospam@kaigrabfelder.de</email>
            <roles>
                <role>Committer</role>
            </roles>
        </developer>

        <developer>
            <id>larry.meadors</id>
            <name>Larry Meadors</name>
            <email>larry.meadors@gmail.com</email>
            <roles>
                <role>Committer</role>
            </roles>
        </developer>

        <developer>
            <id>marco.speranza79</id>
            <name>Marco Speranza</name>
            <email>marco.speranza79@gmail.com</email>
            <timezone>+1</timezone>
            <roles>
                <role>Committer</role>
            </roles>
        </developer>

        <developer>
            <id>nathan.maves</id>
            <name>Nathan Maves</name>
            <email>nathan.maves@gmail.com</email>
            <roles>
                <role>Committer</role>
            </roles>
        </developer>

        <developer>
            <id>putthibongb</id>
            <name>Putthibong Boonbong</name>
            <email>putthibongb@gmail.com</email>
            <roles>
                <role>Committer</role>
            </roles>
        </developer>

        <developer>
            <id>simone.tripodi</id>
            <name>Simone Tripodi</name>
            <email>simone.tripodi@gmail.com</email>
            <timezone>+1</timezone>
            <roles>
                <role>Committer</role>
            </roles>
        </developer>
    </developers>

    <scm>
        <url>scm:svn:http://mybatis.googlecode.com/svn/sub-projects/mybatis-parent/tags/mybatis-parent-1.0.1</url>
        <connection>scm:svn:https://mybatis.googlecode.com/svn/sub-projects/mybatis-parent/tags/mybatis-parent-1.0.1</connection>
        <developerConnection>scm:svn:https://mybatis.googlecode.com/svn/sub-projects/mybatis-parent/tags/mybatis-parent-1.0.1</developerConnection>
    </scm>

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

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-project-info-reports-plugin</artifactId>
                <version>2.2</version>
            </plugin>

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-jxr-plugin</artifactId>
                <version>2.1</version>
            </plugin>

            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>jdepend-maven-plugin</artifactId>
                <version>2.0-beta-2</version>
            </plugin>

            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>findbugs-maven-plugin</artifactId>
                <version>2.3.1</version>
                <configuration>
                    <xmlOutput>true</xmlOutput>
                    <xmlOutputDirectory>target/findbugs-reports</xmlOutputDirectory>
                    <findbugsXmlOutput>target/findbugs-reports</findbugsXmlOutput>
                    <threshold>High</threshold>
                    <effort>Max</effort>
                    <visitors>FindDeadLocalStores,UnreadFields</visitors>
                    <onlyAnalyze>${findbugs.onlyAnalyze}</onlyAnalyze>
                    <debug>true</debug>
                    <relaxed>true</relaxed>
                </configuration>
            </plugin>

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-report-plugin</artifactId>
                <version>2.5</version>
            </plugin>

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-changes-plugin</artifactId>
                <version>2.3</version>
                <configuration>
                    <issueLinkTemplate>%URL%/detail?id=%ISSUE%</issueLinkTemplate>
                </configuration>
                <reportSets>
                    <reportSet>
                        <reports>
                            <report>changes-report</report>
                        </reports>
                    </reportSet>
                </reportSets>
            </plugin>

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-pmd-plugin</artifactId>
                <version>2.3</version>
                <configuration>
                    <linkXref>true</linkXref>
                    <minimumTokens>100</minimumTokens>
                    <targetJdk>1.5</targetJdk>
                </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>ignoreCase</matchType>
                                    </tag>
                                </tags>
                            </tagClass>
                        </tagClasses>
                    </tagListOptions>
                </configuration>
            </plugin>
        </plugins>
    </reporting>

    <build>
        <plugins>
            <plugin>
                <artifactId>maven-clean-plugin</artifactId>
                <version>2.4.1</version>
            </plugin>

            <plugin>
                <artifactId>maven-deploy-plugin</artifactId>
                <version>2.5</version>
            </plugin>

            <plugin>
                <artifactId>maven-install-plugin</artifactId>
                <version>2.3</version>
            </plugin>

            <plugin>
                <artifactId>maven-resources-plugin</artifactId>
                <version>2.3</version>
            </plugin>

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-remote-resources-plugin</artifactId>
                <version>1.1</version>
                <executions>
                    <execution>
                        <phase>generate-resources</phase>
                        <goals>
                            <goal>process</goal>
                        </goals>
                        <configuration>
                            <attached>false</attached>
                            <outputDirectory>${project.build.directory}/docbkx</outputDirectory>
                            <resourceBundles>
                                <resourceBundle>org.mybatis:mybatis-docbook:1.0.0</resourceBundle>
                            </resourceBundles>
                        </configuration>
                    </execution>
                </executions>
            </plugin>

            <plugin>
                <artifactId>maven-jar-plugin</artifactId>
                <version>2.3.1</version>
                <configuration>
                    <archive>
                        <manifest>
                            <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
                            <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
                        </manifest>
                        <manifestEntries>
                            <Implementation-Build>${buildNumber}</Implementation-Build>
                        </manifestEntries>
                    </archive>
                </configuration>
            </plugin>

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-enforcer-plugin</artifactId>
                <version>1.0-beta-1</version>
                <executions>
                    <execution>
                        <id>enforce-java</id>
                        <phase>validate</phase>
                        <goals>
                            <goal>enforce</goal>
                        </goals>
                        <configuration>
                            <rules>
                                <requireJavaVersion>
                                    <version>[1.5,)</version>
                                </requireJavaVersion>
                                <requireMavenVersion>
                                    <version>[2.2.0,)</version>
                                </requireMavenVersion>
                                <requirePluginVersions>
                                    <message>Best Practice is to always define plugin versions!</message>
                                    <banLatest>true</banLatest>
                                    <banRelease>true</banRelease>
                                    <banSnapshots>true</banSnapshots>
                                    <phases>clean,deploy,site</phases>
                                </requirePluginVersions>
                                <requireProperty>
                                    <property>findbugs.onlyAnalyze</property>
                                    <message>You must set the property 'findbugs.onlyAnalyze' in your project pom!</message>
                                </requireProperty>
                            </rules>
                        </configuration>
                    </execution>
                </executions>
            </plugin>

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>2.3.1</version>
                <configuration>
                    <source>1.5</source>
                    <target>1.5</target>
                    <encoding>${project.build.sourceEncoding}</encoding>
                </configuration>
            </plugin>

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <version>2.4.3</version>
            </plugin>

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-site-plugin</artifactId>
                <version>2.1.1</version>
                <configuration>
                    <outputEncoding>${project.reporting.outputEncoding}</outputEncoding>
                </configuration>
            </plugin>
        </plugins>

        <pluginManagement>
            <plugins>
                <plugin>
                    <groupId>com.agilejava.docbkx</groupId>
                    <artifactId>docbkx-maven-plugin</artifactId>
                    <version>2.0.7</version>
                    <dependencies>
                        <dependency>
                            <groupId>org.docbook</groupId>
                            <artifactId>docbook-xml</artifactId>
                            <version>4.4</version>
                            <scope>runtime</scope>
                        </dependency>
                    </dependencies>
                    <configuration>
                        <xincludeSupported>true</xincludeSupported>
                        <paperType>A4</paperType>
                        <sourceDirectory>${basedir}/src/docbkx</sourceDirectory>
                        <foCustomization>${project.build.directory}/docbkx/xsl/fopdf.xsl</foCustomization>
                        <useExtensions>1</useExtensions>
                        <highlightSource>1</highlightSource>
                        <highlightDefaultLanguage />
                        <calloutsExtension>1</calloutsExtension>
                    </configuration>
                </plugin>

                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-assembly-plugin</artifactId>
                    <version>2.2-beta-5</version>
                    <configuration>
                        <attach>false</attach>
                    </configuration>
                </plugin>

                <plugin>
                    <groupId>com.googlecode.maven-gcu-plugin</groupId>
                    <artifactId>maven-gcu-plugin</artifactId>
                    <version>1.0</version>
                    <configuration>
                        <failsOnError>true</failsOnError>
                        <projectName>mybatis</projectName>
                    </configuration>
                </plugin>
            </plugins>
        </pluginManagement>

        <resources>
            <resource>
                <directory>src/main/resources</directory>
                <filtering>true</filtering>
            </resource>

            <resource>
                <directory>.</directory>
                <targetPath>META-INF</targetPath>
                <includes>
                    <include>LICENSE</include>
                    <include>NOTICE</include>
                </includes>
            </resource>
        </resources>
    </build>

    <profiles>
        <profile>
            <id>parent-release</id>
            <activation>
                <activeByDefault>false</activeByDefault>
            </activation>
            <properties>
                <enforcer.skip>true</enforcer.skip>
            </properties>
        </profile>

        <profile>
            <id>sonatype-oss-release</id>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.codehaus.mojo</groupId>
                        <artifactId>buildnumber-maven-plugin</artifactId>
                        <version>1.0-beta-4</version>
                        <executions>
                            <execution>
                                <phase>validate</phase>
                                <goals>
                                    <goal>create</goal>
                                </goals>
                            </execution>
                        </executions>
                        <configuration>
                            <doCheck>true</doCheck>
                            <doUpdate>true</doUpdate>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
        </profile>

        <profile>
            <id>docbook</id>
            <activation>
                <activeByDefault>false</activeByDefault>
            </activation>
            <build>
                <plugins>
                    <plugin>
                        <groupId>com.agilejava.docbkx</groupId>
                        <artifactId>docbkx-maven-plugin</artifactId>
                        <executions>
                            <execution>
                                <goals>
                                    <goal>generate-pdf</goal>
                                </goals>
                                <phase>package</phase>
                                <configuration>
                                    <includes>index.xml</includes>
                                    <postProcess>
                                        <move file="${project.build.directory}/docbkx/pdf/index.pdf" tofile="${project.build.directory}/docbkx/pdf/${project.artifactId}-${project.version}-reference.pdf" failonerror="false" />
                                    </postProcess>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>

        <profile>
            <id>bundle</id>
            <activation>
                <activeByDefault>false</activeByDefault>
            </activation>
            <build>
                <plugins>
                    <plugin>
                        <artifactId>maven-assembly-plugin</artifactId>
                        <dependencies>
                            <dependency>
                                <groupId>org.mybatis</groupId>
                                <artifactId>base-bundle-descriptor</artifactId>
                                <version>1.0.1</version>
                            </dependency>
                        </dependencies>
                        <executions>
                            <execution>
                                <goals>
                                    <goal>assembly</goal>
                                </goals>
                                <phase>package</phase>
                                <configuration>
                                    <descriptors>
                                        <descriptor>base-bundle.xml</descriptor>
                                    </descriptors>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>

        <profile>
            <id>gupload</id>
            <activation>
                <activeByDefault>false</activeByDefault>
            </activation>
            <build>
                <plugins>
                    <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>
                                         <upload>
                                            <file>${project.build.directory}/${project.artifactId}-${project.version}-bundle.zip</file>
                                            <summary>${project.description} ${project.version} release</summary>
                                            <labels>
                                                <label>Featured</label>
                                                <label>Type-Archive</label>
                                            </labels>
                                        </upload>
                                    </uploads>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>
    </profiles>

    <properties>
        <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
    </properties>

</project>
