<?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">
  <modelVersion>4.0.0</modelVersion>
  <groupId>org.xerial</groupId>
  <artifactId>xerial-project</artifactId>
  <version>1.0</version>
  <description>Xerial Project</description>
  <packaging>pom</packaging>
  <name>Xerial Project</name>

  <parent>
    <groupId>org.xerial</groupId>
    <artifactId>xerial</artifactId>
    <version>1</version>
  </parent>

  <modules>
    <module>xerial-raquel</module>
    <module>xerial-core</module>
    <module>xerial-storage</module>
    <module>xerial-wiki</module>
    <module>tomcat-server</module>
    <module>sqlite-jdbc</module>
    <module>maven-plugin/maven-antlr-plugin</module>
  </modules>

  <scm>
    <connection>scm:svn:http://www.xerial.org/svn/project/XerialJ/trunk</connection>
    <developerConnection>scm:svn:https://www.xerial.org/svn/project/XerialJ/trunk</developerConnection>
    <url>http://www.xerial.org/svn/project/XerialJ/trunk</url>
  </scm>

  <url>http://www.xerial.org/maven/repository/site/xerial</url>

  <dependencies>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>4.1</version>
      <scope>test</scope>
    </dependency>
  </dependencies>

  <reporting>
    <plugins>

      <!-- JUnit test report -->
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-surefire-report-plugin</artifactId>
      </plugin>

      <!-- Javadoc -->
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-javadoc-plugin</artifactId>
        <version>2.2</version>
        <configuration>
          <doctitle>${project.artifactId}-${project.version} API</doctitle>
	  <windowtitle>${project.artifactId}-${project.version} Javadoc</windowtitle>
          <aggregate>false</aggregate>
          <locale>en_US</locale>
          <stylesheetfile>${basedir}/target/xerial-style/javadoc.css</stylesheetfile>
	  <overview>${basedir}/target/xerial-style/overview.html</overview>
          <bottom><![CDATA[<a rel="license" href="http://creativecommons.org/licenses/by-sa/2.1/jp/"><img alt="Creative Commons License" border="0" src="http://creativecommons.org/images/public/somerights20.gif" /></a><br />This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-sa/2.1/jp/">Creative Commons Attribution-ShareAlike 2.1 Japan License</a>.<!--<rdf:RDF xmlns="http://web.resource.org/cc/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><Work rdf:about=""><dc:date>2005</dc:date><dc:rights><Agent><dc:title>Taro L. Saito</dc:title></Agent></dc:rights><license rdf:resource="http://creativecommons.org/licenses/by-sa/2.1/jp/" /></Work><License rdf:about="http://creativecommons.org/licenses/by-sa/2.1/jp/"><permits rdf:resource="http://web.resource.org/cc/Reproduction" /><permits rdf:resource="http://web.resource.org/cc/Distribution" /><requires rdf:resource="http://web.resource.org/cc/Notice" /><requires rdf:resource="http://web.resource.org/cc/Attribution" /><permits rdf:resource="http://web.resource.org/cc/DerivativeWorks" /><requires rdf:resource="http://web.resource.org/cc/ShareAlike" /></License></rdf:RDF>-->]]></bottom>
	  <excludePackageNames>*.impl</excludePackageNames>
	  <groups>
            <group>
              <title>Xerial Core</title>
              <packages>org.xerial.util*:org.xerial.core*</packages>
            </group>
            <group>
              <title>Xerial JSON</title>
              <packages>org.xerial.json*</packages>
            </group>
            <group>
              <title>Xerial Raquel</title>
              <packages>org.xerial.raquel*</packages>
            </group>
            <group>
              <title>Xerial Storage</title>
              <packages>org.xerial.db*</packages>
            </group>
            <group>
              <title>Xerial Maven Plugin</title>
              <packages>org.xerial.maven*</packages>
            </group>
            <group>
              <title>Xerial Tomcat Server</title>
              <packages>org.xerial.tomcat*</packages>
            </group>
          </groups>
	  <links>
	    <link>http://java.sun.com/javase/6/docs/api</link>
	    <link>http://www.antlr.org/api/Java</link>
	  </links>
        </configuration>
      </plugin>

      <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-jxr-plugin</artifactId>
	 <configuration>
           <aggregate>true</aggregate>
         </configuration>
      </plugin>

      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-surefire-report-plugin</artifactId>
      </plugin>
    </plugins>
  </reporting>


  <build>
    <!-- this settings are requried to include source codes to the generated jar files -->
    <resources>
      <resource>
        <directory>src/main/java</directory>
      </resource>
      <resource>
        <directory>src/main/resources</directory>
      </resource>
    </resources>
    <testResources>
      <testResource>
        <directory>src/test/java</directory>
      </testResource>
      <testResource>
        <directory>src/test/resources</directory>
      </testResource>
    </testResources>

    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-dependency-plugin</artifactId>
        <executions>
          <execution>
            <id>retrieve-xerial-style</id>
            <phase>generate-sources</phase>
            <goals>
              <goal>unpack</goal>
            </goals>
            <configuration>
              <artifactItems>
                <artifactItem>
                  <groupId>org.xerial</groupId>
                  <artifactId>xerial-style</artifactId>
                  <version>1.0</version>
                  <type>jar</type>
                </artifactItem>
              </artifactItems>
              <outputDirectory>${basedir}/target/xerial-style</outputDirectory>
            </configuration>
          </execution>
        </executions>
      </plugin>

      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <configuration>
          <source>1.5</source>
          <target>1.5</target>
        </configuration>
      </plugin>
    </plugins>

  </build>


</project>

