OW2 Consortium petalsmaster

Rev

Rev 1087 | Blame | Compare with Previous | Last modification | View Log | RSS feed

<?xml version="1.0" encoding="UTF-8"?>
<!--
        Dragon - SOA Governance Platform.
        Copyright (C) 2008  EBM WebSourcing
        
        This library is free software; you can redistribute it and/or
        modify it under the terms of the GNU Lesser General Public
        License as published by the Free Software Foundation; either
        version 2.1 of the License, or any later version.
        
        This library is distributed in the hope that it will be useful,
        but WITHOUT ANY WARRANTY; without even the implied warranty of
        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
        Lesser General Public License for more details.
        
        You should have received a copy of the GNU Lesser General Public
        License along with this library; if not, write to the Free Software
        Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
        USA.
        
        Initial developer(s): EBM WebSourcing
-->
<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">
  <!-- ============== -->
  <!-- Version              -->
  <!-- ============== -->
  <modelVersion>4.0.0</modelVersion>
  <!-- ============== -->
  <!-- Identification -->
  <!-- ============== -->
  <parent>
    <artifactId>dragon-parent</artifactId>
    <groupId>org.ow2.dragon</groupId>
    <version>6-SNAPSHOT</version>
  </parent>
  <name>dragon-doc</name>
  <artifactId>dragon-doc</artifactId>
  <groupId>org.ow2.dragon</groupId>
  <packaging>pom</packaging>
  <version>1.0-SNAPSHOT</version>
  <properties>
    <topDirectoryLocation>..</topDirectoryLocation>
  </properties>
  <!-- Available goals are the following
                mvn clean : clean target
                mvn jdocbook:resources :  link resources
                mvn jdocbook:generate : generate doc
        -->
  <!-- Maven command to generate documentation (User doc for ex.)
        mvn -Denv=gen-user jdocbook:resources jdocbook:generate 
        -->
  <profiles>
    <!-- Generic profile, to copy/paste and then fil l to add a new documentation -->
    <!--
                <profile>
                        <id></id>
                        <activation>
                                <property>
                                        <name>env</name>
                                        <value></value>                                         
                                </property>
                        </activation>
                        <properties>
                                <img.dir></img.dir>
                                <source.dir></source.dir>
                                <source.file></source.file>
                                <final.name></final.name>
                        </properties>
                </profile>
                -->
    <!-- Generate the complete DRAGON documentation -->
    <profile>
      <id>dragon-all-doc</id>
      <activation>
        <property>
          <name>env</name>
          <value>gen-all</value>
        </property>
      </activation>
      <properties>
        <img.dir>${basedir}/src/doc/resources/images</img.dir>
        <source.dir>${basedir}/src/doc/docbook/doc-en</source.dir>
        <source.file>petalsMaster-doc.xml</source.file>
        <final.name>PetalsMaster-docbook-${version}</final.name>
      </properties>
    </profile>
    <!-- Generate only the DRAGON user guide -->
    <profile>
      <id>dragon-usr-doc</id>
      <activation>
        <property>
          <name>env</name>
          <value>gen-user</value>
        </property>
      </activation>
      <properties>
        <img.dir>${basedir}/src/doc/resources/images</img.dir>
        <source.dir>${basedir}/src/doc/docbook/doc-en</source.dir>
        <source.file>petalsMaster-userguide-content.xml</source.file>
        <final.name>PetalsMaster-userguide-${version}</final.name>
      </properties>
    </profile>
    <!-- Generate only the DRAGON dev guide -->
    <profile>
      <id>dragon-dev-doc</id>
      <activation>
        <property>
          <name>env</name>
          <value>gen-dev</value>
        </property>
      </activation>
      <properties>
        <img.dir>${basedir}/src/doc/resources/images</img.dir>
        <source.dir>${basedir}/src/doc/docbook/doc-en</source.dir>
        <source.file>petalsMaster-devguide-content.xml</source.file>
        <final.name>PetalsMaster-devguide-${version}</final.name>
      </properties>
    </profile>
    <!-- Generate only the DRAGON architecture guide -->
    <profile>
      <id>dragon-archi-doc</id>
      <activation>
        <property>
          <name>env</name>
          <value>gen-archi</value>
        </property>
      </activation>
      <properties>
        <img.dir>${basedir}/src/doc/resources/images</img.dir>
        <source.dir>${basedir}/src/doc/docbook/doc-en</source.dir>
        <source.file>petalsMaster-archiguide-content.xml</source.file>
        <final.name>PetalsMaster-archiguide-${version}</final.name>
      </properties>
    </profile>
    <!-- Generate only the UI guide -->
    <!-- <profile>
                        <id>dragon-ui-doc</id>
                        <activation>
                                <property>
                                        <name>env</name>
                                        <value>gen-ui</value>
                                </property>
                        </activation>
                        <properties>
                                <img.dir>../ui/src/doc/resources/images</img.dir>
                                <source.dir>../ui/src/doc/docbook/doc-en</source.dir>
                                <source.file>dragon-ui.xml</source.file>
                                <final.name>dragon-ui-${version}</final.name>
                        </properties>
                </profile>  -->
  </profiles>
  <build>
    <plugins>
      <plugin>
        <groupId>org.jboss.maven.plugins</groupId>
        <artifactId>maven-jdocbook-plugin</artifactId>
        <version>2.1.3-beta1</version>
        <extensions>true</extensions>
        <configuration>
          <imageResource>
            <directory>${img.dir}</directory>
          </imageResource>
          <cssResource>
            <directory>${basedir}/src/doc/resources/css</directory>
          </cssResource>
          <!-- Staging directory is the directory where the resources will be copied -->
          <stagingDirectory>${basedir}/target/docbook/publish/resources</stagingDirectory>
          <publishDirectory>${basedir}/target/docbook/publish</publishDirectory>
          <sourceDirectory>${source.dir}</sourceDirectory>
          <sourceDocumentName>${source.file}</sourceDocumentName>
          <formats>
            <!-- Where the several transformations are declared-->
            <format>
              <formatName>pdf</formatName>
              <stylesheetResource>file:${basedir}/tools/stylesheets/fo.xsl</stylesheetResource>
              <finalName>${final.name}.pdf</finalName>
              <imagePathSettingRequired>true</imagePathSettingRequired>
            </format>
            <format>
              <!-- A 'format' tag is used to parameter a transformation, like docbook to HTML. The formatName and stylesheetResource are required, other parameters are optional -->
              <formatName>html</formatName>
              <stylesheetResource>file:${basedir}/tools/stylesheets/html.xsl</stylesheetResource>
              <finalName>${final.name}.html</finalName>
            </format>
          </formats>
          <options>
            <!-- This option allows the use of the tag <xi:include> to manage documentations through a master document -->
            <xincludeSupported>true</xincludeSupported>
            <!-- <useRelativeImageUris>true</useRelativeImageUris> -->
            <xmlTransformerType>saxon</xmlTransformerType>
          </options>
        </configuration>
      </plugin>
    </plugins>
  </build>
  <repositories>
    <repository>
      <id>ebmws-public.release</id>
      <url>http://maven.petalslink.com/public</url>
      <releases>
        <enabled>true</enabled>
      </releases>
      <snapshots>
        <enabled>false</enabled>
        <updatePolicy>daily</updatePolicy>
      </snapshots>
    </repository>
    <repository>
      <id>ebmws-public.snapshot</id>
      <url>http://maven.petalslink.com/public-snapshot</url>
      <releases>
        <enabled>false</enabled>
      </releases>
      <snapshots>
        <enabled>true</enabled>
        <updatePolicy>always</updatePolicy>
      </snapshots>
    </repository>
  </repositories>
  <scm>
    <connection>scm:svn:svn://svn.forge.objectweb.org/svnroot/dragon/trunk/petals-master/doc</connection>
  </scm>
</project>