<?xml version="1.0"?>
<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/xsd/maven-4.0.0.xsd">
   <modelVersion>4.0.0</modelVersion>
   <properties>
      <jbosscache-core-version>2.1.0.CR3</jbosscache-core-version>
   </properties>
   <parent>
      <groupId>org.jboss.cache</groupId>
      <artifactId>jbosscache-common-parent</artifactId>
      <version>1.1-SNAPSHOT</version>
   </parent>
   <groupId>org.jboss.cache</groupId>
   <artifactId>jbosscache-core</artifactId>
   <version>${jbosscache-core-version}</version>
   <name>JBoss Cache - Core Edition</name>
   <description>JBoss Cache - Core Edition</description>
   <packaging>jar</packaging>
   <dependencies>
      <dependency>
         <groupId>jgroups</groupId>
         <artifactId>jgroups</artifactId>
         <version>2.6.1</version>
      </dependency>
      <dependency>
         <groupId>jdbm</groupId>
         <artifactId>jdbm</artifactId>
         <version>1.0</version>
      </dependency>
      <dependency>
         <groupId>c3p0</groupId>
         <artifactId>c3p0</artifactId>
         <version>0.9.1.1</version>
      </dependency>
      <dependency>
         <groupId>commons-logging</groupId>
         <artifactId>commons-logging</artifactId>
         <version>1.0.4</version>
      </dependency>
      <dependency>
         <groupId>sleepycat</groupId>
         <artifactId>je</artifactId>
         <version>1.7.0</version>
      </dependency>
      <dependency>
         <groupId>net.jcip</groupId>
         <artifactId>jcip-annotations</artifactId>
         <version>1.0</version>
      </dependency>
      <dependency>
         <groupId>org.jboss.javaee</groupId>
         <artifactId>jboss-javaee</artifactId>
         <version>5.0.0.Beta3</version>
      </dependency>

      <dependency>
         <groupId>org.jboss</groupId>
         <artifactId>jboss-common-core</artifactId>
         <version>2.2.1.GA</version>
      </dependency>
      <!-- test dependencies -->
      <dependency>
         <groupId>org.easymock</groupId>
         <artifactId>easymock</artifactId>
         <version>2.3</version>
         <scope>test</scope>
      </dependency>
      <dependency>
         <groupId>org.jboss.transaction</groupId>
         <artifactId>jboss-jta</artifactId>
         <version>4.2.3.SP5</version>
         <scope>test</scope>
      </dependency>
      <dependency>
         <groupId>beanshell</groupId>
         <artifactId>bsh</artifactId>
         <version>2.0b4</version>
         <scope>test</scope>
      </dependency>
   </dependencies>
   <build>
      <plugins>
         <plugin>
            <artifactId>maven-assembly-plugin</artifactId>
            <version>2.2-beta-1</version>
            <executions>
               <execution>
                  <id>assemble</id>
                  <phase>install</phase>
                  <goals>
                     <goal>attached</goal>
                  </goals>
                  <configuration>
                     <descriptors>
                        <descriptor>assembly/bin.xml</descriptor>
                        <descriptor>assembly/doc.xml</descriptor>
                        <descriptor>assembly/all.xml</descriptor>
                     </descriptors>
                     <finalName>${artifactId}-${jbosscache-core-version}</finalName>
                     <outputDirectory>target/distribution</outputDirectory>
                     <workDirectory>target/assembly/work</workDirectory>
                  </configuration>
               </execution>
            </executions>
         </plugin>
         <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-jar-plugin</artifactId>
            <executions>
               <execution>
                  <goals>
                     <goal>test-jar</goal>
                  </goals>
               </execution>
            </executions>
         </plugin>
         <!-- the docbook generation plugin for the user guide -->
         <plugin>
            <groupId>org.jboss.maven.plugins</groupId>
            <artifactId>maven-jdocbook-plugin</artifactId>
            <version>2.0.0</version>
            <extensions>true</extensions>
            <dependencies>
               <dependency>
                  <groupId>org.jboss.cache</groupId>
                  <artifactId>jbosscache-doc-xslt-support</artifactId>
                  <version>1.0</version>
               </dependency>
            </dependencies>
            <executions>

               <!-- The User Guide-->
               <execution>
                  <id>userguide_en</id>
                  <phase>package</phase>
                  <goals>
                     <goal>resources</goal>
                     <goal>generate</goal>
                  </goals>
                  <configuration>
                     <sourceDocumentName>master.xml</sourceDocumentName>
                     <sourceDirectory>${basedir}/src/main/docbook/userguide/en</sourceDirectory>
                     <imageResource>
                        <directory>${basedir}/src/main/docbook/images</directory>
                     </imageResource>
                     <cssResource>
                        <directory>${basedir}/src/main/docbook/css</directory>
                     </cssResource>
                     <targetDirectory>${basedir}/target/docbook/userguide_en</targetDirectory>
                     <formats>
                        <format>
                           <formatName>pdf</formatName>
                           <stylesheetResource>classpath:/standard/fopdf.xsl</stylesheetResource>
                           <finalName>userguide_en.pdf</finalName>
                        </format>
                        <format>
                           <formatName>html</formatName>
                           <stylesheetResource>classpath:/standard/html_chunk.xsl</stylesheetResource>
                           <finalName>index.html</finalName>
                        </format>
                        <format>
                           <formatName>html_single</formatName>
                           <stylesheetResource>classpath:/standard/html.xsl</stylesheetResource>
                           <finalName>index.html</finalName>
                        </format>
                     </formats>
                     <options>
                        <xincludeSupported>false</xincludeSupported>
                     </options>
                  </configuration>
               </execution>

               <!-- The Tutorial -->
               <execution>
                  <id>tutorial_en</id>
                  <phase>package</phase>
                  <goals>
                     <goal>resources</goal>
                     <goal>generate</goal>
                  </goals>
                  <configuration>
                     <sourceDocumentName>master.xml</sourceDocumentName>
                     <sourceDirectory>${basedir}/src/main/docbook/tutorial/en</sourceDirectory>
                     <imageResource>
                        <directory>${basedir}/src/main/docbook/images</directory>
                     </imageResource>
                     <cssResource>
                        <directory>${basedir}/src/main/docbook/css</directory>
                     </cssResource>
                     <targetDirectory>${basedir}/target/docbook/tutorial_en</targetDirectory>
                     <formats>
                        <format>
                           <formatName>pdf</formatName>
                           <stylesheetResource>classpath:/standard/fopdf.xsl</stylesheetResource>
                           <finalName>tutorial_en.pdf</finalName>
                        </format>
                        <format>
                           <formatName>html</formatName>
                           <stylesheetResource>classpath:/standard/html_chunk.xsl</stylesheetResource>
                           <finalName>index.html</finalName>
                        </format>
                        <format>
                           <formatName>html_single</formatName>
                           <stylesheetResource>classpath:/standard/html.xsl</stylesheetResource>
                           <finalName>index.html</finalName>
                        </format>
                     </formats>
                     <options>
                        <xincludeSupported>false</xincludeSupported>
                     </options>
                  </configuration>
               </execution>

               <!-- the FAQs -->
               <execution>
                  <id>faq_en</id>
                  <phase>package</phase>
                  <goals>
                     <goal>resources</goal>
                     <goal>generate</goal>
                  </goals>
                  <configuration>
                     <sourceDocumentName>master.xml</sourceDocumentName>
                     <sourceDirectory>${basedir}/src/main/docbook/faq/en</sourceDirectory>
                     <imageResource>
                        <directory>${basedir}/src/main/docbook/images</directory>
                     </imageResource>
                     <cssResource>
                        <directory>${basedir}/src/main/docbook/css</directory>
                     </cssResource>
                     <targetDirectory>${basedir}/target/docbook/faq_en</targetDirectory>
                     <formats>
                        <format>
                           <formatName>pdf</formatName>
                           <stylesheetResource>classpath:/standard/fopdf.xsl</stylesheetResource>
                           <finalName>faq_en.pdf</finalName>
                        </format>
                        <format>
                           <formatName>html</formatName>
                           <stylesheetResource>classpath:/standard/html_chunk.xsl</stylesheetResource>
                           <finalName>index.html</finalName>
                        </format>
                        <format>
                           <formatName>html_single</formatName>
                           <stylesheetResource>classpath:/standard/html.xsl</stylesheetResource>
                           <finalName>index.html</finalName>
                        </format>
                     </formats>
                     <options>
                        <xincludeSupported>false</xincludeSupported>
                     </options>
                  </configuration>
               </execution>
            </executions>
         </plugin>
      </plugins>
   </build>

   <!-- basic JBoss repository so that the common parent POM in jbosscache-support can be found -->
   <repositories>
      <repository>
         <id>repository.jboss.org</id>
         <url>http://repository.jboss.org/maven2</url>
      </repository>
      <repository>
         <id>snapshots.jboss.org</id>
         <url>http://snapshots.jboss.org/maven2</url>
      </repository>
   </repositories>

</project>
