doc
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency>
<groupId>uk.org.retep.tools</groupId>
<artifactId>doc</artifactId>
<version>10.6</version>
</dependency><?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">
<parent>
<groupId>uk.org.retep.tools</groupId>
<artifactId>retepTools</artifactId>
<version>10.6</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>uk.org.retep.tools</groupId>
<artifactId>doc</artifactId>
<version>10.6</version>
<packaging>jar</packaging>
<name>retepTools Documentation</name>
<build>
<plugins>
<!-- The actual documentation -->
<plugin>
<groupId>uk.org.retep.tools.docbook</groupId>
<artifactId>docbkx</artifactId>
<version>10.6</version>
<!--
<groupId>com.agilejava.docbkx</groupId>
<artifactId>docbkx-maven-plugin</artifactId>
-->
<executions>
<!-- PDF version in A4 -->
<execution>
<id>pdf</id>
<goals>
<goal>generate-pdf</goal>
</goals>
<phase>generate-sources</phase>
<configuration>
<targetDirectory>${project.build.directory}</targetDirectory>
</configuration>
</execution>
<!-- epub for eBook readers -->
<execution>
<id>epub</id>
<goals>
<goal>generate-epub</goal>
</goals>
<phase>generate-sources</phase>
<configuration>
<targetDirectory>${project.build.directory}</targetDirectory>
</configuration>
</execution>
<!-- html version -->
<execution>
<id>html</id>
<goals>
<goal>generate-html</goal>
</goals>
<phase>generate-sources</phase>
<configuration>
<targetDirectory>${project.build.directory}/html</targetDirectory>
<chunkedOutput>true</chunkedOutput>
</configuration>
</execution>
</executions>
<!-- common configuration -->
<configuration>
<sourceDirectory>${basedir}/src/main/doc/reteptools</sourceDirectory>
<!-- Document layout -->
<doubleSided>1</doubleSided>
<foCustomization>${basedir}/src/main/resources/layout/docbook-fo.xsl</foCustomization>
<!-- allow xinclude rather than entity import -->
<xincludeSupported>true</xincludeSupported>
<!-- enable code syntax highlighting -->
<highlightSource>1</highlightSource>
<!-- pdf bookmarks -->
<fop1Extensions>1</fop1Extensions>
<entities>
<entity>
<name>version</name>
<value>${version}</value>
</entity>
<entity>
<name>projectRoot</name>
<value>${project.build.directory}/..</value>
</entity>
</entities>
</configuration>
<dependencies>
<dependency>
<groupId>net.sf.docbook</groupId>
<artifactId>docbook-xsl</artifactId>
<version>1.75.2</version>
<type>zip</type>
<classifier>ns-resources</classifier>
<scope>runtime</scope>
</dependency>
<!--
<dependency>
<groupId>org.docbook</groupId>
<artifactId>docbook-xml</artifactId>
<version>4.4</version>
<scope>runtime</scope>
</dependency>
-->
</dependencies>
</plugin>
<!-- Add the generated document as an artifact -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<executions>
<execution>
<id>attach-catalog</id>
<phase>package</phase>
<goals>
<goal>attach-artifact</goal>
</goals>
<configuration>
<artifacts>
<artifact>
<file>${project.build.directory}/book.pdf</file>
<type>pdf</type>
</artifact>
</artifacts>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>