blob: 1ec275efaa552459e5acfde8fab36728de9af8c9 [file] [log] [blame]
<?xml version="1.0"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.apache.river.container</groupId>
<artifactId>river-container</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>
<groupId>org.apache.river.container</groupId>
<artifactId>user-docs</artifactId>
<version>1.0-SNAPSHOT</version>
<name>user-docs</name>
<url>http://maven.apache.org</url>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
</dependencies>
<build>
<plugins>
<!-- Maven docbook configuration -->
<plugin>
<groupId>com.agilejava.docbkx</groupId>
<artifactId>docbkx-maven-plugin</artifactId>
<version>2.0.14</version>
<executions>
<execution>
<id>single-pdf-page</id>
<goals>
<goal>generate-pdf</goal>
</goals>
<configuration>
<calloutGraphicsPath>src/docbkx/resources/images/callouts/</calloutGraphicsPath>
<admonGraphicsPath>src/docbkx/resources/images/admons/</admonGraphicsPath>
<imgSrcPath>src/docbkx/resources/images/</imgSrcPath>
<draftMode>1</draftMode>
<postProcess>
<copy todir="${basedir}/target/site">
<fileset dir="${basedir}/target/docbkx">
<include name="**/*.pdf" />
</fileset>
</copy>
</postProcess>
</configuration>
<phase>site</phase>
</execution>
<execution>
<id>single-html-page</id>
<goals>
<goal>generate-html</goal>
</goals>
<configuration>
<imgSrcPath>images/</imgSrcPath>
<chunkedOutput>false</chunkedOutput>
<targetDirectory>${basedir}/target/docbkx/html-single</targetDirectory>
<htmlStylesheet>css/html.css</htmlStylesheet>
<htmlCustomization>${basedir}/src/docbkx/resources/xsl/html.xsl</htmlCustomization>
<!--
Just because it's sometimes time costly, I
delete only this directory to allow re
generation by docbkx plugin During documentation
phase, it's useful because it allows a quick and
nice overview without costly pdf generation and
all packaging.
-->
<preProcess>
<delete dir="${basedir}/target/docbkx/html-single" />
</preProcess>
<postProcess>
<copy todir="${basedir}/target/site/html-single">
<fileset dir="${basedir}/target/docbkx/html-single">
<include name="**/*.html" />
</fileset>
</copy>
<copy todir="${basedir}/target/site/html-single">
<fileset dir="${basedir}/src/docbkx/resources">
<include name="**/*.css" />
<include name="**/*.png" />
<include name="**/*.gif" />
<include name="**/*.jpg" />
</fileset>
</copy>
</postProcess>
</configuration>
<phase>site</phase>
</execution>
</executions>
<configuration>
<xincludeSupported>true</xincludeSupported>
</configuration>
<dependencies>
<dependency>
<groupId>org.docbook</groupId>
<artifactId>docbook-xml</artifactId>
<version>4.4</version>
<scope>runtime</scope>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
</project>