<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>

   <groupId>org.richfaces.docs</groupId>
   <artifactId>richfaces-component-reference</artifactId>
   <version>4.0.0.20110304-CR1</version>
   <packaging>jdocbook</packaging>
   <name>RichFaces Component Reference</name>

   <parent>
      <groupId>org.richfaces.docs</groupId>
      <artifactId>docs-parent</artifactId>
      <version>4.0.0.20110304-CR1</version>
      <relativePath>../parent/pom.xml</relativePath>
   </parent>
  
   <properties>
        <docname>Component_Reference</docname>
        <bookname>Component Reference</bookname>
   </properties>

   <build>
      <defaultGoal>process-classes</defaultGoal>
      <plugins>
         <plugin>
            <groupId>org.jboss.maven.plugins</groupId>
            <artifactId>maven-jdocbook-plugin</artifactId>
         </plugin>
         <!--
         <plugin>
            <artifactId>maven-antrun-plugin</artifactId>
            <executions>
               <execution>
                  <phase>process-classes</phase>
                  <configuration>
                     <tasks>
                        <copy file="${basedir}/target/docbook/publish/en-US/pdf/${pdf.name}" todir="${basedir}" />
                     </tasks>
                  </configuration>
                  <goals>
                     <goal>run</goal>
                  </goals>
               </execution>
            </executions>
         </plugin>
         <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>build-helper-maven-plugin</artifactId>
            <executions>
               <execution>
                  <id>attach-zip</id>
                  <phase>package</phase>
                  <goals>
                     <goal>attach-artifact</goal>
                  </goals>
                  <configuration>
                     <artifacts>
                        <artifact>
                           <file>${project.build.outputDirectory}/${project.artifactId}-${project.version}.war</file>
                           <type>war</type>
                        </artifact>
                     </artifacts>
                  </configuration>
               </execution>
            </executions>
         </plugin>
         -->
      </plugins>
   </build>

   <profiles>

      <profile>
         <id>translations</id>
         <build>
            <plugins>
               <plugin>
                  <groupId>org.jboss.maven.plugins</groupId>
                  <artifactId>maven-jdocbook-plugin</artifactId>
                  <executions>
                     <execution>
                        <phase>process-resources</phase>
                        <goals>
                           <goal>translate</goal>
                        </goals>
                     </execution>
                  </executions>

                  <configuration>
                     <translations>
                        <translation>it-IT</translation>
                        <translation>zh-CN</translation>
                        <translation>zh-TW</translation>
                        <translation>es-ES</translation>
                        <translation>ko-KR</translation>
                        <translation>de-DE</translation>
                        <translation>pt-BR</translation>
                     </translations>
                  </configuration>
               </plugin>
            </plugins>
         </build>
      </profile>

   </profiles>

    <scm>
        <connection>scm:svn:http://anonsvn.jboss.org/repos/richfaces/modules/docs/tags/4.0.0.20110304-CR1/Component_Reference</connection>
        <developerConnection>scm:svn:https://svn.jboss.org/repos/richfaces/modules/docs/tags/4.0.0.20110304-CR1/Component_Reference</developerConnection>
        <url>http://fisheye.jboss.org/browse/richfaces/modules/docs/tags/4.0.0.20110304-CR1/Component_Reference</url>
    </scm>

</project>
